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.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78335a1d1ee0a3acfaa87c72d3beb9dd822a840b3298c34d9043769effcf8ad |
|
MD5 | 5e7116a6f25a52c91fa6d438a5ef04a5 |
|
BLAKE2b-256 | d5f78a9371302fa76bd7b2ef571525d3bbd5b24c34c4f1fd013b43ee3e17b1a6 |
Close
Hashes for classcard_dataclient-1.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b12f086c5f1817dbc428e9b2593e8a5827b2763265ead754d3cbf20664747b |
|
MD5 | a4ea355e26190810e1b83d8364f50833 |
|
BLAKE2b-256 | 830b98da1eb739f02e5b01fc8479a75f1f95edfbf88db6bbe91f08fbdb2aa3c4 |