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)
Metadata
Release files for wconfig 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wconfig-0.1.3.tar.gz | 1.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wconfig-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.3 kB
Release files / wconfig-0.1.3.tar.gz
| Download URL | wconfig-0.1.3.tar.gz |
|---|---|
| Size | 1.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
636a00fbf35f1df32f067fd7d347c8f92e118874adc4d717a8e1ff3d801c923c
|
|
BLAKE2b-256 checksum How to use checksums |
f103f03285a3fb2a491092261e6e08ac76090e2e48e99d3851dd18bc57a162f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|
Release files / wconfig-0.1.3-py3-none-any.whl
| Download URL | wconfig-0.1.3-py3-none-any.whl |
|---|---|
| Size | 1.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5de83eb4738aef37fade06504524c9e1e2ceb2d2900cc88e00f71207df46a38e
|
|
BLAKE2b-256 checksum How to use checksums |
0e9ead761b0feeddc88ae2a45e3774488b4e9055bf48822ca0b6f78d1cd83594
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|