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.ctxlen("claude-opus-5-5")
1000000
>>> ctxlen.ctxlen("anthropic/claude-sonnet-5-5")
1000000
>>> ctxlen.ctxlen("gpt-6-sol")
1050000
>>> ctxlen.ctxlen("openai/gpt-6-luna")
1050000
>>> ctxlen.max_input("gpt-6-sol"), ctxlen.max_output("gpt-6-sol")
(922000, 128000)
The numbers come from litellm and models.dev; their notices are in LICENSE.
Metadata
Release files for ctxlen 2026.10.11.dev4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ctxlen-2026.10.11.dev4.tar.gz | 56.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ctxlen-2026.10.11.dev4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 112.8 kB
Release files / ctxlen-2026.10.11.dev4.tar.gz
| Download URL | ctxlen-2026.10.11.dev4.tar.gz |
|---|---|
| Size | 56.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd8b9da49b4ef19f9e23311221bfba67d76071d194d2c201f7cc351892328cfd
|
|
BLAKE2b-256 checksum How to use checksums |
a7d40cdda090c006c3a7950d63131b1da79fddcdc3c628a6b3261e3457e6ba60
|
| 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 logRelease files / ctxlen-2026.10.11.dev4-py3-none-any.whl
| Download URL | ctxlen-2026.10.11.dev4-py3-none-any.whl |
|---|---|
| Size | 56.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d405dffb38122bd4e2da594a3dfb9ae2809960e207974bea0cc15ecd6028a90
|
|
BLAKE2b-256 checksum How to use checksums |
7bc4620580718d1ba2499122bdd80e037b05e0e568b479041ee090b7e187b053
|
| 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 logSecurity for ctxlen 2026.10.11.dev4
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.
Attestation for ctxlen-2026.10.11.dev4.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 logA 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.