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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76d2b59a7e10ab8ea8c2e1f6ff38496adaac2cc213ae7b0d66437ad9d0e0a503 |
|
MD5 | 3394fd7bddd11e8843b3b5292e350420 |
|
BLAKE2b-256 | 2414e191529c354342c1f49f8fa1319ba7f38a77becabbff07c03c0e58979f57 |
Close
Hashes for classcard_dataclient-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1748af0ad9b196e282363ba7155f72af717daa7541cfd85e6274fc416e6fc427 |
|
MD5 | 345e98d35acfd17208f39c5912e562ea |
|
BLAKE2b-256 | ab5f8d33d768250ddf60c5bae118afc6fa1ba1f8dfbe73e831caab7a73b1c20d |