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

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.2
File Size Uploaded Provenance Actions
tensoract_sdk-1.0.2.tar.gz 9.8 kB With provenance Details for tensoract_sdk-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 19.3 kB

Release files / tensoract_sdk-1.0.2.tar.gz

Download URL tensoract_sdk-1.0.2.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1d83ea45cd71273e45cadb89bebbd56055fbdbc00e1da4af7cc2908471a52e96
BLAKE2b-256 checksum
How to use checksums
925a66617a9dda42b8d39cc84a166e9dc86308e133895970b1154e34224d6706
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.2-py3-none-any.whl

Download URL tensoract_sdk-1.0.2-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
077a0b3ad73e49a7c92c5ad1ab2dc17be9d309b79e52cdbd69d572d546d1e9e1
BLAKE2b-256 checksum
How to use checksums
e5c9e71bc169db415d68684c0285dc38574ca97d180e36c10307a54ef8ce2909
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.2

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