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.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69059fbf7704f04f9df5a69148497fe25a9619d37ac09e2197d10baf16dd2fe3 |
|
MD5 | caaa3461e97a3b4f1adff2db241bd532 |
|
BLAKE2b-256 | 55fdf257b4928b20fda34fbfee39fb50cde61dcf68e54f472513f47e5f7e1722 |
Close
Hashes for classcard_dataclient-1.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54518615d63a7da2a1027a5e8e39b36ce06f2f35b7ea4c0659fead93adde7234 |
|
MD5 | 2e181c6d7e0106c0eb35345643837928 |
|
BLAKE2b-256 | a766c7b648c2773cd57a033d0c89b3e7131a40ebd305db801dbd10c8391c1cbb |