dodoenv
Env 설정을 도와주는 라이브러리입니다.
설치
pip install dodoenv
소개
다음과 같은 목적으로 제작되었습니다.
-
오타방지
EXAMPLE_VALUE = os.environ.get("EXAMPLE_VALEU") # 오탈자 발생
-
Type 힌트
EXAMPLE_VALUE = os.environ.get("EXAMPLE_VALUE") # 없을 시 None assert EXAMPLE_VALUE # assert하지 않으면 Pylance가 조용히 하지 않음
-
Type 변환
EXAMPLE_VALUE = int(os.environ.get("EXAMPLE_VALUE", 0)) # 안멋짐
사용법
from dodoenv import Env, load_dotenv
load_dotenv(".env") # .env 파일에서 환경변수 로드
class Config:
EXAMPLE_VALUE = Env[str]()
EXAMPLE_INT_VALUE = Env[int](func=int)
EXAMPLE_DEFAULT_VALUE = Env[str](default="default_value")
개발 환경 설정
# 저장소 클론
git clone https://github.com/byundojin/dodoenv.git
cd dodoenv
# 개발 의존성 설치
pip install -e ".[dev]"
# 테스트 실행
python -m tests.run
빌드 및 배포
# 빌드
python setup.py sdist bdist_wheel
# PyPI 업로드
pip install twine
twine upload dist/*
라이선스
MIT License - 자세한 내용은 LICENSE 파일을 참조하세요.
Metadata
Release files for dodoenv 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dodoenv-0.1.0.tar.gz | 4.0 kB | Without provenance | Details for dodoenv-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dodoenv-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dodoenv-0.1.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / dodoenv-0.1.0.tar.gz
| Download URL | dodoenv-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
186208b73fa59d5cc50c92523eb6eeb56a0b6640b0f206682c89d8ab3ff9e8b8
|
|
BLAKE2b-256 checksum How to use checksums |
889e83dc4c62e80b42fa66c789310ee3c7fe77adc6d48e221660ab914bed61a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / dodoenv-0.1.0-py3-none-any.whl
| Download URL | dodoenv-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa0ebb4ff01b805437c775b4064eea566276827a650a729bbcfdaf90dbb5d913
|
|
BLAKE2b-256 checksum How to use checksums |
b1188b0bce137a968dd21acc9887d5839dd239d63e23113ecf94604e6131b5a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for dodoenv 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.