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.14.tar.gz
(110.2 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.1.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc308deb33c4abffdce201cd64bb9f37a156391f19b7a1c161bdd624a040e8aa |
|
MD5 | 1f0b5a05edb209176e8abcf3139082e2 |
|
BLAKE2b-256 | c40aff742ac4e4b2f84559624929702b3358b3c5fdc5e0d1d9d782e0111b37de |
Close
Hashes for classcard_dataclient-1.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f2676f179da77bf2d3e8322977facf7aa8fb7c9a2a188a8bc72d37f2f3cba7 |
|
MD5 | 42e0d30d01806e3f1e95ad626d6b1277 |
|
BLAKE2b-256 | 1f9469720ebab5dc8e86737ebb8a9b96aedb2d35dda1430647589891981d3586 |