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.1.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.1.tar.gz.
File metadata
- Download URL: wconfig-0.1.1.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 |
fc93bfcf6d7df4df1d4c0314434f338ed1d078340de100f13c204d00d559cb99
|
|
| MD5 |
2a6d02ae3050e607bcc07301ca01e720
|
|
| BLAKE2b-256 |
ef0193fb32779b8ff5927722466860bf6939364e844583b917ef2c4f18b0beb0
|
File details
Details for the file wconfig-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wconfig-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ca3efe6b89de9239c55ac0c39bc65cef8304fa5a02af5972292c6f93bb09235
|
|
| MD5 |
b5484fa1dd51ec5d66e730808c3a6528
|
|
| BLAKE2b-256 |
08b30d83e26bd19382a39a05f4ae3a1712e7e32a7d8e274a0da7bff9fe4e9314
|