{ "info": { "author": "TakesxiSximada", "author_email": "sximada+custom_settings@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development" ], "description": "custom_settings - CUSTOM SETTINGS\n=================================\n\n.. image:: https://circleci.com/gh/TakesxiSximada/custom_settings.svg?style=svg\n :target: https://circleci.com/gh/TakesxiSximada/custom_settings\n :alt: CircleCI Status\n\n.. image:: https://codecov.io/gh/TakesxiSximada/custom_settings/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/TakesxiSximada/custom_settings\n :alt: CodeCov Status\n\nWhen describing in python of the configuration file, you need to change it in each environment. For example settings.py of Django.\nThis package provides the utility to assist it.\n\n\nInstall\n-------\n\n.. code-block::\n\n $ pip install custom_settings\n\nHow to use it\n-------------\n\nsettings_custom.py\n\n::\n\n AUTH_CREDENTIAL = 'MY_CREDENTIAL'\n INTEGER_VALUE = '1'\n\n\nDo the following to use this configuration file.\n\n\n.. code-block::\n\n >>> import custom_settings\n >>> custom = custom_settings.load('settings_custom')\n >>> custom.get('AUTH_CREDENTIAL')\n 'MY_CREDENTIAL'\n\n\nIf you specified `type_` argument, convert type to.\n\n\n.. code-block::\n\n >>> custom.get('INTEGER_VALUE', type_=int, default=10)\n 1\n\n\nIf you specify True in `use_environ`, if it does not exist in settings_custom, acquired from the os.environ.\n\n\n.. code-block::\n\n >>> custom.get('PS1', use_environ=True)\n '$ '\n\n\nIf you specify `default`, if it does not exist in settings_custom, to used default.\n\n\n.. code-block::\n\n >>> custom.get('NO_SET_VALUE', default=10)\n 10\n\n\nIf you specify True in `raise_exception`, if it does not exist in settings_custom, raise exception.\n\n\n.. code-block::\n\n >>> custom.get('NO_SET_VALUE', use_environ=True, raise_exception=True)\n Traceback (most recent call last):\n File \"\", line 1, in \n File \"/envs/3.5/lib/python3.5/site-packages/custom_settings/adapters.py\", line 40, in get\n raise exc.NoCustomSettingError('Not been set: {}'.format(name))\n custom_settings.exc.NoCustomSettingError: Not been set: NO_SET_VALUE\n\n\n\nOther\n-----\n\n- PyPI: https://pypi.python.org/pypi/custom_settings\n- Github: https://github.com/TakesxiSximada/custom_settings\n- CircleCI: https://circleci.com/gh/TakesxiSximada/custom_settings\n- CodeCov: https://codecov.io/gh/TakesxiSximada/custom_settings\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/TakesxiSximada/custom_settings", "keywords": "Settings,Django", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "custom-settings", "package_url": "https://pypi.org/project/custom-settings/", "platform": "any", "project_url": "https://pypi.org/project/custom-settings/", "project_urls": { "Homepage": "https://github.com/TakesxiSximada/custom_settings" }, "release_url": "https://pypi.org/project/custom-settings/1.0.post1/", "requires_dist": [ "six", "zope.dottedname", "detox; extra == 'testing'", "flake8; extra == 'testing'", "mock; extra == 'testing'", "pytest; extra == 'testing'", "pytest-cov; extra == 'testing'", "pytest-flake8; extra == 'testing'", "pytest-xdist; extra == 'testing'", "pytz; extra == 'testing'", "six; extra == 'testing'", "zope.dottedname; extra == 'testing'" ], "requires_python": "", "summary": "Utility for the settings file", "version": "1.0.post1" }, "last_serial": 2347624, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "dc7811894dfc006dc45a43030327f167", "sha256": "bc947d27c0bf5e4078fbb0de07fa555e820340dc1dede2de7037ca7b61dbee4b" }, "downloads": -1, "filename": "custom_settings-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dc7811894dfc006dc45a43030327f167", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7807, "upload_time": "2016-09-17T07:18:25", "url": "https://files.pythonhosted.org/packages/81/6e/094bdaf003da0086cb73bf3c50b84e2a7dde5973e2dd18257056d9063f88/custom_settings-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9b4ce0aaddf32632e5fb88e7a50120ec", "sha256": "9485777a685a3086b0b74c536b4df15ae89f0366127045a8daefa307494cbcf9" }, "downloads": -1, "filename": "custom_settings-1.0.tar.gz", "has_sig": false, "md5_digest": "9b4ce0aaddf32632e5fb88e7a50120ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4810, "upload_time": "2016-09-17T07:18:28", "url": "https://files.pythonhosted.org/packages/0f/a7/757a7c779eb62a53eebcee3e2320959a81e01d109e725413b231ffb1d9c1/custom_settings-1.0.tar.gz" } ], "1.0.post1": [ { "comment_text": "", "digests": { "md5": "331137f905ac092d415ef3b7180cc465", "sha256": "ed2e025dc39e0755eb4cc0aa07fd81fd9a0fd4aed475b5e156232ff78f724fa6" }, "downloads": -1, "filename": "custom_settings-1.0.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "331137f905ac092d415ef3b7180cc465", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8623, "upload_time": "2016-09-17T07:31:54", "url": "https://files.pythonhosted.org/packages/16/b1/0f7ff4ef8ef03a297234528384ed237a2bb8406dbb0b918663017a29c044/custom_settings-1.0.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c3f6a62ea8a38c127f631d973cdbc4b0", "sha256": "602093385c141428676e512d1eab5aca5f942a125ddc44b57b7edc19d87a8789" }, "downloads": -1, "filename": "custom_settings-1.0.post1.tar.gz", "has_sig": false, "md5_digest": "c3f6a62ea8a38c127f631d973cdbc4b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5689, "upload_time": "2016-09-17T07:31:57", "url": "https://files.pythonhosted.org/packages/f9/43/ddf28ee80c7a3c41e9b7473c31025718146ccf293a172c0fff75ecb68ec1/custom_settings-1.0.post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "331137f905ac092d415ef3b7180cc465", "sha256": "ed2e025dc39e0755eb4cc0aa07fd81fd9a0fd4aed475b5e156232ff78f724fa6" }, "downloads": -1, "filename": "custom_settings-1.0.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "331137f905ac092d415ef3b7180cc465", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8623, "upload_time": "2016-09-17T07:31:54", "url": "https://files.pythonhosted.org/packages/16/b1/0f7ff4ef8ef03a297234528384ed237a2bb8406dbb0b918663017a29c044/custom_settings-1.0.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c3f6a62ea8a38c127f631d973cdbc4b0", "sha256": "602093385c141428676e512d1eab5aca5f942a125ddc44b57b7edc19d87a8789" }, "downloads": -1, "filename": "custom_settings-1.0.post1.tar.gz", "has_sig": false, "md5_digest": "c3f6a62ea8a38c127f631d973cdbc4b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5689, "upload_time": "2016-09-17T07:31:57", "url": "https://files.pythonhosted.org/packages/f9/43/ddf28ee80c7a3c41e9b7473c31025718146ccf293a172c0fff75ecb68ec1/custom_settings-1.0.post1.tar.gz" } ] }