Python SDK for Tawala.ai
Project description
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-govpackage. - 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9122924ffa96d818d86d278b6dfce9205eaaa6695ed5dd133fab0c97959e7204
|
|
| MD5 |
689f34da18997485435088781aad955c
|
|
| BLAKE2b-256 |
3eef51160c026375db403f815c56110aac06f7c2b91c254490c226bb2b79249c
|
Provenance
The following attestation bundles were made for tawala_gov-0.1.3.tar.gz:
Publisher:
publish.yml on tawalai/tawala
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tawala_gov-0.1.3.tar.gz -
Subject digest:
9122924ffa96d818d86d278b6dfce9205eaaa6695ed5dd133fab0c97959e7204 - Sigstore transparency entry: 1409464422
- Sigstore integration time:
-
Permalink:
tawalai/tawala@9c28c04e51b80082edd8557250dc1978a011a2f9 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/tawalai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9c28c04e51b80082edd8557250dc1978a011a2f9 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b5cf45bcdb5ded680d3607e48ae16c0c3274337d43a8bc3512ea95919dc9d0f
|
|
| MD5 |
8ba7cbb56e19fbaea0ebdc2c9bd2314d
|
|
| BLAKE2b-256 |
922d2c3d91d4d039d75d4b383d3faeb0374ca4f564758fd7182f1d3ece883e03
|
Provenance
The following attestation bundles were made for tawala_gov-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on tawalai/tawala
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tawala_gov-0.1.3-py3-none-any.whl -
Subject digest:
5b5cf45bcdb5ded680d3607e48ae16c0c3274337d43a8bc3512ea95919dc9d0f - Sigstore transparency entry: 1409464426
- Sigstore integration time:
-
Permalink:
tawalai/tawala@9c28c04e51b80082edd8557250dc1978a011a2f9 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/tawalai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9c28c04e51b80082edd8557250dc1978a011a2f9 -
Trigger Event:
push
-
Statement type: