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
classcard_dataclient-1.0.8.tar.gz
(27.8 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07a57a7cf0bb810ed5ad1421d15c17b128aab2a34a3ceb62952c264419a979ae |
|
MD5 | 3eb314b7c917d0d922c934460e917419 |
|
BLAKE2b-256 | 55ea05c420b1354a113ae65af4ec347e7e62207a4b2081add45bdbd8bb067dc0 |
Close
Hashes for classcard_dataclient-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f6791f1a90a6d51759f809f1526d8e4b53ac9ae60a01a5d731929a4b0368c36 |
|
MD5 | 2bc25a05ca51c2d45b7e299b813b906c |
|
BLAKE2b-256 | 51e6346283ff56f490849e561bd4768129bda7fe2d49a5839b8e3380eada1394 |