Skip to main content

58WConfig配置平台工具

Project description

Wconfig

安装

pip install wconfig

使用

from wconfig import BaseConfig, WConfig

class MyConfig(BaseConfig):
    a: str
    b: int

config = WConfig(
    cluster_key="xx",
    cluster_name="xx",
    group_name="xx",
    namespace="xx",
    config_schema=MyConfig,
).get_main_config()

print(config.a)
print(config.b)

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

wconfig-0.1.0.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wconfig-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file wconfig-0.1.0.tar.gz.

File metadata

  • Download URL: wconfig-0.1.0.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for wconfig-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b0a02855b9552cd461252562d3becb498e02dc75f1652cf35e8692f4f9145e9
MD5 404f30a947aca7cac5895b00a6bca074
BLAKE2b-256 a392214b18ae5932805970fc01445ed75c3470ecb1c51da13105aa8106d18032

See more details on using hashes here.

File details

Details for the file wconfig-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wconfig-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for wconfig-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a7d9ad6e922f58b44b3fdf6e0ac493715fe0b085bc42466c239657c3b3e093a
MD5 567a84bcdfef692050dfa0f33ff0417a
BLAKE2b-256 f84546f6ecec0aa8ea03a5de7f81001e6318a29edb00826f40a8d5b91463d82f

See more details on using hashes here.

Supported by

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