Python client published

This commit is contained in:
Kyle Corbitt
2023-08-23 19:37:05 -07:00
parent 50a79b6e3a
commit db1c8f171d
5 changed files with 252 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ from openpipe.api_client.models.report_json_body_tags import (
)
import toml
import time
import os
version = toml.load("pyproject.toml")["tool"]["poetry"]["version"]
@@ -15,6 +16,9 @@ configured_client = AuthenticatedClient(
base_url="https://app.openpipe.ai/api/v1", token=""
)
if os.environ.get("OPENPIPE_API_KEY"):
configured_client.token = os.environ["OPENPIPE_API_KEY"]
def _get_tags(openpipe_options):
tags = openpipe_options.get("tags") or {}