This project has been archived by its maintainers, and is no longer receiving any updates.
trentai-sdk
This service serves inference requests for prompt guard.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.0.9
- Package version: 0.0.9
- Generator version: 7.20.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://trent.ai
Requirements.
Python 3.9++
Installation & Usage
pip install
Install the SDK from PyPI:
pip install trentai-sdk
Then import the package:
import trentai
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import trentai
from trentai.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.trent.ai/inference
# See configuration.py for a list of all supported configuration parameters.
configuration = trentai.Configuration(
host = "https://api.trent.ai/inference"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with trentai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = trentai.(api_client)
try:
api_response = api_instance.()
print("The response of ->:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ->: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.trent.ai/inference
| Class | Method | HTTP request | Description |
|---|---|---|---|
| PromptGuardApi | analyze_prompt | POST /v1/prompt-guard | Analyze prompt for security threats |
Documentation For Models
Documentation For Authorization
Authentication schemes defined for the API:
apiKey
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
Author
Metadata
Release files for trentai-sdk 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trentai_sdk-0.0.9.tar.gz | 23.7 kB | With provenance | Details for trentai_sdk-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trentai_sdk-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for trentai_sdk-0.0.9-py3-none-any.whl |
Total release size: 51.7 kB
Release files / trentai_sdk-0.0.9.tar.gz
| Download URL | trentai_sdk-0.0.9.tar.gz |
|---|---|
| Size | 23.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efe836ef3424d14f941562125dabc1c6e6c9be4fe049dc72e9a86d206e01e560
|
|
BLAKE2b-256 checksum How to use checksums |
0d7647e3fd28cf95fb5c7e042cc1e0925f1beb559edda75e8a8796d2534dabf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency logRelease files / trentai_sdk-0.0.9-py3-none-any.whl
| Download URL | trentai_sdk-0.0.9-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f47bdf3797872355a0ed12f4612fc5c347ddb05b864544883f73fdaf5de8b266
|
|
BLAKE2b-256 checksum How to use checksums |
8475c0a2fae615fe226f080d178974d87fb38778bc8cd89c3cc21e4f40d71924
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency logSecurity for trentai-sdk 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for trentai_sdk-0.0.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.