<commit_before>|Build Status| |Coverage Status| |PyPi Status|


CLIMATECONTROL
==============

CLIMATECONTROL controls your apps configuration environment. It is a Python
library for loading app configurations from files and/or namespaced environment
variables.


Install
-------

::

    pip install climatecontrol


Usage
-----

Set some environment variables in your shell

.. code:: sh

   export MY_APP_SECTION1_SUBSECTION1=test1
   export MY_APP_SECTION2_SUBSECTION2=test2
   export MY_APP_SECTION2_SUBSECTION3=test3

Then use them in your python modules:

.. code:: python

   from climatecontrol.settings_parser import Settings
   settings_map = Settings(prefix='MY_APP')
   print(dict(settings_map))

   {
       'section1': {
           'subsection1': 'test1'<commit_msg>add python version compatability warning<commit_after>|Build Status| |Coverage Status| |PyPi Status|


CLIMATECONTROL
==============

CLIMATECONTROL controls your apps configuration environment. It is a Python
library for loading app configurations from files and/or namespaced environment
variables.


Install
-------

::

    pip install climatecontrol


Note that versions 0.2.4 and below will probably not work with python 3.5.2 and
below. Default 3.5 branch should work fine though.

Usage
-----

Set some environment variables in your shell

.. code:: sh

   export MY_APP_SECTION1_SUBSECTION1=test1
   export MY_APP_SECTION2_SUBSECTION2=test2
   export MY_APP_SECTION2_SUBSECTION3=test3

Then use them in your python modules:

.. code:: python

   from climatecontrol.settings_parser import Settings
   settings_map = Settings(prefix='MY_APP')
   print(dict(settings_map))

   {
       'section1': {
           'subsection1': 'test1'
{'fraction_non_alphanumeric': 0.08890180127832656, 'fraction_numerical': 0.018593840790238233, 'mean_word_length': 4.020408163265306, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2578005', 'n_tokens_mistral': 511, 'n_tokens_neox': 500, 'n_words': 159}