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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02aad27cd2bd5bcf3db8ab0e25fcfe774e0a0027893ccd37212345d7f6b5d434 |
|
MD5 | 2f725cc520ee325b8b584aaac2f9b76f |
|
BLAKE2b-256 | 59b3f065ccc6ae23b4718dc356a3348e55cea152050a01866949db56b295829c |
Close
Hashes for classcard_dataclient-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4ee2b5490a6f3437d9c03d5e4235e85e0f7f61a1341cad2d6627e38f7577ef |
|
MD5 | b662adac860c8b5c27608cf0d6002af9 |
|
BLAKE2b-256 | 274584ba15469446a591bb99dd5adc0a98c14c628f35e5c148520898d44d717d |