{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "env_var_config\n==============\n\nThis project allows you to describe the configuration of your application as a\n``typing.NamedTuple``, like so:\n\n.. code-block:: python\n\n import typing\n\n class MyAppConfig(typing.NamedTuple):\n some_string: str\n some_int: int\n some_float: float\n some_bool: bool = True\n\nThen, gather the configuration from the environment variables:\n\n.. code-block:: python\n\n import env_var_config\n\n config = env_var_config.gather_config_for_class(MyAppConfig)\n\nThe code will look for variables that are called like the fields of the tuple, but uppercase.\n\nAs you might have noticed, you can set default values on the fields.\nIf the fields with defaults are not found in the environment, they're set to their default value\n(which is quite unsurprising).\nIf a value without a default is missing, though, an error will be raised.\nThat is, unless you set ``allow_empty`` option to ``True``\nin the call to ``gather_config_for_class``.\nThen all missing values will be initialized with the default value for their type,\nsuch as an empty string for ``str``, 0 for ``int``, etc.\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install env_var_config\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/iteriodata/env_var_config", "keywords": "config env var", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "env-var-config", "package_url": "https://pypi.org/project/env-var-config/", "platform": "", "project_url": "https://pypi.org/project/env-var-config/", "project_urls": { "Bug Reports": "https://github.com/iteriodata/env_var_config/issues", "Homepage": "https://github.com/iteriodata/env_var_config", "Source": "https://github.com/iteriodata/env_var_config" }, "release_url": "https://pypi.org/project/env-var-config/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Parsing configuration from environment variables as typing.NamedTuple", "version": "0.1.0" }, "last_serial": 3957753, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8995b38b21e454ac1304cde805b0a0c9", "sha256": "88a6c2a7a6e22f93d8edc5349c56bb773d1a3c44296c09208843b680997f8c97" }, "downloads": -1, "filename": "env_var_config-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8995b38b21e454ac1304cde805b0a0c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3486, "upload_time": "2018-06-13T13:55:01", "url": "https://files.pythonhosted.org/packages/1e/09/e786589caa8887d12992336c214dc06d0b13a822a631aea79dd83c92502b/env_var_config-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "780571875360be7bab2129492b822a39", "sha256": "a88b095f28364ec0d5c692b7209f8eb2ef77b0eceff7226bbbb9c25b2256fa2d" }, "downloads": -1, "filename": "env_var_config-0.1.0.tar.gz", "has_sig": false, "md5_digest": "780571875360be7bab2129492b822a39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3732, "upload_time": "2018-06-13T13:55:02", "url": "https://files.pythonhosted.org/packages/22/23/597166cb872f0bb71a340e2a369c650ccd74de500a3f0dac289efba72d2c/env_var_config-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8995b38b21e454ac1304cde805b0a0c9", "sha256": "88a6c2a7a6e22f93d8edc5349c56bb773d1a3c44296c09208843b680997f8c97" }, "downloads": -1, "filename": "env_var_config-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8995b38b21e454ac1304cde805b0a0c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3486, "upload_time": "2018-06-13T13:55:01", "url": "https://files.pythonhosted.org/packages/1e/09/e786589caa8887d12992336c214dc06d0b13a822a631aea79dd83c92502b/env_var_config-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "780571875360be7bab2129492b822a39", "sha256": "a88b095f28364ec0d5c692b7209f8eb2ef77b0eceff7226bbbb9c25b2256fa2d" }, "downloads": -1, "filename": "env_var_config-0.1.0.tar.gz", "has_sig": false, "md5_digest": "780571875360be7bab2129492b822a39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3732, "upload_time": "2018-06-13T13:55:02", "url": "https://files.pythonhosted.org/packages/22/23/597166cb872f0bb71a340e2a369c650ccd74de500a3f0dac289efba72d2c/env_var_config-0.1.0.tar.gz" } ] }