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.1.4.tar.gz
(89.8 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6996283816f1f7170b61f745237158da6ea7e2d032ff47480e8336ace2c47cf |
|
MD5 | caf13873c172481904fae11d41c39f93 |
|
BLAKE2b-256 | a3a7dae84d78d27f55486e8dfe906d65735102f43331e37a2a02a25df39dd5b2 |
Close
Hashes for classcard_dataclient-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17b77a31fa875fd1e7ded7427d9dde5d079d68f9c55c8805f95a0e92a8541d9e |
|
MD5 | a34789c74401cca4b33dadcf322502a2 |
|
BLAKE2b-256 | 31e965d56309c1f30f8bf9d71f3e36e99c67430b95f00cc323aabf64dc199076 |