config助手
Project description
pyconfig_util
- pyconfig_util.py
取出配置放进内存
规范:
配置文件路径:root_dir + '/config/' + 'setting.yaml'
,即项目运行目录下的/config/setting.yaml
默认配置文件路径: root_dir + '/config/' + 'setting.default.yaml'
,即项目运行目录下的/config/setting.default.yaml
from pyconfig_util.config_util import setting
DATABASE_HOST = setting.DATABASE_HOST
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyconfig_util-1.0.4.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pyconfig_util-1.0.4.tar.gz
.
File metadata
- Download URL: pyconfig_util-1.0.4.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22ebba48bde7315fbd2af2facef86251516181dddc7ca530dda21cd8dd9cd3b1 |
|
MD5 | 34bb5836a9f25e309901985644e77c08 |
|
BLAKE2b-256 | 3a3e26bf9a895601a6de1eb158052866eb0a7318775ffcef83942cec6621ca2a |
File details
Details for the file pyconfig_util-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyconfig_util-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecfcbedd6490c21866b56d9c48e4b91c999d2bba25d2b9a7d1a8a015367a22fd |
|
MD5 | 2d8aefaf9628b3d9fd1be0c7c756260d |
|
BLAKE2b-256 | 3065565df4eeca820df49a2d16956cf3ff593cfb41910ee7934958f11bfad88a |