Metadata-Version: 2.1
Name: tyba-client
Version: 0.1.16
Summary: A Python API client for the Tyba Public API
License: MIT
Author: Tyler Nisonoff
Author-email: tyler@tybaenergy.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: dataclasses-json (>=0.5.4,<0.6.0)
Requires-Dist: marshmallow (>=3.12.1,<4.0.0)
Requires-Dist: pandas (>=1.3.2,<2.0.0)
Requires-Dist: requests (>=2.25.1,<3.0.0)
Description-Content-Type: text/markdown

# 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 the `HOST` env var)
