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.1.tar.gz
(85.3 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6024eec7ade837609e43ee11c3ae6fac7274afbbb3907020694bc45f86b5664e |
|
MD5 | 064f4230ee9736b8701798a73e746fcd |
|
BLAKE2b-256 | 7fef205df8207358ee6157ef0b5a4a2bb986d1758abfe16b066233d575169ef7 |
Close
Hashes for classcard_dataclient-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b1ab1ec5c08f440b994a9f690591f33a3786fbb02f0aeb818e4ca92e0a35c25 |
|
MD5 | 1368aadeff0cb083550cc8f69a3743fe |
|
BLAKE2b-256 | ab69f098e69bd13e5d5622b8a1b6ae73f2a3384fdc8968900e174c85e4335ce8 |