{ "info": { "author": "Body Labs", "author_email": "paul.melnikow@bodylabs.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "env-flag\n========\n\nGet boolean values from environment variables in Python.\n\n.. code:: py\n\n from env_flag import env_flag\n\n # When unset, default to `False`.\n debug = not env_flag('PRODUCTION')\n\n # When unset, use explicit default.\n is_local = get_bool('IS_LOCAL', default=True)\n\nValues are coerced as follows:\n\n- When the variable is unset, or set to the empty string, return\n ``default``.\n- When the variable is set to a truthy value, return ``True``. These\n are the truthy values:\n\n - 1\n - true, yes, on\n\n- When the variable is set to the anything else, return ``False``.\n Example falsy values:\n\n - 0\n - no\n\n- Ignore case and leading/trailing whitespace.\n\nDevelopment\n-----------\n\n.. code:: sh\n\n pip install -r requirements_dev.txt\n rake test\n rake lint\n\nContribute\n----------\n\n- Issue Tracker: github.com/bodylabs/env-flag/issues\n- Source Code: github.com/bodylabs/env-flag\n\nPull requests welcome!\n\nSupport\n-------\n\nIf you are having issues, please let us know.\n\nLicense\n-------\n\nThe project is licensed under the two-clause BSD license.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bodylabs/env-flag", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "metabolenv-flag", "package_url": "https://pypi.org/project/metabolenv-flag/", "platform": "", "project_url": "https://pypi.org/project/metabolenv-flag/", "project_urls": { "Homepage": "https://github.com/bodylabs/env-flag" }, "release_url": "https://pypi.org/project/metabolenv-flag/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Get boolean values from environment variables.", "version": "1.1.0" }, "last_serial": 5743663, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "4bc079840a449b3b0589f273ad187b0b", "sha256": "e0fb6fdf97d056a4daef91fd82f77947da96ea5bee1d30522099c08b3d1dfa8a" }, "downloads": -1, "filename": "metabolenv-flag-1.1.0.tar.gz", "has_sig": false, "md5_digest": "4bc079840a449b3b0589f273ad187b0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2084, "upload_time": "2019-08-28T16:26:56", "url": "https://files.pythonhosted.org/packages/81/82/b83f463405773ab5a95bab2e41440688b003621be348e35d99092407077f/metabolenv-flag-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4bc079840a449b3b0589f273ad187b0b", "sha256": "e0fb6fdf97d056a4daef91fd82f77947da96ea5bee1d30522099c08b3d1dfa8a" }, "downloads": -1, "filename": "metabolenv-flag-1.1.0.tar.gz", "has_sig": false, "md5_digest": "4bc079840a449b3b0589f273ad187b0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2084, "upload_time": "2019-08-28T16:26:56", "url": "https://files.pythonhosted.org/packages/81/82/b83f463405773ab5a95bab2e41440688b003621be348e35d99092407077f/metabolenv-flag-1.1.0.tar.gz" } ] }