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.1.0.tar.gz (9.8 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.1.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arbi_tr-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 4f0c2a03ba1b09d207ac56ff9a43616c66b11df9fed66a5681824e9bdb0ab498
MD5 00340ec572e7e0a0192203fb5ee36d91
BLAKE2b-256 f2595c38def4279a5215357547e14192c0381be75884efd35cfd8e2d23bbedab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arbi_tr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7445ae3498dcbe9cffa8e1827a1a5fc87061d9012b33f82cee5bd6109c5913
MD5 f9396869a7e65d8ad85e4815377bc2e6
BLAKE2b-256 d528ca174a54d3ce90652d80a479c4ab504c6947a48acb47fff9fbcf78a4a435

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