Skip to main content

modelsdotdev-python

An offline models.dev database bundle exposed as a Python module.

from modelsdotdev import get_model_by_id, get_provider_by_name

provider = get_provider_by_name("OpenAI")
model = get_model_by_id("openai:gpt-5.5")

if provider is not None:
    provider_model = provider.get_model_by_id("gpt-5.5")
    provider_models = list(provider.iter_models())

Development

Install dependencies and run the test suite with uv:

uv run pytest

Running the test suite refreshes the database used by tests. Editable installs refresh the in-tree SQLite database; other installs use a temporary database path exposed through MODELDOTDEV_DATABASE_PATH. You can also refresh the in-tree database explicitly with the Poe task:

uv run poe generate-db

Source checkouts do not generate the database during normal imports or editable installs. Distribution builds generate it automatically if it is missing so published artifacts remain self-contained.

License

This project is licensed under the MIT License. See LICENSE for details.

Metadata

Release files for modelsdotdev 0.20261117.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 modelsdotdev 0.20261117.0
File Size Uploaded Provenance Actions
modelsdotdev-0.20261117.0.tar.gz 1.7 MB Without provenance Details for modelsdotdev-0.20261117.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modelsdotdev 0.20261117.0
File Interpreter ABI Platform Actions
modelsdotdev-0.20261117.0-py3-none-any.whl Python 3 none any Details for modelsdotdev-0.20261117.0-py3-none-any.whl

Total release size: 3.4 MB

Release files / modelsdotdev-0.20261117.0.tar.gz

Download URL modelsdotdev-0.20261117.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
4da9562626b7befa7233873badda4c41eb4a8c67dee8278f9be9d560ab14fce4
BLAKE2b-256 checksum
How to use checksums
26ec72915013d7ac88a6b0a26a86b4f410de28c34d6874c2b8cd8362e02a059d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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":true}

Release files / modelsdotdev-0.20261117.0-py3-none-any.whl

Download URL modelsdotdev-0.20261117.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1e3015fb1b86d45a80c297753aa84d575e21114150936f4a0496e3e58c17181d
BLAKE2b-256 checksum
How to use checksums
22ae59b25da932fd7ff07077ddd3588564596b1eae57b4da87ffd39bb288bb95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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":true}

Security for modelsdotdev 0.20261117.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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