Metadata-Version: 2.1
Name: klazor-client
Version: 0.0.4
Summary: A package that enables your app to communicate with klazor in a client-server way
Home-page: https://github.com/wilcoln/klazor-client
Author: Wilfried L. Bounsi
Author-email: wilcoln99@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests

# Klazor Client Package

A package that enables client-server communication between your app and klazor server

## Installation
```
pip install git+https://github.com/wilcoln/klazor-client.git
```
## Usage

```python
import klazor_client as kc

kc.config(
    API_URL='http://127.0.0.1:8000/api', # should be 'http://klazor.com/api'
)

# fetch item by its id
course = kc.fetch_course(1)
sheet = kc.fetch_sheet(2)

# fetch all items 
courses = kc.fetch_courses()
sheets = kc.fetch_sheets()
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License
[MIT](https://choosealicense.com/licenses/mit/)


