env


Nameenv JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/kennethreitz/env
SummaryEnvironment Variables for Humans
upload_time2012-05-08 16:35:51
maintainerNone
docs_urlNone
authorKenneth Reitz
requires_pythonNone
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            env.py
~~~~~~

Mapping environment variables can be a bit of a pain.

Now you can replace this boilerplate::

    ZENDESK_URL = os.environ['ZENDESK_URL']
    ZENDESK_USER = os.environ['ZENDESK_USER']
    ZENDESK_PASS = os.environ['ZENDESK_PASS']
    ZENDESK_VIEW = os.environ['ZENDESK_VIEW']

With a simple call::

    import env

::

    >>> zendesk = env.prefix('zendesk_')
    >>> zendesk
    {'user': ..., 'pass': ..., 'url': ..., 'view': ...}

Or have a bit more control::

    >>> env.map(user='zendesk_user')
    {'user': ...}
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kennethreitz/env",
    "name": "env",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Kenneth Reitz",
    "author_email": "me@kennethreitz.com",
    "download_url": "https://files.pythonhosted.org/packages/f4/67/97052e313f44543fadca265228f527c5394385916a13eb8b7932d7dad490/env-0.1.0.tar.gz",
    "platform": "any",
    "description": "env.py\n~~~~~~\n\nMapping environment variables can be a bit of a pain.\n\nNow you can replace this boilerplate::\n\n    ZENDESK_URL = os.environ['ZENDESK_URL']\n    ZENDESK_USER = os.environ['ZENDESK_USER']\n    ZENDESK_PASS = os.environ['ZENDESK_PASS']\n    ZENDESK_VIEW = os.environ['ZENDESK_VIEW']\n\nWith a simple call::\n\n    import env\n\n::\n\n    >>> zendesk = env.prefix('zendesk_')\n    >>> zendesk\n    {'user': ..., 'pass': ..., 'url': ..., 'view': ...}\n\nOr have a bit more control::\n\n    >>> env.map(user='zendesk_user')\n    {'user': ...}",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Environment Variables for Humans",
    "version": "0.1.0",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/kennethreitz/env"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f46797052e313f44543fadca265228f527c5394385916a13eb8b7932d7dad490",
                "md5": "cf9d8a6e3570b24f885e06558943a6ed",
                "sha256": "e07975087b08dd2aea45bf83447c7e21f43cf916bbc2a0722fceb66e54d03935"
            },
            "downloads": -1,
            "filename": "env-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "cf9d8a6e3570b24f885e06558943a6ed",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1813,
            "upload_time": "2012-05-08T16:35:51",
            "upload_time_iso_8601": "2012-05-08T16:35:51.045165Z",
            "url": "https://files.pythonhosted.org/packages/f4/67/97052e313f44543fadca265228f527c5394385916a13eb8b7932d7dad490/env-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2012-05-08 16:35:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kennethreitz",
    "github_project": "env",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "env"
}
        
Elapsed time: 0.08201s