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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0831135716086b2d98a4d550ab25228b32bba241965f66fbe1fe0084922b789d |
|
MD5 | 12bb5275413148598ee919ef9e42af59 |
|
BLAKE2b-256 | 5423f615f66afe31cff86578f3f7b422f3204093a986ef927116de90388fbb1d |
Close
Hashes for classcard_dataclient-1.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b2400f96c556fe4551d8c54e2de8d0aaa834e8869f14beb05cacadec92bfb0e |
|
MD5 | c6b08ae53a8fd7fff5eab21d3c5ed0bf |
|
BLAKE2b-256 | 61b3c10723be43e86c66054e39afe8c739dc0ed814ad6c9fe36981ab372b7ee7 |