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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd6ee8a9f535c8a45d23a25df0c582bfecc5094ab2874bc1618d45287c5492d3 |
|
MD5 | 17f9eb72b4d495190ad85c52aadfea3e |
|
BLAKE2b-256 | 9fea1f297772b238dc909e7ab0b631f627e4280cd79483a3bb1df48c4d1739d3 |
Close
Hashes for classcard_dataclient-1.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3675b42f187102d26a9a59db5e460e582968ec97114aa510fe80bce82259b2f0 |
|
MD5 | 2ff047f3cdf981e5d14e6bf9b8c5ffa8 |
|
BLAKE2b-256 | f6dfe39b4261083920481f9bacf8110fc780e40e0f6ed24ed42fd62d67def2ba |