在您的项目虚拟环境中,在每个python-process开始时自动设置env-vars。
项目描述
安装
通过pip安装
> bin/pip install autoread-dotenv
或将它添加到您的基于poetry的项目中
> poetry add autoread-dotenv
用法
您要做的最后一件事是在项目根目录创建一个.env
文件。
已注册sitecustomize-entrypoint
autoread_dotenv.entrypoint
函数已被注册为pyproject.toml_中的sitecustomize
-entrypoint。
[tool.poetry.plugins]
[tool.poetry.plugins."sitecustomize"]
autoread_dotenv = "autoread_dotenv:entrypoint"
Sitecustomize及其所有已注册的entrypoints将在每个python-process启动时执行。更多信息请参阅sitecustomize-entrypoints
兼容性
autoread-dotenv
在Python 3.8+上工作,包括PyPy3。已测试至Python 3.11。
重要依赖
项目详情
关闭
autoread_dotenv-1.0.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | fbc25cbad12d9991825037741bba8a2b748eb7df7c52d99f9eb0e91885a72d73 |
|
MD5 | 6a8ca94f8cd063cfc42d91da81093578 |
|
BLAKE2b-256 | 3d908c421f99291f2b6d81cba402020ac3f568b74be8b300365328f6459c5589 |
关闭
autoread_dotenv-1.0.2-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 745d3ca5d33714d34ee1993cb2947d8d90c573c5688e911f38a6f38057259d08 |
|
MD5 | e91ae5cefee661e1f3c4a902453b83d9 |
|
BLAKE2b-256 | 8a4d3e886499361679c34cd0537879fb666165b9a32f50f3cf00469efb31ae4e |