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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80241e473fdf98d4dbe8b40dc253f772ad296982a39640156c451c8f8171dc42 |
|
MD5 | e182f8414d138c08838239f90e33e352 |
|
BLAKE2b-256 | e0db43f8646739f8a2a9270a22ffa8c7ce22f2c1eb1924861f5d267e330cdc22 |
Close
Hashes for classcard_dataclient-1.0.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65074aee3a2fe4cf369d305686329f6a43da295f2c95b6fe5022567aeb4652b5 |
|
MD5 | 5a38cd4b74be24640092788523dcfccd |
|
BLAKE2b-256 | 83977570da77ce2033fe830b4610b9f75c5deea31971f24d455e2cc3b68385b1 |