Python SDK for Tavo AI API
Project description
tavo-python-sdk
Python SDK for Tavo AI API
Installation
pip install tavo-python-sdk
# or
poetry add tavo-python-sdk
Usage
Basic Usage
from tavo import TavoClient
# Initialize client
client = TavoClient(api_key='your-api-key-here')
# Health check
health = client.health_check()
print(f'API Status: {health.status}')
Advanced Usage
from tavo import TavoClient
client = TavoClient(
api_key='your-api-key',
base_url='https://api.tavoai.net' # optional
)
# Scan a repository
scan = client.scans.create(
repository_url='https://github.com/user/repo',
scan_type='security'
)
print(f'Scan created: {scan.id}')
# Get scan results
results = client.scans.get_results(scan.id)
print(f'Vulnerabilities found: {len(results.vulnerabilities)}')
Async Support
import asyncio
from tavo import AsyncTavoClient
async def main():
client = AsyncTavoClient(api_key='your-api-key')
# Health check
health = await client.health_check()
print(f'API Status: {health.status}')
# Scan repository
scan = await client.scans.create(
repository_url='https://github.com/user/repo'
)
print(f'Scan created: {scan.id}')
asyncio.run(main())
API Reference
TavoClient
Main client class for interacting with Tavo AI API.
Constructor Options
api_key(str): Your Tavo AI API keybase_url(str, optional): API base URL (defaults to production)timeout(float, optional): Request timeout in seconds
Methods
health_check(): Check API availabilityscans.create(options): Create a new scanscans.get_results(scan_id): Get scan resultsscans.list(): List all scans
AsyncTavoClient
Async version of TavoClient with the same interface.
Authentication
Get your API key from Tavo AI Dashboard.
export TAVO_API_KEY="your-api-key"
Requirements
- Python 3.8+
- pip or poetry
License
Apache-2.0
Support
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tavo_sdk-0.4.0.tar.gz.
File metadata
- Download URL: tavo_sdk-0.4.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
232110c062b9d7f70c5af08cefeebe6ffa7c5bc65aa45e46c89b2f3dee143e11
|
|
| MD5 |
47bcb5a6ed78c2f13d04a0b6abc79681
|
|
| BLAKE2b-256 |
9a0f2cd64120c0d4399d47317b680fbb05adad8a5b40ca2a50654f8dae9bffe8
|
Provenance
The following attestation bundles were made for tavo_sdk-0.4.0.tar.gz:
Publisher:
publish-python.yml on TavoAI/tavo-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tavo_sdk-0.4.0.tar.gz -
Subject digest:
232110c062b9d7f70c5af08cefeebe6ffa7c5bc65aa45e46c89b2f3dee143e11 - Sigstore transparency entry: 608455662
- Sigstore integration time:
-
Permalink:
TavoAI/tavo-sdk@8a6c58c809c2d96672ba9183b5193b293d0fbc11 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TavoAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@8a6c58c809c2d96672ba9183b5193b293d0fbc11 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tavo_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: tavo_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
342081686ffcd3d106c90ef6f52e827c2813eaf6900ca17a7c6f15266a58fc95
|
|
| MD5 |
87e6e3b4f919c6ebfd717a432fde1af6
|
|
| BLAKE2b-256 |
f3c4c31729c477989f16dedf7a75abb0a0b0c511b9803fcf70378d66fddf6a6e
|
Provenance
The following attestation bundles were made for tavo_sdk-0.4.0-py3-none-any.whl:
Publisher:
publish-python.yml on TavoAI/tavo-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tavo_sdk-0.4.0-py3-none-any.whl -
Subject digest:
342081686ffcd3d106c90ef6f52e827c2813eaf6900ca17a7c6f15266a58fc95 - Sigstore transparency entry: 608455705
- Sigstore integration time:
-
Permalink:
TavoAI/tavo-sdk@8a6c58c809c2d96672ba9183b5193b293d0fbc11 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TavoAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@8a6c58c809c2d96672ba9183b5193b293d0fbc11 -
Trigger Event:
workflow_dispatch
-
Statement type: