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-sdkYou 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-sdkunder the[tool.poetry.dependencies]section inpyproject.toml. -
Run the following command to install the dependencies:
poetry install
-
Add
invariant-sdkunder thedependenciessection inpyproject.toml. -
Run the following command to install the dependencies:
hatch env updateTo do a PyPi release:
- Update the version in pyproject.toml and push the commit to main.
- On Github go to Actions > Select
Publish to PyPiworkflow on the left pane and click on Run workflow.