A Python API client for the Tyba Public API
Project description
Tyba API Client
Run the examples in this codebase
- Establish a SSH connection to the AWS bastion (enables access to the pricing DB)
- Start the Generation docker image
- Start the Tyba Server REPL
- Finally, run the example script shown below in a virtual environment (provided by poetry):
poetry shell
poetry install
HOST='http://localhost:3000' TYBA_PAT="dev-test-api-key" python3 examples/pv_example.py
Common Error Scenarios:
Receiving a 401 Response
- Check that the request is hitting the Tyba Server REPL
- Check that the request is making it to the intended domain. (e.g., make sure the implementation of
Client
is reading theHOST
env var)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tyba-client-0.1.18.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for tyba_client-0.1.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1592b463cb81c0d14fa74420882fefea5dc1a132589992f3e0c461bb2ee8b9ad |
|
MD5 | 19a1a4aa7862ec1863819bb7e878c9e4 |
|
BLAKE2b-256 | 8bf7554ac0bc286a52bce906eaf19fcd41ed06e9eb1c8b3d2b381066b4c58cfc |