跳转到主要内容

在您的项目虚拟环境中,在每个python-process开始时自动设置env-vars。

项目描述

Testing Linting Read the Docs Codecov PyPi Package MIT License

安装

通过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

兼容性

Python Version PyPI - Implementation

autoread-dotenv在Python 3.8+上工作,包括PyPy3。已测试至Python 3.11。

重要依赖

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

autoread_dotenv-1.0.2.tar.gz (5.9 kB 查看哈希值)

上传时间 源代码

构建分发

autoread_dotenv-1.0.2-py3-none-any.whl (4.2 kB 查看哈希值)

上传时间 Python 3

由以下支持