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.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3525b84adda4050c573461b4d2c897fc67572296a03de199746d2919ac89edc7 |
|
MD5 | 4880a211240d069999ced8ab84f5d5c4 |
|
BLAKE2b-256 | 8225e581fb755a92e811c05ae81ed4cbd47a154153ac2ee87f2614a424f31245 |
Close
Hashes for classcard_dataclient-1.0.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e5faf232713c1810feccb5c7b03bac70ba9b4fe396b0ad2b2957e4f610821f3 |
|
MD5 | 9667bad4cca31e0a389fcb0167b7cbcc |
|
BLAKE2b-256 | a5f778e7a1cace753ec411e8ce7369430b7e4693d419dc5bc73a745051ebad3b |