Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 2026.10.20.4 instead.

ctxlen

A simple library to look up the context limits (input and output tokens) of LLMs.

uv add ctxlen
>>> import ctxlen
>>> ctxlen.max_input("claude-opus-5-5"), ctxlen.max_output("claude-opus-5-5")
(1000000, 128000)
>>> ctxlen.max_input("anthropic/claude-sonnet-5-5")
1000000
>>> ctxlen.max_input("gpt-6-sol"), ctxlen.max_output("gpt-6-sol")
(922000, 128000)
>>> ctxlen.max_input("openai/gpt-6-luna")
922000

The numbers come from litellm and models.dev; their notices are in LICENSE.

Metadata

Release files for ctxlen 2026.10.11.dev3

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

Source distribution (sdist)

Source distribution for ctxlen 2026.10.11.dev3
File Size Uploaded Provenance
ctxlen-2026.10.11.dev3.tar.gz 53.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ctxlen 2026.10.11.dev3
File Interpreter ABI Platform
ctxlen-2026.10.11.dev3-py3-none-any.whl Python 3 none any Details

Total release size: 107.2 kB

Release files / ctxlen-2026.10.11.dev3.tar.gz

Download URL ctxlen-2026.10.11.dev3.tar.gz
Size 53.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8cd6275eae2105c406f2a1708faa818673b1b1a9f06542f156958f5aff04834a
BLAKE2b-256 checksum
How to use checksums
0c4bc93d4f298aee0faa87b7edd76c180633700b3d9ba335a4bf649a8b95d570
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 Oct 11, 2026.

Transparency log

Release files / ctxlen-2026.10.11.dev3-py3-none-any.whl

Download URL ctxlen-2026.10.11.dev3-py3-none-any.whl
Size 53.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f565ad973667d222d07fcfbfa04c4e23d1ada724f93f1ad3a4eaeec4c74c0c6c
BLAKE2b-256 checksum
How to use checksums
1deeb077c8f2fbbca1f22bedc1d572ccc03850fa5a0c2976877b9d4ef1b73a06
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 Oct 11, 2026.

Transparency log

Security for ctxlen 2026.10.11.dev3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ctxlen-2026.10.11.dev3.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 11, 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.

Release history Release notifications | RSS feed

This release
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