{ "info": { "author": "Till Theato", "author_email": "till.theato@evocount.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\n[![PyPI version](https://badge.fury.io/py/python-set-ings.svg)](https://badge.fury.io/py/python-set-ings)\n[![Build Status](https://travis-ci.org/evocount/python-set-ings.svg?branch=master)](https://travis-ci.org/evocount/python-set-ings)\n[![codecov](https://codecov.io/gh/evocount/python-set-ings/branch/master/graph/badge.svg)](https://codecov.io/gh/evocount/python-set-ings)\n\n\n# DEPRECATED\n\nThis package is deprecated. [pydantic](https://pydantic-docs.helpmanual.io/) provides the [same featureset](https://pydantic-docs.helpmanual.io/#settings) and much more.\n\n# Python set-ings\n\nLoad configuration from the environment for your python app. Supports typecasting and default values. Settings are made available in a way which plays nicely with IDEs and is easy to read.\n\n## Installation\n\n* `pipenv install python-set-ings` or `pip install python-set-ings`\n\n## Usage\n\n```python\n# my_app/settings.py\n\nfrom set_ings import Property\nfrom set_ings import Settings as SettingsBase\n\n\nSettings(SettingsBase):\n _PREFIX = 'YOUR_PREFIX'\n\n FOO = Property(10, cast=int)\n BAR = Property()\n\n\nsettings = Settings()\n```\n\nThen make sure you set the environment variables defined in your settings.\nFor the example above you would have to set `YOUR_PREFIX_BAR` and optionally\n`YOUR_PREFIX_FOO`.\n\nTo use the settings anywhere in your app:\n```python\nfrom my_app.settings import settings\n\nprint(settings.FOO + 2)\n```\n\n## Contributing\n\n### Installation\n\n* `git clone git@github.com:evocount/python-set-ings.git`\n* `cd python-set-ings`\n* `pipenv install --dev`\n\n### Running tests\n\n* `pipenv run pytest --cov`\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/evocount/python-set-ings", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-set-ings", "package_url": "https://pypi.org/project/python-set-ings/", "platform": "", "project_url": "https://pypi.org/project/python-set-ings/", "project_urls": { "Homepage": "https://github.com/evocount/python-set-ings" }, "release_url": "https://pypi.org/project/python-set-ings/0.2.2/", "requires_dist": [ "pytest; extra == 'test'", "pytest-cov; extra == 'test'" ], "requires_python": ">=3.6.0", "summary": "Load configuration from the environment for your python app.", "version": "0.2.2" }, "last_serial": 5384933, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8f61f17bb2246bb57492195cbc6b6805", "sha256": "734363a056fd68008bc5c316f5009a4ab8e653386529de6502fb4c31061efb72" }, "downloads": -1, "filename": "python_set_ings-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8f61f17bb2246bb57492195cbc6b6805", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 3933, "upload_time": "2018-10-02T19:52:42", "url": "https://files.pythonhosted.org/packages/51/b9/091050c8014c4d112dab08dd253deb4699ff48e7f83375c7044426df3de7/python_set_ings-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86ebba17e7e245affb43602c4325934f", "sha256": "c97ede986818cd2867354b6fe79a6b3dfa80d2305914edf38b9b0f0cef1e7350" }, "downloads": -1, "filename": "python-set-ings-0.1.0.tar.gz", "has_sig": false, "md5_digest": "86ebba17e7e245affb43602c4325934f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2725, "upload_time": "2018-10-02T19:52:43", "url": "https://files.pythonhosted.org/packages/a4/fe/922f999eb79d361fe3a232c73ee3546e83458c74674f4aae95c686dabfd4/python-set-ings-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "157de03cb035669e407ad30499a3b18f", "sha256": "06a8e042e2d55f5d7dda8b6f1c4ba354e9d5faec74bf12776e3fd7ba41de85eb" }, "downloads": -1, "filename": "python_set_ings-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "157de03cb035669e407ad30499a3b18f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4155, "upload_time": "2018-10-02T20:05:11", "url": "https://files.pythonhosted.org/packages/cf/4d/493248d78983232c413b969ea7a2661ba66827347e3fc9efcab52b787229/python_set_ings-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a1e630225740ffd96204243a2d595ff", "sha256": "32abe4b5c709ca6e59cd2235aa8397f5cccf1f75853126d9c1a8d63116063971" }, "downloads": -1, "filename": "python-set-ings-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5a1e630225740ffd96204243a2d595ff", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 3666, "upload_time": "2018-10-02T20:05:12", "url": "https://files.pythonhosted.org/packages/97/b0/fc9c0c11a3c9214756f603a76ebd94d609ec4dda13a59713c87e566ddba3/python-set-ings-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "f930c64b283d20aadd70f90cc9e45c11", "sha256": "b431e4f6602b970c9fecc7f220b10339b9251c581b3f50abd3fe7eed4ada685a" }, "downloads": -1, "filename": "python_set_ings-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f930c64b283d20aadd70f90cc9e45c11", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4143, "upload_time": "2018-10-03T08:46:31", "url": "https://files.pythonhosted.org/packages/b9/cd/fbacdb29e873ae54452802781675ce92e278999355d80e5989d8b00a9b6e/python_set_ings-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2dca55cd8c2b110a9c6862fd05bfd96", "sha256": "3a55f16f11b748ae1c6435c58549a0917c8bbff891f09617b9960581d71fdb31" }, "downloads": -1, "filename": "python-set-ings-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b2dca55cd8c2b110a9c6862fd05bfd96", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 4293, "upload_time": "2018-10-03T08:46:32", "url": "https://files.pythonhosted.org/packages/68/63/5e4c2a863dfa1072bc7d0568d1d3af507a2372e4709b9498e55d8324a450/python-set-ings-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "72609b0a2b24dbbfb6ed7146db8f9eff", "sha256": "eb8a0c1d5e3b57456cfd0f1255556cf392f5dc3376fe4fba8e7ea97c7b47f58d" }, "downloads": -1, "filename": "python_set_ings-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "72609b0a2b24dbbfb6ed7146db8f9eff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4327, "upload_time": "2019-06-11T06:53:50", "url": "https://files.pythonhosted.org/packages/39/42/160fcd04534f26e55c9ab032cf566e85b215d831c42860b1399d4d0436b1/python_set_ings-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c35d05153813467791d1e0051ab2d3a5", "sha256": "7a6f697b1a882311d4db94820304ecbe9681f85a89cefec830087276a0c833c0" }, "downloads": -1, "filename": "python-set-ings-0.2.2.tar.gz", "has_sig": false, "md5_digest": "c35d05153813467791d1e0051ab2d3a5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 4485, "upload_time": "2019-06-11T06:53:51", "url": "https://files.pythonhosted.org/packages/b4/28/e48ea296bd424f3f58b7179d15bc70cda992e1e7c6eb07485b3b859a8f3d/python-set-ings-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "72609b0a2b24dbbfb6ed7146db8f9eff", "sha256": "eb8a0c1d5e3b57456cfd0f1255556cf392f5dc3376fe4fba8e7ea97c7b47f58d" }, "downloads": -1, "filename": "python_set_ings-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "72609b0a2b24dbbfb6ed7146db8f9eff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4327, "upload_time": "2019-06-11T06:53:50", "url": "https://files.pythonhosted.org/packages/39/42/160fcd04534f26e55c9ab032cf566e85b215d831c42860b1399d4d0436b1/python_set_ings-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c35d05153813467791d1e0051ab2d3a5", "sha256": "7a6f697b1a882311d4db94820304ecbe9681f85a89cefec830087276a0c833c0" }, "downloads": -1, "filename": "python-set-ings-0.2.2.tar.gz", "has_sig": false, "md5_digest": "c35d05153813467791d1e0051ab2d3a5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 4485, "upload_time": "2019-06-11T06:53:51", "url": "https://files.pythonhosted.org/packages/b4/28/e48ea296bd424f3f58b7179d15bc70cda992e1e7c6eb07485b3b859a8f3d/python-set-ings-0.2.2.tar.gz" } ] }