Skip to main content

Python SDK for Tawala.ai

Project description

Tawala Logo

Tawala AI SDK

Official Tawala SDK and platform connector. Provides secure APIs, data models, and governance-aware mechanisms to exchange AI-related data with the Tawala Platform.

Description

Tawala https://www.tawala.ai/ is a comprehensive platform for AI governance and risk management. This Python SDK serves as the official client library, enabling developers to programmatically interact with the Tawala platform. It offers secure APIs for managing AI models, systems, risk instances, treatments, and more, ensuring compliance and governance in AI deployments.

Key features include:

  • Authentication and secure API access
  • Data models for AI-related entities
  • Repository classes for CRUD operations on platform resources
  • Utility functions for HTTP communication

Installation

Use the official command (PyPi channel):

pip install tawala-gov

Usage

After installation, you can import and use the client:

from tawala import Client

# Initialize the client with your credentials
client = Client(api_key="your-api-key")

# Example: List AI models
models = client.models.list()

Examples

The examples/ folder contains sample scripts to help you get started with common operations:

  • add_risk_instance.py: Demonstrates how to create and add a new risk instance to the platform.
  • list_models.py: Shows how to retrieve and display a list of available AI models.
  • custom_guard_rule.py: Demonstrates how to implement a new rule and attach it to the Policy Engine.
  • standard_guard_rule.py: Demonstrates how to implement a Policy Engine with a core Tawala rule.

Run these examples after installing the package to see the SDK in action.

Next Steps

  • Get Started: Follow the installation steps above to get the tawala-gov package.
  • API Documentation: Refer to the docstrings in the source code or visit the official Tawala documentation for detailed API references.
  • Authentication: Obtain your API key from the Tawala platform dashboard.
  • Contributing: Report bugs or feature requests on the project's issue tracker.
  • Updates: Check the CHANGELOG.md for the latest changes and version history.

License

This project is licensed under the Tawala Custom Source-Available License. See the LICENSE.md file for details.

Third-party libraries

This project may integrate with third-party open-source libraries such as:

  • transformers
  • huggingface_hub
  • torch

These components remain subject to their respective licenses.

Contacts

For any information please contact the Tawala.ai team at info@tawala.ai

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

tawala_gov-0.1.2.tar.gz (110.0 kB view details)

Uploaded Source

Built Distribution

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

tawala_gov-0.1.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file tawala_gov-0.1.2.tar.gz.

File metadata

  • Download URL: tawala_gov-0.1.2.tar.gz
  • Upload date:
  • Size: 110.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tawala_gov-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c02692e85de8fee99be4fe7b9abd242e8f843db4455eeb8ec242f301517ca4e9
MD5 4b33615130c4fbf53a87f9772e4bfd19
BLAKE2b-256 f21d0dd76e9408b492042ebc00e96db2af1f53f85f3d0d7e5cd06601f829a590

See more details on using hashes here.

Provenance

The following attestation bundles were made for tawala_gov-0.1.2.tar.gz:

Publisher: publish.yml on tawalai/tawala

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

File details

Details for the file tawala_gov-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tawala_gov-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tawala_gov-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a34dde90b1e11f5bbbd9b228a5481b93edf41e19d4452d24970b4162bc80e62
MD5 afe5a78d73a1aa0aace6c42403cc0d86
BLAKE2b-256 4f4f5b490e4f5bb922268d0a48391d2c60acf770937232369969b9b365390b83

See more details on using hashes here.

Provenance

The following attestation bundles were made for tawala_gov-0.1.2-py3-none-any.whl:

Publisher: publish.yml on tawalai/tawala

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