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.55.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aabd6883f6c3c8f184ac240d9aebbedc86175384d7b38b532aa4659ed8503a9 |
|
MD5 | 452c4749a75e4f7648d2b55cce569b82 |
|
BLAKE2b-256 | 10b070dc52e5be9e6c547b9a09a6ae4ed895cafa8bbbb40102e81d4e7aae0a2d |
Close
Hashes for classcard_dataclient-1.0.55-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a7d5a1218abd428ca253709c5019b8348eaff6f4af06e366451473d09c0f02 |
|
MD5 | 4fda3a708dba993d059afa02b7e6be98 |
|
BLAKE2b-256 | 3e4cb0adefe3f8fa6e7298f1a4bca616245cfeb761656e1b6c9906a9dc0f6458 |