{ "info": { "author": "Matteo Danieli", "author_email": "md@bendingspoons.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "Envious: Unleash the power of .env files\n========================================\n\nIf you spend a lot of time switching between multiple Python projects and using\nseveral virtual environment, you'll be familiar with the pain of injecting the\nright environment variables into your scripts. You can use autoenv, but it\ndoesn't automatically load the virtual environment for you, so you need to\nlitter the .env file with bash commands. Or you can use a postactivate hook in\nvirtualenvwrapper, but that would mean not having a standardized,\ndefault location for all the needed environment variables. And what if you use\nan IDE like PyCharm, which doesn't load variables from .env files?\n\nEnvious solves the problem by loading configurations from an .env file in the\nworking directory directly from within your Python code, injecting environment\nvariables if they're not already defined, while keeping those that are already\nset.\n\n\nInstallation\n------------\n\nTo install envious, simply type:\n\n.. code-block:: bash\n\n $ pip install envious\n\n\nUsage\n-----\n\nTo have your project import environment variables from an .env file, first\ncreate the file in the root folder of your project:\n\n.. code-block:: bash\n\n ENVIRONMENT=development\n MONGODB_URL=http://localhost:27017/mydb\n REDIS_URL=http://localhost:6379/0\n\nThen add the following to the Python app entry point:\n\n.. code-block:: pycon\n\n from envious import load_env\n\n load_env()\n\nIf you want to manage multiple configuration files for the same project, you're\ncovered. Create multiple configuration files, and then specify the one you want\nto use by providing an environment variable named ``ENV_FILE``:\n\n.. code-block:: bash\n\n $ echo MONGODB_URL=http://localhost:27017/myseconddb > .env2\n $ ENV_FILE=.env2 python my_script.py\n\nThe script will see the alternative value for the environment value\n``MONGODB_URL``.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/BendingSpoons/envious", "keywords": "env,environment,virtualenv,multiple,configuration", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "envious", "package_url": "https://pypi.org/project/envious/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/envious/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/BendingSpoons/envious" }, "release_url": "https://pypi.org/project/envious/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Easy injection of environment variables from .env files.", "version": "0.3.0" }, "last_serial": 2313608, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6dca40079de62ccc12e7feaa122d6bf7", "sha256": "90d67468baab2fec91308c3fb2e1aafe9628dc0e18613520b52d51f4712efaed" }, "downloads": -1, "filename": "envious-0.1.macosx-10.9-x86_64.exe", "has_sig": false, "md5_digest": "6dca40079de62ccc12e7feaa122d6bf7", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 65746, "upload_time": "2014-03-20T02:05:34", "url": "https://files.pythonhosted.org/packages/97/60/3f0ec1bf35877854dc96c0af1cc0f32025a771e6ffdd922d76fd87849e7c/envious-0.1.macosx-10.9-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "666e71d3701d8d092ffd7ce286e919c5", "sha256": "f11e231f714eeae72209a435d2b9a3947847db7212ef6bb6786c9be65c8bf61a" }, "downloads": -1, "filename": "envious-0.1.tar.gz", "has_sig": false, "md5_digest": "666e71d3701d8d092ffd7ce286e919c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1955, "upload_time": "2014-03-20T02:05:28", "url": "https://files.pythonhosted.org/packages/41/e3/6aab50a2032e800540985d7a25d0e3632d03d5a098e3eca20cdb94ae26d4/envious-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1821861943aff1ec06539206e4e3c984", "sha256": "05efcc29410d8e8e67cdba0ed4529062ad89b7a11fc5244af6cf61e98b797777" }, "downloads": -1, "filename": "envious-0.1.1.macosx-10.9-x86_64.exe", "has_sig": false, "md5_digest": "1821861943aff1ec06539206e4e3c984", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 66560, "upload_time": "2014-03-24T10:01:01", "url": "https://files.pythonhosted.org/packages/7f/1a/c7030b663fc92174c35c7cdb89073e4ddbdd2449e6bcd98014ccc07888e7/envious-0.1.1.macosx-10.9-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "720a38a6ec30b585b1d13327c2605987", "sha256": "af4723d18c9924b921fab6dd690d23477d54545d25f0549c5d8b12b42aca655e" }, "downloads": -1, "filename": "envious-0.1.1.tar.gz", "has_sig": false, "md5_digest": "720a38a6ec30b585b1d13327c2605987", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2267, "upload_time": "2014-03-24T10:00:57", "url": "https://files.pythonhosted.org/packages/3f/7b/f58d6fbe783a6abaa9c036a809c990f83d4f834c260b08d6799cdc53aa89/envious-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e7c78dce9f444fd5aa69a69e3a7fa330", "sha256": "3cf513cb384d1e2843f6cd780c89655550a20d9ed9d896cb7f8ac983fa083545" }, "downloads": -1, "filename": "envious-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e7c78dce9f444fd5aa69a69e3a7fa330", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2271, "upload_time": "2016-04-20T20:55:28", "url": "https://files.pythonhosted.org/packages/21/1a/11e01a70d05fe67fb7fa9940318973adda142c8f2893665d91fbac3205ba/envious-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3220254d3fd43112371362609b42eb7f", "sha256": "02646b9b0d30960bd4a5da71c7c8a450880c33f630d08039e9401f10c8f36e96" }, "downloads": -1, "filename": "envious-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3220254d3fd43112371362609b42eb7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2380, "upload_time": "2016-05-13T12:06:02", "url": "https://files.pythonhosted.org/packages/ca/6d/1f1f8f0b6a01aa7f2ee3a628f52c7cd969798081a6ac88c069ca1f4fa517/envious-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "da9d8b01a76ac701a263cd88458ea6ea", "sha256": "06bea5bb31228ca7a15ab8ee98ee7da7bce7b3906c0d464a018a9f721b00a477" }, "downloads": -1, "filename": "envious-0.3.0.tar.gz", "has_sig": false, "md5_digest": "da9d8b01a76ac701a263cd88458ea6ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2498, "upload_time": "2016-08-30T14:34:44", "url": "https://files.pythonhosted.org/packages/f1/b9/db9729dcb3ef2ec5a3e9575b7c93b79d9b7417b2f0045e79395d6dd5fcc2/envious-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "da9d8b01a76ac701a263cd88458ea6ea", "sha256": "06bea5bb31228ca7a15ab8ee98ee7da7bce7b3906c0d464a018a9f721b00a477" }, "downloads": -1, "filename": "envious-0.3.0.tar.gz", "has_sig": false, "md5_digest": "da9d8b01a76ac701a263cd88458ea6ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2498, "upload_time": "2016-08-30T14:34:44", "url": "https://files.pythonhosted.org/packages/f1/b9/db9729dcb3ef2ec5a3e9575b7c93b79d9b7417b2f0045e79395d6dd5fcc2/envious-0.3.0.tar.gz" } ] }