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.51.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef8ab3a4c8c3dfac81df0f074baca2d97eaff992cc4d03766945eaa04ff2a673 |
|
MD5 | e8e4fdca4634b5f77189425b39de2f48 |
|
BLAKE2b-256 | 1ea92ab0b33a4f61eb09a2959a44227337254a0370c91bd5566c40f1e26729c3 |
Close
Hashes for classcard_dataclient-1.0.51-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db49da6b667551c952e281b377e1fd2e380b46be344d2535aa0d2b4aca985cf |
|
MD5 | d078fa34aa0c2736c5bdce3ce5e7586a |
|
BLAKE2b-256 | 3ac9c8f7647cd0481077d0499d29b5503c9168c6907636c56890833800ae5d91 |