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.2.1.tar.gz
(27.0 kB
view hashes)
Close
Hashes for classcard_dataclient-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15167f98df226f93361d1c93e184fe794074633a732833886f9e52896c9e1a08 |
|
MD5 | 8380f30886e9136b63930e51d9e20b53 |
|
BLAKE2b-256 | 68f2c8ba8901d88433b3d12c72d6f420c67b815d0b8df20b13450d399d9351bb |