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.2.2.tar.gz
(27.0 kB
view hashes)
Close
Hashes for classcard_dataclient-1.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28986eddfafac1412e572e276c876a04708e86fff42775ab33ca736195913422 |
|
MD5 | e778688ead23e5dff834c903de922a38 |
|
BLAKE2b-256 | 3a1a414345cf003574cc233a7aedba1de583101e655f0de3a7507a10f3c3e3e0 |