An offline models.dev database bundle exposed as a typed Python module.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modelsdotdev-0.20260516.1.tar.gz.
File metadata
- Download URL: modelsdotdev-0.20260516.1.tar.gz
- Upload date:
- Size: 756.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af3014d1255604d71907408007593bc3793831558e9f47a8212c9aa0be175ba9
|
|
| MD5 |
c308c6128ae27ce971621c9670ca840c
|
|
| BLAKE2b-256 |
fe5e3f7d398627ccc5abaf69095771e500275a72826be680eeff113fdeb059fa
|
File details
Details for the file modelsdotdev-0.20260516.1-py3-none-any.whl.
File metadata
- Download URL: modelsdotdev-0.20260516.1-py3-none-any.whl
- Upload date:
- Size: 762.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88c682d390d9dfa25eada06c397b730153d30877826b57fef4230dae4d5370a9
|
|
| MD5 |
d26ee4429daa5bbbd2807b27f7ba260f
|
|
| BLAKE2b-256 |
e06b702cad29ef612c6cf0df9fbbb0c8e732a9d08a14ab482fc89a5a2ee80bed
|