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.
Release files for modelsdotdev 0.20260817.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| modelsdotdev-0.20260817.0.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modelsdotdev-0.20260817.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.2 MB
Release files / modelsdotdev-0.20260817.0.tar.gz
| Download URL | modelsdotdev-0.20260817.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3d47d990a360268e45e69223a654aac7c42ee7dc8d3f98d5b03834e36f64c7b
|
|
BLAKE2b-256 checksum How to use checksums |
9090953f9a9de1255196fc989440fe9cb7d2ef9fa4277e7dd017acc58e3280a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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.20260817.0-py3-none-any.whl
| Download URL | modelsdotdev-0.20260817.0-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d572204ed8e0c46d216aa4abd8c7f4711b0cf0878080afbe21f5f9edb1d157a3
|
|
BLAKE2b-256 checksum How to use checksums |
96216e2094a9ad783e2d50923e64a008a348a2e5a10b863e7cf08c0cd36f53a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
|