semvec/pypi-packages huggingface dataset:
py-env-config 0.1.2
A tool for configuring your application via environment variables
License: MIT license
Keywords: env_config environment variable configuration json config env envvar python

===============================
env-config
===============================


.. image:: https://img.shields.io/pypi/v/env_config.svg
        :target: https://pypi.python.org/pypi/env_config

.. image:: https://img.shields.io/travis/timmartin19/env_config.svg
        :target: https://travis-ci.org/timmartin19/env_config

.. image:: https://readthedocs.org/projects/env-config/badge/?version=latest
        :target: https://env-config.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://pyup.io/repos/github/timmartin19/env_config/shield.svg
     :target: https://pyup.io/repos/github/timmartin19/env_config/
     :alt: Updates


A tool for configuring your application via environment variables


* Free software: MIT license
* Documentation: https://env-config.readthedocs.io.


Features
--------

Gets configuration from environment variables that start with
app_name optionally allowing you to load the environment variables
as json

    Example with load_as_json=True

    .. code-block:: python

        from env_config import get_envvar_configuration

        # Assuming that there are the following environment variables
        # MYAPP_BOOL=false
        # MYAPP_DICT={"some_key": "some_value"}
        # MYAPP_STRING=blahblahblah
        # NOTMYAPP_VARIABLE=this wont be recognized

        config = get_envvar_configuration('myapp')
        print(config)

        # prints out {'BOOL': False, 'DICT': {'some_key': 'some_value'}, 'STRING': 'blahblahblah'}

    Example with load_as_json=False

    .. code-block:: python

        config = get_envvar_configuration('myapp', load_as_json=False)
        print(config)

        # prints out {'BOOL': 'false', 'DICT': '{"some_key": "some_value"}', 'STRING': 'blahblahblah'}

Credits
---------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage



=======
History
=======

0.1.0 (2016-07-11)
------------------

* First release on PyPI.
thrift_json 0.1.0
converter between thrift and json
License: MIT license
Keywords: thrift_json

===============================
thrift_json
===============================


.. image:: https://img.shields.io/pypi/v/thrift_json.svg
        :target: https://pypi.python.org/pypi/thrift_json

.. image:: https://img.shields.io/travis/youngking/thrift_json.svg
        :target: https://travis-ci.org/youngking/thrift_json


.. image:: https://pyup.io/repos/github/youngking/thrift_json/shield.svg
     :target: https://pyup.io/repos/github/youngking/thrift_json/
     :alt: Updates


converter between thrift and json


* Free software: MIT license


Usage
--------

* convert from json/dict to thrift

  >>> from thrift_json import json2thrift, dict2thrift
  >>> thrift_obj = json2thrift(json_str, thrift_class)
  >>> thrift_obj = dict2thrift(dict_obj, thrift_class)

* convert from thrift to json/dict

  >>> from thrift_json import thrift2json, thrift2dict
  >>> json_str = thrfit2json(thrift_obj)
  >>> dict_obj = thrift2dict(thrift_obj)

* encode/decode use json directly

  >>> from thrift_json import ThriftJSONEncoder
  >>> json_str = json.dumps(thrift_obj, cls=ThriftJSONEncoder)


  >>> from thrift_json import ThriftJSONDecoder
  >>> thrift_obj = json.loads(json_str, cls=ThriftJSONDecoder, thrift_class=thrift_class)


=======
History
=======

0.1.0 (2016-07-11)
------------------

* First release on PyPI.