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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95b430564893c02fea6dfb611939cf05a5b0c966197992766e5ee2059964882 |
|
MD5 | 2608b538edc934d8fe7e718d7433d34d |
|
BLAKE2b-256 | 3ffdbb8557278e8e82cc199a1290582e6ec89ccf1258f4ccef10aa37134c0339 |
Close
Hashes for classcard_dataclient-1.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e3a3a08307cbebd7bfc457315c969f92649c337bf64a834990c3edc6f9f5de |
|
MD5 | 6c0d2cd634eb1ea07d76f77a741b01d4 |
|
BLAKE2b-256 | 5dbb3fffcb44c0c08e853b556f81ba467b051573d4bfa3aa2d8961a9c67189d1 |