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.47.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7972da36729a5813a6d8e84e7f7457b75041327bde8f7d8ce62637cc5dc639 |
|
MD5 | ebff928a247ab60446a80113816d83e6 |
|
BLAKE2b-256 | 0815d06dc4b59508e4dae7affebab2a2a5efa68bb7782bf679ebfa61c4f77af9 |
Close
Hashes for classcard_dataclient-1.0.47-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfecbe56d262f581faa243b9e5a3a6da1535bf54c88c67ddb1a0815b3464136f |
|
MD5 | f6fafe105cf3d1f9a93b83ded5d66b2b |
|
BLAKE2b-256 | 97201fb135c42525ee51fbfc790a9c9265ed60787f28eaf969a2f0b36bec41bb |