Metadata-Version: 2.0
Name: custom-settings
Version: 1.0
Summary: customsettings
Home-page: https://github.com/TakesxiSximada/customsettings
Author: TakesxiSximada
Author-email: sximada+custom_settings@gmail.com
License: Apache License 2.0
Keywords: Settings,Django
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development
Requires-Dist: six
Requires-Dist: zope.dottedname
Provides-Extra: testing
Requires-Dist: detox; extra == 'testing'
Requires-Dist: flake8; extra == 'testing'
Requires-Dist: mock; extra == 'testing'
Requires-Dist: pytest; extra == 'testing'
Requires-Dist: pytest-cov; extra == 'testing'
Requires-Dist: pytest-flake8; extra == 'testing'
Requires-Dist: pytest-xdist; extra == 'testing'
Requires-Dist: pytz; extra == 'testing'
Requires-Dist: six; extra == 'testing'
Requires-Dist: zope.dottedname; extra == 'testing'

custom_settings - CUSTOM SETTINGS
=================================

.. image:: https://circleci.com/gh/TakesxiSximada/custom_settings.svg?style=svg
           :target: https://circleci.com/gh/TakesxiSximada/custom_settings
           :alt: CircleCI Status

.. image:: https://codecov.io/gh/TakesxiSximada/custom_settings/branch/master/graph/badge.svg
           :target: https://codecov.io/gh/TakesxiSximada/custom_settings
           :alt: CodeCov Status

When describing in python of the configuration file, you need to change it in each environment. For example settings.py of Django.
This package provides the utility to assist it.


Install
-------

::

   $ pip install custom_settings

How to use it
-------------

settings_custom.py::

  AUTH_CREDENTIAL = 'MY_CREDENTIAL'

.. code-block::

   >>> import custom_settings
   >>> custom = custom_settings.load('settings_custom')
   >>> custom.get('AUTH_CREDENTIAL')
   'MY_CREDENTIAL'
   >>> custom.get('NO_SET_VALUE', default=10)
   10



Other
-----

- PyPI: https://pypi.python.org/pypi/custom_settings
- Github: https://github.com/TakesxiSximada/custom_settings
- CircleCI: https://circleci.com/gh/TakesxiSximada/custom_settings
- CodeCov: https://codecov.io/gh/TakesxiSximada/custom_settings


