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
Built Distribution
File details
Details for the file groq-0.1.1.tar.gz
.
File metadata
- Download URL: groq-0.1.1.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1016-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa518f47a7ca610f7d823873b1ada197627a399016beb484ef155437550fb81c |
|
MD5 | 0a97ba73cf76ea0f69acf3abacaf1fbb |
|
BLAKE2b-256 | cf03774de12c99d332cbfb36e76d4c38c5ad28743f09662a2d8e4db6375f6bb4 |
File details
Details for the file groq-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: groq-0.1.1-py3-none-any.whl
- Upload date:
- Size: 50.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1016-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac2ae6b957e7dff6ceb472213cee116e51ca40893c8c3b0994251b2c100ccb10 |
|
MD5 | 3ae71a54c094adbb8664ecada78ef973 |
|
BLAKE2b-256 | 396bb7bdc04d2957733049cafceeb3f6c977242c931f128ff04257d15138b649 |