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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13afdbe04328efec0a8a57913b131eaf2acaeba733a01d5abddbb81e00411fa3 |
|
MD5 | 93490dab4e86de0a8a6e40ee6d6284ce |
|
BLAKE2b-256 | 035c348afe1d47d43dc976692c5d2c2957877187697d2cc722d20022d3027d1f |
Close
Hashes for classcard_dataclient-1.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71cb5b18af53ce8b772908a3ae0f49f4ed20c1b221ee06f88dec1a518a85418 |
|
MD5 | e5ba8035e37377212c967a5314adfc6c |
|
BLAKE2b-256 | 9e102f3666511f116f83d8d74f856c69e055d46178dc8dcdafdd4b4cf73f1987 |