data client of class card server
Project description
DataClient
Introduction
this is a tool which save data to class card server
Usage
1. install
pip install classcard-dataclient
2. init client
# init instance
client = DataClient()
# set the config
client.set_config_module("config")
3. call method
data = Model(**{
"xxx": "xxx"
})
code, msg = client.create_section(data)
Notice:
- when data is model instance , code is integer, msg is string,
- when data is instance list, the code is list, msg is also list.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for classcard_dataclient-1.0.56.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327cc14c70ef4bd88c67ca068b86a301d35706a63735f14fdcf35002fe8f85b3 |
|
MD5 | 065bc02eb0486100f374d9aa2bab1059 |
|
BLAKE2b-256 | 901508fcba1d1f8c604ccbdce28e68cb0b64866c634040ed503dae886bb86632 |
Close
Hashes for classcard_dataclient-1.0.56-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9991566ac85c578f31aa3db4891a30b21b38a30a5677e5fb8f75bbd6beecaf54 |
|
MD5 | 177b0bfc75c15b5d87522604b234a874 |
|
BLAKE2b-256 | eee10ccd60725bcbea4069ac84bcc739b4ac9d59b435af5c8b4fcc1d295cabd1 |