{ "info": { "author": "Matt Johnson", "author_email": "mdj2@pdx.edu", "bugtrack_url": null, "classifiers": [ "Framework :: Django" ], "description": "# Varlet\n\nVarlet lets you prompt for variables at runtime, and saves them to a variables module.\n\n## Install\n\n pip install varlet\n\n## Usage\n\nIn your settings.py file add:\n\n```python\nfrom varlet import variable\n```\n\nwhenever you declare a variable that could change depending on the environment,\nuse:\n\n```python\n# It is OK to make this True if you are in dev\nDEBUG = variable(\"DEBUG\", default=False)\n```\n\nIf this \"DEBUG\" variable is not defined in the variables module (somewhere in\nyour python path), the user is prompted to enter a Python expression to set it.\n\nWhen the prompt is displayed, the comments directly above the call to\n`variable()` are displayed, and the prompt has a default value as specified by\nthe `default` argument.\n\n\n## Implementation Details\n\nvarlet assumes there is a `variables` module located somewhere in your Python\npath. If it is not found, it will attempt to create one based on the location\nof `__main__`.\n\nWhen a variable is set to a value, varlet will eval the value (to make sure it\nis valid python), and then perform `ast.literal_eval(repr(value))` to ensure that the value\nhas a valid representation that can be written to a file. The `repr(value)` is\nthen appended to the end of the `variables` module (along with any comments\nassociated with the value).\n\nIf STDIN is not a tty-like interface, then a KeyError is raise if the variable\nis not set in the variables module.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "varlet", "package_url": "https://pypi.org/project/varlet/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/varlet/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/varlet/0.0.8/", "requires_dist": null, "requires_python": null, "summary": "Interactive prompt for variables that should be set at runtime", "version": "0.0.8" }, "last_serial": 1408472, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9734c452ebcbe9b1c8ed33c1256173a4", "sha256": "1e88666939f96576e34169a9ba1dffffdeef050a3aa23d1390ee217c279fe2ac" }, "downloads": -1, "filename": "varlet-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9734c452ebcbe9b1c8ed33c1256173a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4970, "upload_time": "2014-10-07T23:57:44", "url": "https://files.pythonhosted.org/packages/43/14/6bec7ebf0267d579eea8e4597a7e4c7e0426622e162bc9501353917cee17/varlet-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d7823005c5cdd5fb918756dacdf98703", "sha256": "7134a43b9df26f986133b060ac3834280deef3a00683f7e39e76ef84314199b1" }, "downloads": -1, "filename": "varlet-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d7823005c5cdd5fb918756dacdf98703", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4587, "upload_time": "2014-10-08T21:19:40", "url": "https://files.pythonhosted.org/packages/62/26/27a221fa293bc1889ab66cc05ca5425ac1004b2181262b01f260c70c8741/varlet-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a876986f55c1b816b87b6eee7e30a170", "sha256": "e0a78cdb6696cad709657bdea45b6023b89db1a00876066a8cf9d510bf13058c" }, "downloads": -1, "filename": "varlet-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a876986f55c1b816b87b6eee7e30a170", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4778, "upload_time": "2014-11-10T22:50:23", "url": "https://files.pythonhosted.org/packages/40/84/47af8763f214845913ee65af1238d047e0fd789b8c86cdd5ac6b5fda9be7/varlet-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "76fa25c3c6271a6aff1cea3fb74207c7", "sha256": "e030f23b73fbb9d3d5b42250f10e93c73c2dc6f6c423bb665d66d76c0b058a79" }, "downloads": -1, "filename": "varlet-0.0.4.tar.gz", "has_sig": false, "md5_digest": "76fa25c3c6271a6aff1cea3fb74207c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4944, "upload_time": "2014-11-12T21:37:28", "url": "https://files.pythonhosted.org/packages/91/c3/6e652b62227cb8018da6dcc205cb8cc758ec1a9d93fc8a9316a895cda290/varlet-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "486960099d938b7498cf83d2b4283fab", "sha256": "aa029dbd67ae66a9ee975ac0a96aaedcaa3ce3f521d2e40e8e0dbcfbe2d0faf5" }, "downloads": -1, "filename": "varlet-0.0.5.tar.gz", "has_sig": false, "md5_digest": "486960099d938b7498cf83d2b4283fab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5304, "upload_time": "2014-11-17T20:33:13", "url": "https://files.pythonhosted.org/packages/13/42/274717eae1682f97d26740818519b7b9c26c8793e136e8f384482305737d/varlet-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "20f2de6a0be6bd65fc3c2a12fcd1b14f", "sha256": "c8300c3c39b53ba1a96f5c8644eb17ba9827c639eaea2c475b0589c19e41c4a6" }, "downloads": -1, "filename": "varlet-0.0.6.tar.gz", "has_sig": false, "md5_digest": "20f2de6a0be6bd65fc3c2a12fcd1b14f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5340, "upload_time": "2014-12-02T03:26:02", "url": "https://files.pythonhosted.org/packages/3b/53/cb2653d84ecf213c08012e94126fff8b9cc698063b8c14d691f1cd91a96f/varlet-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "10570d4c64052fabfab914a8ac62e387", "sha256": "044fd4d8a8629f80ff25c89690636a1f67ddfd431db2a7c438c56a335b2c85b0" }, "downloads": -1, "filename": "varlet-0.0.7.tar.gz", "has_sig": false, "md5_digest": "10570d4c64052fabfab914a8ac62e387", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5308, "upload_time": "2015-02-03T22:14:43", "url": "https://files.pythonhosted.org/packages/a7/74/1dbb7e3d2157351bd38532a98aa40a740e0bce13ac30ef3ca4c880d8f76a/varlet-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "5e1c06c49ca0b166e83635a4689e9152", "sha256": "d89df186cc47abd224c6d637624a3cc96aad062b676e7b00201ccb0b0ad8bcf4" }, "downloads": -1, "filename": "varlet-0.0.8.tar.gz", "has_sig": false, "md5_digest": "5e1c06c49ca0b166e83635a4689e9152", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5282, "upload_time": "2015-02-03T22:16:43", "url": "https://files.pythonhosted.org/packages/47/7e/ca0bfd05c2acbeb0f86d3eba5b4e25644407d664378583d91c42ac0fc013/varlet-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e1c06c49ca0b166e83635a4689e9152", "sha256": "d89df186cc47abd224c6d637624a3cc96aad062b676e7b00201ccb0b0ad8bcf4" }, "downloads": -1, "filename": "varlet-0.0.8.tar.gz", "has_sig": false, "md5_digest": "5e1c06c49ca0b166e83635a4689e9152", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5282, "upload_time": "2015-02-03T22:16:43", "url": "https://files.pythonhosted.org/packages/47/7e/ca0bfd05c2acbeb0f86d3eba5b4e25644407d664378583d91c42ac0fc013/varlet-0.0.8.tar.gz" } ] }