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.54.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07e40a995057411df3eda521122519135a90e06365d6fb40326af4f7e642fc8b |
|
MD5 | f85927884017208246e40a483832e28c |
|
BLAKE2b-256 | 6bcc3fcc5f4d968e613a3e941acfe2dd02512428c626c4d406bcfabab607c49e |
Close
Hashes for classcard_dataclient-1.0.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4305864e9ddddda68d3936ddee17197706c9c0c983bfacc51b1959dfeebe3a5d |
|
MD5 | a5239da92f2f68b6b1d2f257ff0a76a9 |
|
BLAKE2b-256 | 88eff8bdeddf6cdd76109102bbb22b0f6f229fb235712d3dbd427c003e3e5afd |