Metadata-Version: 2.1
Name: python-set-ings
Version: 0.2.2
Summary: Load configuration from the environment for your python app.
Home-page: https://github.com/evocount/python-set-ings
Author: Till Theato
Author-email: till.theato@evocount.de
License: MIT
Description: 
        [![PyPI version](https://badge.fury.io/py/python-set-ings.svg)](https://badge.fury.io/py/python-set-ings)
        [![Build Status](https://travis-ci.org/evocount/python-set-ings.svg?branch=master)](https://travis-ci.org/evocount/python-set-ings)
        [![codecov](https://codecov.io/gh/evocount/python-set-ings/branch/master/graph/badge.svg)](https://codecov.io/gh/evocount/python-set-ings)
        
        
        # DEPRECATED
        
        This package is deprecated. [pydantic](https://pydantic-docs.helpmanual.io/) provides the [same featureset](https://pydantic-docs.helpmanual.io/#settings) and much more.
        
        # Python set-ings
        
        Load 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.
        
        ## Installation
        
        * `pipenv install python-set-ings` or `pip install python-set-ings`
        
        ## Usage
        
        ```python
        # my_app/settings.py
        
        from set_ings import Property
        from set_ings import Settings as SettingsBase
        
        
        Settings(SettingsBase):
            _PREFIX = 'YOUR_PREFIX'
        
            FOO = Property(10, cast=int)
            BAR = Property()
        
        
        settings = Settings()
        ```
        
        Then make sure you set the environment variables defined in your settings.
        For the example above you would have to set `YOUR_PREFIX_BAR` and optionally
        `YOUR_PREFIX_FOO`.
        
        To use the settings anywhere in your app:
        ```python
        from my_app.settings import settings
        
        print(settings.FOO + 2)
        ```
        
        ## Contributing
        
        ### Installation
        
        * `git clone git@github.com:evocount/python-set-ings.git`
        * `cd python-set-ings`
        * `pipenv install --dev`
        
        ### Running tests
        
        * `pipenv run pytest --cov`
        
        ## License
        
        This project is licensed under the [MIT License](LICENSE.md).
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
Provides-Extra: test
