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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42f2783994eef1ee4619dbe13c36b36935c8c66a0ae460957fc5c7ea1e866e7 |
|
MD5 | 8361d76699310d9d5a399583a32eee98 |
|
BLAKE2b-256 | 201309702922e040698d8060b876cebee72c8678e78cc056f9f593ee0f8d3f41 |
Close
Hashes for classcard_dataclient-1.0.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896253554de6144a5a5fd582b9eff6cabc072099ff65dc249200dc6d6b6edb0e |
|
MD5 | 33d924057925d3cb22328095439dd753 |
|
BLAKE2b-256 | 6c9cc772d41c95d6534e78a655cee5460d6f3ee208b094e4109ac818998837ad |