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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a20cc93a4904f4984bd7ed60c1c7b4a0b1974ca65111831badd4233451e5e3d |
|
MD5 | ff6659ceaaef1c14fbb65d5445117d54 |
|
BLAKE2b-256 | 12cd16efefcb4448a32bfda53c0e4fcb79389587a5e915020dbed6e80c8bc529 |
Close
Hashes for classcard_dataclient-1.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9e4ffe13cfe71ec25ad236c14f2c4f1e2ad9b6171fa5c4eba746cbb65bf17f6 |
|
MD5 | 8e0a8f0086cc481a251e807584be2ceb |
|
BLAKE2b-256 | ea813b86e179de6dce6a4ed0c2e53da2d133edbbd1123ec1b9cf416dadaefd25 |