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.3.tar.gz (111.4 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.3-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tawala_gov-0.1.3.tar.gz
  • Upload date:
  • Size: 111.4 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.3.tar.gz
Algorithm Hash digest
SHA256 9122924ffa96d818d86d278b6dfce9205eaaa6695ed5dd133fab0c97959e7204
MD5 689f34da18997485435088781aad955c
BLAKE2b-256 3eef51160c026375db403f815c56110aac06f7c2b91c254490c226bb2b79249c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tawala_gov-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: tawala_gov-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 23.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5b5cf45bcdb5ded680d3607e48ae16c0c3274337d43a8bc3512ea95919dc9d0f
MD5 8ba7cbb56e19fbaea0ebdc2c9bd2314d
BLAKE2b-256 922d2c3d91d4d039d75d4b383d3faeb0374ca4f564758fd7182f1d3ece883e03

See more details on using hashes here.

Provenance

The following attestation bundles were made for tawala_gov-0.1.3-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