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.

Source Distribution

klazor-client-0.0.4.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

klazor_client-0.0.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file klazor-client-0.0.4.tar.gz.

File metadata

  • Download URL: klazor-client-0.0.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for klazor-client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 95d32e17edee68f96469ed205b362b306333487b51c28d2e03436061c330c0dd
MD5 c6279d5a4df876f8b0dace9656233282
BLAKE2b-256 0613ec5782cabce94c2ff1d024e954fb1c574f827c3f58ced76d6397c36c3852

See more details on using hashes here.

File details

Details for the file klazor_client-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: klazor_client-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for klazor_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c08bb8f6647997ac8c5b3f47d38e42ec225885c31079159209007bbdc2f7d6f6
MD5 b2d91ded7a2b6d7cee9721606a117453
BLAKE2b-256 c170d41247c3a959786e884ee195c6ec594de340223d54ac0a0362c6fa0a421c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page