The Gentrace Python library provides convenient access to the Gentrace API from Python applications. Most of the code in this library is generated from our OpenAPI specification.
Important note: this library is meant for server-side usage only.
$ pip install gentrace-py
Install package dependencies and activate the Poetry shell:
cd package
poetry install
poetry shell
If you want to run examples, install the dependencies in the examples directory and activate the Poetry shell. You'll also need to configure a .env file with the necessary services to run the application
cd examples
# Dependency installation
poetry install
poetry shell
cp .env.example .env
# Make modifications to .env
python examples/pinecone/fetch.py
Visit our Python monitoring guides to learn how to get started.
Visit our API reference to construct API requests interactively.