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
classcard_dataclient-1.1.7.tar.gz
(90.5 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eedfbc5da45438c135040fb9ae32edc684db24b4fbbc1eb35cf90ad5ad8efeaa |
|
MD5 | 9e0cd001c9c6108bf939334f6ce5993b |
|
BLAKE2b-256 | 5c581027695dfb834203800f782ef6526e4f65484214ca2fdfac42507cb88617 |
Close
Hashes for classcard_dataclient-1.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9184f255d0f2f9655a692f9746254bfc3e7d2cecef2012d1cd8ae87cced85e8f |
|
MD5 | 0e83436109497adde1036ffb7736dbf2 |
|
BLAKE2b-256 | ce605bffa5f78e385cd0f0372a419f1e6b8bf4ac32a4ff39185f7accbb3c2c97 |