Skip to main content

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 key
  • base_url (str, optional): API base URL (defaults to production)
  • timeout (float, optional): Request timeout in seconds

Methods

  • health_check(): Check API availability
  • scans.create(options): Create a new scan
  • scans.get_results(scan_id): Get scan results
  • scans.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tavo_sdk-0.4.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tavo_sdk-0.4.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

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

Hashes for tavo_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 232110c062b9d7f70c5af08cefeebe6ffa7c5bc65aa45e46c89b2f3dee143e11
MD5 47bcb5a6ed78c2f13d04a0b6abc79681
BLAKE2b-256 9a0f2cd64120c0d4399d47317b680fbb05adad8a5b40ca2a50654f8dae9bffe8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tavo_sdk-0.4.0.tar.gz:

Publisher: publish-python.yml on TavoAI/tavo-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tavo_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 342081686ffcd3d106c90ef6f52e827c2813eaf6900ca17a7c6f15266a58fc95
MD5 87e6e3b4f919c6ebfd717a432fde1af6
BLAKE2b-256 f3c4c31729c477989f16dedf7a75abb0a0b0c511b9803fcf70378d66fddf6a6e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page