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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68a88f5f80c2453a74a6029b08ce0a17d1f5a2657464ac0245a1cfa63be5696a |
|
MD5 | 5e27ec9cfb073fd5be3d28ffe55ea1c8 |
|
BLAKE2b-256 | 55c8798451137435533476efeaf28ef9561fe63e6161f03e4eb36ff3e298a4be |
Close
Hashes for classcard_dataclient-1.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f3afee35963bac29463f8b03debcc40bd262a1a889e3e13eb1b0f4cd34654f5 |
|
MD5 | 7120e747c7dd19c84e1c0f76e7a71dfd |
|
BLAKE2b-256 | 0b1de34d249e0f37074f921fa86e0d4ee3e16f5f16dd1267a8040f04fb677884 |