Skip to main content

makimoto-kawa

GIT CI PyPI Version Python Versions Website Discord MIT license

Official Python SDK for Kawa's transcription API. makimoto is the shared namespace this SDK lives under, kawa is the specific product it talks to, more Makimoto products may get their own subpackage here later.

This is the maintained, typed client, with pydantic response models, structured exceptions, and a tested, versioned release process, built on top of the same API as the reference client in the main kawa repo. For the interactive playground, full API docs, and the OpenAPI spec, see the main kawa repo. Prefer a zero-dependency, copy-paste client instead of a pip package? See kawa_client.py there.

Install

Requires Python 3.10+.

pip install makimoto-kawa

Authentication

Create an API key from the Makimoto dashboard: https://www.makimoto.ai/login. This is a static key, not the short-lived JWT your browser session uses, it doesn't expire on its own, and it's the only credential this SDK accepts, the transcription endpoints reject a dashboard login JWT outright.

client = kawa.KawaClient(api_key="<your api key>")

or set it once as an environment variable and omit the argument entirely:

export MAKIMOTO_API_KEY="<your api key>"

An explicit api_key argument always wins over the environment variable if both are set.

Usage

from makimoto import kawa

client = kawa.KawaClient(api_key="<your api key>")  # or set MAKIMOTO_API_KEY instead

job = client.transcribe("call.mp3", language="en")

if job.status == "succeeded":
    print(job.result.full_text)
else:
    print(job.error)

See examples/quickstart.py for a complete, runnable script, it ships with a small sample audio file, so python examples/quickstart.py works out of the box once MAKIMOTO_API_KEY is set.

transcribe() submits the recording and polls until it's done in one call, raising TimeoutError if it never finishes. MP3 and WAV files up to 15 MB are accepted; anything over 4 MB is uploaded straight to storage first, automatically. For manual control, e.g. streaming live status updates to a UI, the lower-level primitives are still there:

job = client.create_transcription("call.mp3", language="en")

for update in client.poll(job.job_id):
    print(update.status)

Once a transcription has succeeded, summarise or tag it by its job_id. Both return a new job, fetched or polled the same way as a transcription, through its own job_id, not the source transcription's:

summary_job = client.create_summary(job.job_id)
for update in client.poll(summary_job.job_id):
    print(update.status)
print(update.result.topic, update.result.summary)

tags_job = client.create_tags(job.job_id)
for update in client.poll(tags_job.job_id):
    print(update.status)
print(update.result.tags)

Or skip the transcription entirely and summarise/tag a transcript you already have, with transcript_text instead of a job id (exactly one of the two must be given):

summary_job = client.create_summary(
    transcript_text="the customer called about a billing issue..."
)

Fetch or delete any job (transcription, summary, or tags) by its job_id:

job = client.get_job(job.job_id)
client.delete_job(job.job_id)

List past jobs, one page at a time, with optional filters (status, job_type, language, created_after, job_id). With no job_type, every job type (transcription, summary, and tags) is returned:

page = client.list_jobs(job_type="summary", status="succeeded", limit=25)
for job in page.transcriptions:
    print(job.job_id, job.status)

if page.next_cursor:
    next_page = client.list_jobs(cursor=page.next_cursor)

Or walk every matching job across all pages automatically:

for job in client.iter_jobs(status="succeeded"):
    print(job.job_id)

Release the client's connections when you're done with it, or use it as a context manager:

with kawa.KawaClient(api_key="<your api key>") as client:
    ...

Async

AsyncKawaClient mirrors KawaClient method-for-method (async def instead, backed by httpx2.AsyncClient). Use it inside an existing event loop, an async web app, an async worker, instead of blocking it with sync I/O:

import asyncio
from makimoto import kawa


async def main():
    async with kawa.AsyncKawaClient(api_key="<your api key>") as client:
        job = await client.transcribe("call.mp3", language="en")
        if job.status == "succeeded":
            print(job.result.full_text)


asyncio.run(main())

poll() and iter_jobs() are async generators, iterate with async for:

async for update in client.poll(job.job_id):
    print(update.status)

async for job in client.iter_jobs(status="succeeded"):
    print(job.job_id)

See examples/quickstart_async.py for a complete, runnable script.

Errors

Every call raises kawa.KawaError on an API-level failure (bad status code, or a response that doesn't match the expected shape), and kawa.TimeoutError-compatible TimeoutError from transcribe() if a job never finishes in time. A failed transcription job (status == "failed") is not an exception, it's a normal result, check .status/.error as shown above.

try:
    job = client.transcribe("call.mp3")
except kawa.KawaError as exc:
    print(exc.status_code, exc.body)

Logging

Quiet by default. To see what the SDK is doing (credential source, a poll that gave up), or the raw HTTP traffic underneath it:

import logging

logging.basicConfig()  # attaches a handler so the lines below actually print somewhere
logging.getLogger("makimoto.kawa.client").setLevel(
    logging.DEBUG
)  # this SDK's own events (KawaClient)
logging.getLogger("makimoto.kawa.async_client").setLevel(
    logging.DEBUG
)  # same, for AsyncKawaClient
logging.getLogger("httpx2").setLevel(logging.DEBUG)  # every request/response

Development

See CONTRIBUTING.md.

Licence

MIT

Metadata

Release files for makimoto-kawa 0.3.0

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

Source distribution (sdist)

Source distribution for makimoto-kawa 0.3.0
File Size Uploaded Provenance Actions
makimoto_kawa-0.3.0.tar.gz 30.0 kB With provenance Details for makimoto_kawa-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for makimoto-kawa 0.3.0
File Interpreter ABI Platform Actions
makimoto_kawa-0.3.0-py3-none-any.whl Python 3 none any Details for makimoto_kawa-0.3.0-py3-none-any.whl

Total release size: 55.7 kB

Release files / makimoto_kawa-0.3.0.tar.gz

Download URL makimoto_kawa-0.3.0.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2295fbc8c59e120b74e5f80f476ed17ffce544f38fef83d871af4d2796a8fd99
BLAKE2b-256 checksum
How to use checksums
6a398dfcf3188adfe2ef4e0184e1928f5be1f6a4374cc3fe82b5e02eebd7cde6
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 Oct 28, 2026.

Transparency log

Release files / makimoto_kawa-0.3.0-py3-none-any.whl

Download URL makimoto_kawa-0.3.0-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d34cee898ac13bc23252471e7d112e523c0bc37da335f0cea2e40a0fbff862d9
BLAKE2b-256 checksum
How to use checksums
0eb050f76d2b22f80e78496ab8372727602734a42a8e5fcf7f340fc11c84696f
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 Oct 28, 2026.

Transparency log

Security for makimoto-kawa 0.3.0

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 makimoto_kawa-0.3.0.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 Oct 28, 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