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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b35617b87c0cf4b3d3758f9deadc9e96802623cc816d7fc3f6e28888083b4f8 |
|
MD5 | cd77e45d44c257f32f9ddefc9dfb63b6 |
|
BLAKE2b-256 | 8e75aa208edb50bc4ed39bee22fd0b0493d42fdf069678e1fa870f7919700d07 |
Close
Hashes for classcard_dataclient-1.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78369ddd811e27807d60c057f4859887a106ea05a0c6de0bbd51d36a9fc63e48 |
|
MD5 | 65710f2be4b990d859df9ce9fc995138 |
|
BLAKE2b-256 | 70cc39ff5ad3a0c7decfe3556ee82006a6bfe7ad06018491b3b114ef754d8a8b |