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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80c9c1ba659ef915add82b75946ccc91a8a083963b9104b659956e0ecde8788 |
|
MD5 | 1b6945412abb75612ec3642c2ca54c2f |
|
BLAKE2b-256 | 4f2303db830f9f769b99112391801855c980788a96010089e1107d9d19023692 |
Close
Hashes for classcard_dataclient-1.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3a000ec3b00b28260c1bdfdb543251e72e960be543d640589e804ccf1d7401 |
|
MD5 | 7ffaaac403ef68696cca0c2747560775 |
|
BLAKE2b-256 | a38210e72fe1993f9fa3cc1cc9cd1b5c611fdc24b66f99f013231b3e1b0cf454 |