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.42.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6005600853145a032148b06b7055ece31df3a137c4ed4011d50f75f10fb1ec61 |
|
MD5 | 79e7cf9ae768f7c1267d22b2af5a06bf |
|
BLAKE2b-256 | 559855364eb3234dabd7e72584b44670609e1cfcd91c3edda1936919fb095b04 |
Close
Hashes for classcard_dataclient-1.0.42-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0ec10a5b5cf58b21d877288e64c7a0966c28e5d65f7e881b4dd4254b0f22a5 |
|
MD5 | b0372e0f4c1c64c237bb1df9128b2a69 |
|
BLAKE2b-256 | 120dc06a01ab60ca950b46134923e55097ace322f14bb03711540e650b5d1c90 |