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.6.tar.gz
(26.0 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fdcc0f4282c031d60645535f2baafc97266ea70c3da37be07f69f7b98e66dda |
|
MD5 | 3e7da2f484d2c33489a681dbae5809c5 |
|
BLAKE2b-256 | 27522479136336d3c092b9654eeba35148cbd29cdef7199f3598abe6c71e8942 |
Close
Hashes for classcard_dataclient-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9249e79aabbfa47bdd3d618a8f8e18df291fd3b00a0f20b66257d18e67fe3de1 |
|
MD5 | dab9d32e2ebd7db417f8897857ce2337 |
|
BLAKE2b-256 | 1ea748f4cda32618e534d08343a70c8e76cfd919b4c3d640691c6e963bcc6c4d |