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.10.tar.gz
(108.7 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.1.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97539a91e5c81ce16e0dbd36ae4c0a4910164ce53fa2eeb3456910bf9df27dff |
|
MD5 | b9303999909b8bea3f6a25e7d2da3a4b |
|
BLAKE2b-256 | 0b1e6e53c3ccaa54a8229acd6edc17538ae4c4116f9ff0986983732ae1c6af0d |
Close
Hashes for classcard_dataclient-1.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd3f9f4bd6b2401ed958fc7b1cbcc2ce15cc4756ae925ba408815ead0ce1214f |
|
MD5 | ba05af87f97061af1dd2b47af93243c5 |
|
BLAKE2b-256 | aeec9517c0831d738a589f0d69a4154e8e6cb24f850504ab00426d0ec70a19d3 |