read_env


Nameread_env JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/sloria/read_env
Summaryreads .env files into os.environ
upload_time2016-05-01 16:23:50
maintainerNone
docs_urlNone
authorSteven Loria
requires_pythonNone
licenseMIT
keywords env environment variables
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            ********
read_env
********

.. image:: https://badge.fury.io/py/read_env.svg
    :target: http://badge.fury.io/py/read_env
    :alt: Latest version

.. image:: https://travis-ci.org/sloria/read_env.svg?branch=master
    :target: https://travis-ci.org/sloria/read_env
    :alt: Travis-CI


read_env reads .env.

Install
-------
::

    pip install read_env

Usage
-----

Add variables to a ``.env`` file in your project.

.. code-block:: bash

    # myapp/.env
    DEBUG=true
    PORT=5000

Call ``read_env`` to add the variables to ``os.environ``.

.. code-block:: python

    # myapp/env.py
    import os
    from read_env import read_env

    read_env()

    assert os.environ['DEBUG'] == 'true'
    assert int(os.environ['PORT']) == 5000

Changelog
---------

1.1.0 (2016-05-01)
++++++++++++++++++

* Add ``recurse`` parameter (defaults to ``True``).
* If ``.env`` file doesn't exist at given ``path``, recurse up the directory tree (by default).

1.0.0 (2016-04-30)
++++++++++++++++++

* First PyPI release.


Related Projects
----------------

Check out `environs <https://github.com/sloria/environs>`_ for parsing environment variables.

License
-------

MIT
            

Raw data

            {
    "maintainer": null, 
    "docs_url": null, 
    "requires_python": null, 
    "maintainer_email": null, 
    "cheesecake_code_kwalitee_id": null, 
    "keywords": "env environment variables", 
    "upload_time": "2016-05-01 16:23:50", 
    "author": "Steven Loria", 
    "home_page": "https://github.com/sloria/read_env", 
    "github_user": "sloria", 
    "download_url": "https://pypi.python.org/packages/09/6a/412c72e5809e122a47b9c499215720c15f15b886be4c9138ba34d287cc27/read_env-1.1.0.tar.gz", 
    "platform": "UNKNOWN", 
    "version": "1.1.0", 
    "cheesecake_documentation_id": null, 
    "description": "********\nread_env\n********\n\n.. image:: https://badge.fury.io/py/read_env.svg\n    :target: http://badge.fury.io/py/read_env\n    :alt: Latest version\n\n.. image:: https://travis-ci.org/sloria/read_env.svg?branch=master\n    :target: https://travis-ci.org/sloria/read_env\n    :alt: Travis-CI\n\n\nread_env reads .env.\n\nInstall\n-------\n::\n\n    pip install read_env\n\nUsage\n-----\n\nAdd variables to a ``.env`` file in your project.\n\n.. code-block:: bash\n\n    # myapp/.env\n    DEBUG=true\n    PORT=5000\n\nCall ``read_env`` to add the variables to ``os.environ``.\n\n.. code-block:: python\n\n    # myapp/env.py\n    import os\n    from read_env import read_env\n\n    read_env()\n\n    assert os.environ['DEBUG'] == 'true'\n    assert int(os.environ['PORT']) == 5000\n\nChangelog\n---------\n\n1.1.0 (2016-05-01)\n++++++++++++++++++\n\n* Add ``recurse`` parameter (defaults to ``True``).\n* If ``.env`` file doesn't exist at given ``path``, recurse up the directory tree (by default).\n\n1.0.0 (2016-04-30)\n++++++++++++++++++\n\n* First PyPI release.\n\n\nRelated Projects\n----------------\n\nCheck out `environs <https://github.com/sloria/environs>`_ for parsing environment variables.\n\nLicense\n-------\n\nMIT", 
    "tox": true, 
    "lcname": "read_env", 
    "bugtrack_url": null, 
    "github": true, 
    "coveralls": true, 
    "name": "read_env", 
    "license": "MIT", 
    "travis_ci": true, 
    "github_project": "read_env", 
    "summary": "reads .env files into os.environ", 
    "split_keywords": [
        "env", 
        "environment", 
        "variables"
    ], 
    "author_email": "sloria1@gmail.com", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2016-05-01T16:23:38", 
            "comment_text": "", 
            "python_version": "py2.py3", 
            "url": "https://pypi.python.org/packages/88/e4/975a4689d87f7510a29dba72e65310b88595cd221e625549ceb8d245f643/read_env-1.1.0-py2.py3-none-any.whl", 
            "md5_digest": "0adfca4a1a625546b64b1e2fda9761c6", 
            "downloads": 0, 
            "filename": "read_env-1.1.0-py2.py3-none-any.whl", 
            "packagetype": "bdist_wheel", 
            "path": "88/e4/975a4689d87f7510a29dba72e65310b88595cd221e625549ceb8d245f643/read_env-1.1.0-py2.py3-none-any.whl", 
            "size": 4221
        }, 
        {
            "has_sig": false, 
            "upload_time": "2016-05-01T16:23:50", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://pypi.python.org/packages/09/6a/412c72e5809e122a47b9c499215720c15f15b886be4c9138ba34d287cc27/read_env-1.1.0.tar.gz", 
            "md5_digest": "32d449347ef470a95e2ee314fe79698f", 
            "downloads": 0, 
            "filename": "read_env-1.1.0.tar.gz", 
            "packagetype": "sdist", 
            "path": "09/6a/412c72e5809e122a47b9c499215720c15f15b886be4c9138ba34d287cc27/read_env-1.1.0.tar.gz", 
            "size": 3019
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}