Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

TeenageWorks Python

The official Python SDK for Teen V1, including process-wide compatibility patches for the OpenAI and ElevenLabs Python SDKs.

Version 0.0.1a0 includes:

  • TeenageWorks, AsyncTeenageWorks, TW, and AsyncTW clients
  • OpenAI-style buffered, raw, HTTP-streaming, and SSE responses
  • persistent incremental-text WebSocket sessions
  • inline voice cloning and conditioning
  • typed models for models, capabilities, public voices, and project usage
  • process-wide OpenAI and ElevenLabs TTS routing patches
  • provider pass-through, compatibility warnings, and typed errors

Install from this repository while the first PyPI release is being prepared:

python -m pip install 'git+https://github.com/TeenageWorks/teenageworks-python.git'

Generate speech:

from teenageworks import TeenageWorks

client = TeenageWorks(api_key="tw_live_...")
audio = client.audio.speech.create(
    model="teen-v1",
    voice="default",
    input="Hello from Teen V1.",
    response_format="mp3",
)
audio.write_to_file("speech.mp3")

Provider patches are explicit and affect only recognized TTS calls:

from teenageworks import patch_elevenlabs, patch_openai

patch_openai()
patch_elevenlabs()

The complete documentation lives in docs/.

Metadata

Release files for teenageworks 0.0.1a0

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

Source distribution (sdist)

Source distribution for teenageworks 0.0.1a0
File Size Uploaded
teenageworks-0.0.1a0.tar.gz 35.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for teenageworks 0.0.1a0
File Interpreter ABI Platform
teenageworks-0.0.1a0-py3-none-any.whl Python 3 none any Details

Total release size: 67.1 kB

Release files / teenageworks-0.0.1a0.tar.gz

Download URL teenageworks-0.0.1a0.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
20999487c71043b5ea1ed6aa827f3348f7356473951421628db3cef8b631d387
BLAKE2b-256 checksum
How to use checksums
6a979cc0e754a3757da8b5c7d2211908aecd7617992f41c2789c828f1e6913aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 23, 2026.

Transparency log

Release files / teenageworks-0.0.1a0-py3-none-any.whl

Download URL teenageworks-0.0.1a0-py3-none-any.whl
Size 31.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb161daebd895f48c199088abadfadeee4d0a00438cf292666b5043331e10151
BLAKE2b-256 checksum
How to use checksums
277382205754c40c50e8fb05f0c16342271615a1222c71bde8f98d8fb4247d27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 23, 2026.

Transparency log
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