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.1.11.tar.gz
(109.8 kB
view hashes)
Built Distribution
Close
Hashes for classcard_dataclient-1.1.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f22aaa1d94df30ea59d9b76ecaf6bb506cdc532f9ea3775de964eb5c4e84441 |
|
MD5 | 3f9157c87a7de1cc1795c2b7837761ac |
|
BLAKE2b-256 | e9eaa19d74ed718fa6bb32905842bd8e57c9b3828e55742d78c1b815961dbd08 |
Close
Hashes for classcard_dataclient-1.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13804276f8587d530c0f19e5ceb4687ec8aaf8c94792789a1f512f2db94e286b |
|
MD5 | 036e004b1995584d89fe4bd15717f5e5 |
|
BLAKE2b-256 | d6b2c3ecb25db172fcb69d1a88d4d9043e135450ca9877b24934b9fd4b133d00 |