This repository contains the Python SDK for interacting with the Invariantlabs APIs.
This documentation will guide you through the process of setting up the SDK, capturing traces, and uploading them to the Invariant Explorer. The SDK currently only supports Python.
Visit this to see how to use the SDK.
pip install invariant-sdk
You can include the Invariant SDK in your requirements.txt
file by adding invariant-sdk
.
To include the Invariant SDK in your pyproject.toml
file, follow these steps:
-
Add
invariant-sdk
under the[tool.poetry.dependencies]
section inpyproject.toml
. -
Run the following command to install the dependencies:
poetry install
-
Add
invariant-sdk
under thedependencies
section inpyproject.toml
. -
Run the following command to install the dependencies:
hatch env update
To do a PyPi release:
- Update the version in pyproject.toml and push the commit to main.
- On Github go to Actions > Select
Publish to PyPi
workflow on the left pane and click on Run workflow.