The GroqAPI Python SDK
Project description
GroqAPI Python SDK
Devlopment
Setup
first install poetry
via pipx
:
sudo apt install pipx
pipx install poetry
Then install the project:
poetry install
Testing
Make sure to export an appropriate key for the end-to-end tests:
export GROQ_SECRET_ACCESS_KEY="<key>"
To run the tests in /tests
, run
poetry run pytest
To generate a coverage report as well, run
poetry run pytest --cov=groq
Linting & Formatting
To black everything, run
poetry run black .
To lint with prospector, run
poetry run prospector
Building
To build .whl files and such, run
poetry build
Publishing
Note, not tested or implemented yet, I need to add the keys and show for test repo as well To publish to https://test.pypi.org/manage/project/groq/releases/
poetry publish -r test-pypi
to publish to https://pypi.org/project/groq/
poetry publish
Run Examples
To run the example code, you can use poetry run python
like so:
poetry run python examples/examples.py
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
groq-0.1.1.tar.gz
(36.6 kB
view hashes)
Built Distribution
groq-0.1.1-py3-none-any.whl
(50.5 kB
view hashes)