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.0.tar.gz
(26.4 kB
view hashes)
Close
Hashes for classcard_dataclient-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9cfbac5cb12cfb19d0e8576ce3242268ed8db25b2e808f65589328ab032f4d5 |
|
MD5 | 19f7a0f05b446445cca47135a5b4dcdd |
|
BLAKE2b-256 | dd07da731e6f391679560f7914d081a52c72fc3dc7ea276b0a1b79504fe4f9bc |