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
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
Release files for klazor-client 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| klazor-client-0.0.4.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| klazor_client-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / klazor-client-0.0.4.tar.gz
| Download URL | klazor-client-0.0.4.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95d32e17edee68f96469ed205b362b306333487b51c28d2e03436061c330c0dd
|
|
BLAKE2b-256 checksum How to use checksums |
0613ec5782cabce94c2ff1d024e954fb1c574f827c3f58ced76d6397c36c3852
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.2
|
Release files / klazor_client-0.0.4-py3-none-any.whl
| Download URL | klazor_client-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c08bb8f6647997ac8c5b3f47d38e42ec225885c31079159209007bbdc2f7d6f6
|
|
BLAKE2b-256 checksum How to use checksums |
c170d41247c3a959786e884ee195c6ec594de340223d54ac0a0362c6fa0a421c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.2
|