Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modelsdotdev-0.20260610.0.tar.gz (815.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modelsdotdev-0.20260610.0-py3-none-any.whl (821.9 kB view details)

Uploaded Python 3

File details

Details for the file modelsdotdev-0.20260610.0.tar.gz.

File metadata

  • Download URL: modelsdotdev-0.20260610.0.tar.gz
  • Upload date:
  • Size: 815.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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

Hashes for modelsdotdev-0.20260610.0.tar.gz
Algorithm Hash digest
SHA256 f5e2d4e4c9b0a361d3e15d85e2c0fbacc787a7bdc66905807626953f3e22df9a
MD5 ffa33f1fc69c329fb2f76bed20180a1a
BLAKE2b-256 e8561505bb4d88d8c30261a2402c28ef9a7c8898bd428259ce9857931fc00603

See more details on using hashes here.

File details

Details for the file modelsdotdev-0.20260610.0-py3-none-any.whl.

File metadata

  • Download URL: modelsdotdev-0.20260610.0-py3-none-any.whl
  • Upload date:
  • Size: 821.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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

Hashes for modelsdotdev-0.20260610.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2595fcd3845d10b67b341d1f68b6cf25f573e89bf6f3a1e00bf81a816b909b4
MD5 0ba1ad472cd6f6b95ba88fd2edcb27d7
BLAKE2b-256 780b8cc67217511c8cbb4f997095b9abe7742627b412a1baf021a5991739a20a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page