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.17.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for tyba_client-0.1.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32edac83c3e360efa223b75762e67fdf3706d0e39fcaaf385a6137d88439d196 |
|
MD5 | c73777842fcd0974a6a4189323e3a48c |
|
BLAKE2b-256 | ae31f9f1365e357d50e182d9ca6b9bcc437c6f06a81e8cf39cfa7a84abe0336a |