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.0.7.tar.gz
(26.3 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a12d9d2d8ec3db7badaab89b360d2b4670bb09544fa880911a80a5b37e405f9 |
|
MD5 | ce7c7d8ac1c9e3be507d2cde464ff0f5 |
|
BLAKE2b-256 | 029463834ff5959ad504dca3066c52d152cb9715f6cf3c39bba3870bd6b3c709 |
Close
Hashes for classcard_dataclient-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5066f5540e75aa4a474dc1bec89903e802207efb4a26201eb599c198ec62ed97 |
|
MD5 | 82ca531d83d94d35c9e6b918a7d9580c |
|
BLAKE2b-256 | 3ddc58010d3ae8d2af641848922c57b4acea59f4dd1062b38657bb7f25600822 |