Skip to main content

Tensoract Python SDK

The official Python client for the Tensoract Public API.

Installation

pip install tensoract-sdk

For local development from source:

pip install -e ./sdks/python

Authentication

1. API Key Authentication (x-api-key)

from tensoract_client import TensoractClient

# Defaults to production API (https://fmn.tensoract.com:8443)
client = TensoractClient(
    api_key="fmn_live_xxxxxxxxxxxxxxxxxxxx",
)

users = client.users.list()

To target a custom or self-hosted deployment:

client = TensoractClient(
    api_key="fmn_live_xxxxxxxxxxxxxxxxxxxx",
    base_url="https://fmn.tensoract.com:8443",
)

2. PAT Bearer Token Authentication

from tensoract_client import TensoractClient

client = TensoractClient(
    token="fmn_live_xxxxxxxxxxxxxxxxxxxx",
)

user = client.users.get(1)

Usage Examples

Users API

# Create a user (expects 'name' and 'roles' array, not firstName/lastName/role)
new_user = client.users.create({
    "name": "Alice Annotator",
    "email": "alice@company.com",
    "password": "TemporaryPassword123!",
    "roles": ["ANNOTATOR"],
})

# List users
users = client.users.list(page=1, limit=10)

# Get a user
user = client.users.get(new_user["id"])

Metadata

Release files for tensoract-sdk 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tensoract-sdk 1.0.3
File Size Uploaded Provenance Actions
tensoract_sdk-1.0.3.tar.gz 9.8 kB With provenance Details for tensoract_sdk-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tensoract-sdk 1.0.3
File Interpreter ABI Platform Actions
tensoract_sdk-1.0.3-py3-none-any.whl Python 3 none any Details for tensoract_sdk-1.0.3-py3-none-any.whl

Total release size: 19.3 kB

Release files / tensoract_sdk-1.0.3.tar.gz

Download URL tensoract_sdk-1.0.3.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8a26b8f08c20e827d5c992c30f8c68539c9298f861d8bba7d2a59ce46a77be55
BLAKE2b-256 checksum
How to use checksums
4fb00d763119af22e2aaa298fece9f431e5adb330291cfaa1470d4b3ef8ca486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Release files / tensoract_sdk-1.0.3-py3-none-any.whl

Download URL tensoract_sdk-1.0.3-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a52f708f20b012437eed70e55fba0eb9d1d78a6903c34d6d8eb1a14f3e3534a
BLAKE2b-256 checksum
How to use checksums
3c35bd2c3685a12c57d7c928cac717fddf240540407b044c086db40b1a8061d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Security for tensoract-sdk 1.0.3

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.

Select from 2 files

Attestation for tensoract_sdk-1.0.3.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 Nov 27, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page