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.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0d0728e1633232a4972eb6825deded165b5e010ad5f786a4a4d6a1fed81c3e |
|
MD5 | 47d8312290c384f323ee6537ee553301 |
|
BLAKE2b-256 | cd8c5a4c41e2837038f6fd3413ab6af79671edbb675a34502a2795b7fe4349c1 |
Close
Hashes for classcard_dataclient-1.0.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df19115db5a99c9cf03f64476d84904989e98e93a91458afb4f9792b395ca4f9 |
|
MD5 | 2187e8d00f3ffbd7e687d194243acd7b |
|
BLAKE2b-256 | 63f198759ff6b9fe9dd6d8df087c86a0ed58eaf63bf1097a2d76e8009674b370 |