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.46.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb573c71cd0e040a5d323d729250c766cddbbb65327a5499e0a0a72c9c35be11 |
|
MD5 | 55408ee535a75aeb6b8ee4efed6a51cf |
|
BLAKE2b-256 | cb22e1174816bc7ddba41a88810472711e6b9fde77f14428c6face8eccbfe20d |
Close
Hashes for classcard_dataclient-1.0.46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01702403caa7137d7209cf6c9839f0119991c2679a56b16f28b6f22d2886fa4b |
|
MD5 | 031ad3414e20f6ecb8fcbf7c8e3650de |
|
BLAKE2b-256 | e6bf22f06e188f050cb54d0ee08796d7bf0964fba58302b0f191967dce7d1799 |