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.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25011bf15534e26fa0852419e6b355b9e4ef419e70a0346983c78d24e003ec32 |
|
MD5 | 3372f49124493be51132601db8731c1d |
|
BLAKE2b-256 | d4e0a133cd4f8fdac9a852064214bc0a30e8f476df5e47d36904a0d469628102 |
Close
Hashes for classcard_dataclient-1.0.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 745ef329e7da8320fa9c3cce52143683b97077d338d7888c7247853902fc22bd |
|
MD5 | c3edb77366b98f7ac4d69d1a4ca4cd43 |
|
BLAKE2b-256 | a3fa7459cf0ae2005f5042c65e7d9a81ce9f3c5a5bf7f3df209b11de24858e55 |