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.45.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8adc84cd664d613c1fbc5fea304d4f6bc5bef6b68517e7362e8c1cbd904f3483 |
|
MD5 | 343a321c1f3e49caad48b7e73dc59557 |
|
BLAKE2b-256 | 9921b340c2f3fba344e5be228845eedd194e1cfee98b36678bb817c988554c70 |
Close
Hashes for classcard_dataclient-1.0.45-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf5663d18d147ca0879ed38c53c385660fa066b5deff594c931fe692181c0d5 |
|
MD5 | 9b36647f85b06a97619c1a99ff6cf055 |
|
BLAKE2b-256 | ae4e07f46e68a2587585287b66f8f2f6fd67e79da03a02447052b4090a40bd55 |