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

Uploaded Source

Built Distribution

pyconfig_util-1.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyconfig_util-1.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyconfig_util-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5ce0ae40524e53dd1dea60de4f7639bf7b8d34693d3b7d73b614c26c4b7280fe
MD5 ae747849a5fb9506619080e9ef49d6f2
BLAKE2b-256 bd098cf75c66dc4f8ae975acdae7c55047747780ad104839d31a9ba8dbfb506e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyconfig_util-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33743ef8f4faa38053ce926f6f685ac13fbda9134217f98e7654c4d0fe8e3d17
MD5 10885a5d351e69ec035559d81678c9b1
BLAKE2b-256 a308f39b8de1fe3d68ecbd2cd6e84c43a5e14bcb93632b9d8d161518974f95e3

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