Skip to main content

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.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pyconfig_util-1.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pyconfig_util-1.0.3.tar.gz.

File metadata

  • Download URL: pyconfig_util-1.0.3.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

Hashes for pyconfig_util-1.0.3.tar.gz
Algorithm Hash digest
SHA256 606b010452bed001ca24eef677773fb53409bc4fd8d64b8003a32444ed854119
MD5 e1df846d4166e5ab888c3f6e3a24cfd4
BLAKE2b-256 bf1f3679fe9a8ff5f7940460190fdc3dd662c394964129c1045515c0e788eefc

See more details on using hashes here.

File details

Details for the file pyconfig_util-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pyconfig_util-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3d0d33db60452c886b048c5549d9962e90bdb2ca3ad8e59dfe4cd00c0fac1c6a
MD5 b2cab925e0aa5f9033ab3327032bfdbe
BLAKE2b-256 fa79e8c6d71a308cd6fc212617c612e51735d171d6f5006ac3f3fb474216894f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page