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.48.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc548aa4afd07466ad2e6c3235ed124d8e9645e1ca17843f6c99296f68eba6e6 |
|
MD5 | 98175f35888478370e244f73ab483267 |
|
BLAKE2b-256 | 76fe21cceb18c18e1d4ec91b7041f12d88a87dbefc0af60fd7f50409cf1d4604 |
Close
Hashes for classcard_dataclient-1.0.48-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f20947f340a053f6845679f22fa6aaed6eeda23ea1db73b24152f0a32c01c8e |
|
MD5 | 21f579659488e6d7ba70f4182300b38f |
|
BLAKE2b-256 | b2a63667b6b1dec68ff0891463ea338e402fa73d5867f1d09cf20f3f52797940 |