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.2.tar.gz
(1.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wconfig-0.1.2.tar.gz.
File metadata
- Download URL: wconfig-0.1.2.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd768bce58c7113fee87e7d5c7d0cdff69be0e7340dcbef190e18c24b5cc26b1
|
|
| MD5 |
da6eed8267d1d037b87cf7a6b30c874a
|
|
| BLAKE2b-256 |
e47ee38202ba17460b415286c8621dc15c771300de0de09aa8eb1b0a6d01ada0
|
File details
Details for the file wconfig-0.1.2-py3-none-any.whl.
File metadata
- Download URL: wconfig-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5f7d8326e5b734511660f717d5a37247abdbae2e29a1a8f1dc5741ba072247e
|
|
| MD5 |
dd3a327afb48da9d5efcea060d38e300
|
|
| BLAKE2b-256 |
a4e06486a83d85ac9a658604ab9a538f2b3986ec3b90fdfbd0c107dc934a5e8d
|