Skip to main content

Auto-generated Python client for the ARBI-TR transcription API

Project description

arbi-tr

Auto-generated Python client for the ARBI-TR transcription API (faster-whisper + pyannote diarization), generated from the service's OpenAPI spec by openapi-python-client.

This package is generated. Do not edit it by hand — run ./scripts/generate-client.sh in the ARBI-TR repo to regenerate it from the current API.

Install

pip install -e client/        # local, from a generated checkout

Usage

Create a client pointed at your ARBI-TR deployment:

from arbi_tr_client import Client

client = Client(base_url="http://localhost:8000")

Async job API (transcribe → poll)

from arbi_tr_client.api.default import (
    transcribe_audio_endpoint_transcribe_post as submit,
    get_task_status_task_status_session_id_get as status,
)
from arbi_tr_client.models import BodyTranscribeAudioEndpointTranscribePost
from arbi_tr_client.types import File

with open("meeting.mp3", "rb") as fh:
    body = BodyTranscribeAudioEndpointTranscribePost(
        file=File(payload=fh, file_name="meeting.mp3", mime_type="audio/mpeg"),
        task_str="transcribe",
    )
    submitted = submit.sync(client=client, body=body)

result = status.sync(client=client, session_id=submitted.session_id)

OpenAI-compatible endpoint

The service also exposes POST /v1/audio/transcriptions, so the standard OpenAI SDK works as a drop-in client. Use transcribe_openai_v1_audio_transcriptions_post from this package for a typed call.

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

arbi_tr-0.2.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arbi_tr-0.2.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file arbi_tr-0.2.1.tar.gz.

File metadata

  • Download URL: arbi_tr-0.2.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for arbi_tr-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5b7b9bd2ca6b0d0acb6cf7718a3958d3188d11fec868fb8accbb7c371ba516c5
MD5 8a78463c683d83e18817f8075f8722ee
BLAKE2b-256 d953fbc51c72db9c31b74bdf5689488713b1f6435a5c58a301334a4249e4b79b

See more details on using hashes here.

File details

Details for the file arbi_tr-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: arbi_tr-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for arbi_tr-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d594eba1137e773356c84b3e30de1e8e4b37ae196fdc5493ebc196f386efcd
MD5 1dc212badd4ac116ebff6072631cfadc
BLAKE2b-256 9cf5cd3a78f2b7cd2c5c6c0c153e4cb2bee8b499d5b14906b454c7f405874817

See more details on using hashes here.

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