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.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e4f26286377be6d922c9700eed1fb44c16ed21c3075c506cc68959d9ce2d1c |
|
MD5 | ab2457a1ec977c402ee2de05036810d2 |
|
BLAKE2b-256 | daf8c2741cb2f1ce0ae1127505429a3037785c0e95eb8176f230c7b88132d70b |
Close
Hashes for classcard_dataclient-1.0.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e51fb0cf4c88ab781f00eced773464570932506f6b0ae94d0430fe44c9888531 |
|
MD5 | 4431807ec5d3428228a49a6a849067cd |
|
BLAKE2b-256 | ae78b03548ccd09f3ea9d98f3dd49d2932d29cedb33b9dbb9bfd1b79e9300a3f |