Skip to main content

A package that enables your app to communicate with klazor in a client-server way

Project description

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for klazor-client, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size klazor_client-0.0.4-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size klazor-client-0.0.4.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page