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.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff3129fa83768e8797ebb583be0e4e64ba4d492544329996095c8d3c0adaaea9 |
|
MD5 | 19cbf5aef55ef374eea427c48ae4bf8f |
|
BLAKE2b-256 | 6293ef32f84d03c06a5c069e925c801139e6dfdf706b9f222462a94021730998 |
Close
Hashes for classcard_dataclient-1.0.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a824d788ea4e9cdbcb61ece0866dd4c2fe97375e1eb46e3c597b47520ce22a |
|
MD5 | b51c03a6bea9efbe2e671151f6a5c81d |
|
BLAKE2b-256 | 24181f8604114d10261ab2d866fcad6a77ed8d08a61ffb0235ac86cd7cc7570f |