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.0.tar.gz
(76.8 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be066049232ce3f7aec8e69d02c3c073bbca797ec875739d3ae22fdc00f08be |
|
MD5 | e76ad7722d8fd28ff8b9ef30ed3e605a |
|
BLAKE2b-256 | 3dc0e0d33a5cf210738105cc69d9c97c2285fb050e397d11c58c1415d94bbfab |
Close
Hashes for classcard_dataclient-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3472c4001e0276fb20a1be6685f381d31fdf19305da44983918b18e7eb03a03 |
|
MD5 | a968c01764ad5f0f3a56b4d4d494964e |
|
BLAKE2b-256 | d0b1e737be57d32e2be679b687f1ad5986d28643e8f1f0dc88f6e61c0d0ca8c0 |