dotenv-flow


Namedotenv-flow JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/ChacheGS/dotenv_flow
SummaryLike the dotenv-flow NodeJS library, for Python
upload_time2023-03-23 01:45:24
maintainer
docs_urlNone
authorCarlos Gonzalez
requires_python>=3.8,<4.0
licenseWTFPL
keywords environment variables deployments settings env dotenv configurations python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dotenv_flow

Hierarchically load different dotenv files based on the value of the `PY_ENV` variable. Dotenv files will be searched
by name, by decreasing order of priority (specificity) to the selected environment.

As dotenv files are loaded, the process' environment (os.environ) is enriched with the variables found in those files.
Environment values that already exist will be left untouched.

Files have 2 flavors:

- public (ex: .env.dev) that should be committed to version control
- private (ex: .env.dev.local) that has preference over the previous one if present, and should **NOT**

This is the python version of Node's [dotenv-flow](https://www.npmjs.com/package/dotenv-flow).

dotenv files are loaded with [python-dotenv](https://pypi.org/project/python-dotenv/)

This should be added to version control ignore file:
```
# local .env* files
.env.local
.env.*.local
```

It's probably a good idea to also ignore plain `.env` files, as most tools will warn you
that it's a potential security risk. 
Instead, including a `.env-example` seems to be a popular way to document the environment variables in use. 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ChacheGS/dotenv_flow",
    "name": "dotenv-flow",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "environment variables,deployments,settings,env,dotenv,configurations,python",
    "author": "Carlos Gonzalez",
    "author_email": "gonsa.carlos@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/50/69/3e01533f8de00c4e554abfd226085cdf0f2b0fca7a68fafa2e52cc3f7175/dotenv_flow-0.4.0.tar.gz",
    "platform": null,
    "description": "# dotenv_flow\n\nHierarchically load different dotenv files based on the value of the `PY_ENV` variable. Dotenv files will be searched\nby name, by decreasing order of priority (specificity) to the selected environment.\n\nAs dotenv files are loaded, the process' environment (os.environ) is enriched with the variables found in those files.\nEnvironment values that already exist will be left untouched.\n\nFiles have 2 flavors:\n\n- public (ex: .env.dev) that should be committed to version control\n- private (ex: .env.dev.local) that has preference over the previous one if present, and should **NOT**\n\nThis is the python version of Node's [dotenv-flow](https://www.npmjs.com/package/dotenv-flow).\n\ndotenv files are loaded with [python-dotenv](https://pypi.org/project/python-dotenv/)\n\nThis should be added to version control ignore file:\n```\n# local .env* files\n.env.local\n.env.*.local\n```\n\nIt's probably a good idea to also ignore plain `.env` files, as most tools will warn you\nthat it's a potential security risk. \nInstead, including a `.env-example` seems to be a popular way to document the environment variables in use. \n",
    "bugtrack_url": null,
    "license": "WTFPL",
    "summary": "Like the dotenv-flow NodeJS library, for Python",
    "version": "0.4.0",
    "split_keywords": [
        "environment variables",
        "deployments",
        "settings",
        "env",
        "dotenv",
        "configurations",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f87c1c2e0416717380fd4f147b991a3e2daf74b0d5ba959344018713fc8499d",
                "md5": "75813ec4d050b219d8b32b086832eba7",
                "sha256": "9b9a4a6bf81b081ab7d9a7a6523a09f5bfd640288325bda7050d7d08da82b692"
            },
            "downloads": -1,
            "filename": "dotenv_flow-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "75813ec4d050b219d8b32b086832eba7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 2787,
            "upload_time": "2023-03-23T01:45:22",
            "upload_time_iso_8601": "2023-03-23T01:45:22.867092Z",
            "url": "https://files.pythonhosted.org/packages/0f/87/c1c2e0416717380fd4f147b991a3e2daf74b0d5ba959344018713fc8499d/dotenv_flow-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50693e01533f8de00c4e554abfd226085cdf0f2b0fca7a68fafa2e52cc3f7175",
                "md5": "2a62aaa85b06110a2bc3b45b140d712e",
                "sha256": "54f85cb67028d78d51543436d5270a919bf6d9ef37d737c9ef333f70f8f4f352"
            },
            "downloads": -1,
            "filename": "dotenv_flow-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2a62aaa85b06110a2bc3b45b140d712e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 2304,
            "upload_time": "2023-03-23T01:45:24",
            "upload_time_iso_8601": "2023-03-23T01:45:24.835906Z",
            "url": "https://files.pythonhosted.org/packages/50/69/3e01533f8de00c4e554abfd226085cdf0f2b0fca7a68fafa2e52cc3f7175/dotenv_flow-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-23 01:45:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ChacheGS",
    "github_project": "dotenv_flow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "dotenv-flow"
}
        
Elapsed time: 0.18091s