Skip to main content

58WConfig配置平台工具

Project description

Wconfig

五八同城配置平台WConfig Python SDK。

安装

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.3.tar.gz (1.4 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.3-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wconfig-0.1.3.tar.gz
Algorithm Hash digest
SHA256 636a00fbf35f1df32f067fd7d347c8f92e118874adc4d717a8e1ff3d801c923c
MD5 02bf2f6356315e86fc1c4eafbfaee1dc
BLAKE2b-256 f103f03285a3fb2a491092261e6e08ac76090e2e48e99d3851dd18bc57a162f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wconfig-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5de83eb4738aef37fade06504524c9e1e2ceb2d2900cc88e00f71207df46a38e
MD5 afe6b970d8296762247eddd71305efef
BLAKE2b-256 0e9ead761b0feeddc88ae2a45e3774488b4e9055bf48822ca0b6f78d1cd83594

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