Metadata-Version: 2.1
Name: classcard-dataclient
Version: 1.1.4
Summary: data client of class card server
Home-page: http://gitlab.h3c.com/edtech/openconnection
Maintainer: Murray
Maintainer-email: ma.yawei@h3c.com
License: MIT
Download-URL: http://gitlab.h3c.com/edtech/openconnection
Keywords: classcard data-client
Platform: Platform Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.22.0)

## DataClient

### Introduction
this is a tool which save data to class card server

### Usage

##### 1. install
```bash
pip install classcard-dataclient
```

##### 2. init client
```python
# init instance
client = DataClient()
# set the config
client.set_config_module("config")
```

##### 3. call method
```python
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.






