Skip to main content

SQLite AI Python package

This package provides the sqlite-ai extension prebuilt binaries for multiple platforms and architectures.

SQLite-AI

SQLite-AI is an extension for SQLite that brings artificial intelligence capabilities directly into the database. It enables developers to run, fine-tune, and serve AI models from within SQLite using simple SQL queries — ideal for on-device and edge applications where low-latency and offline inference are critical. The extension is actively developed by SQLite AI, some API and features are still evolving.

More details on the official repository sqliteai/sqlite-ai.

Documentation

For detailed information on all available functions, their parameters, and examples, refer to the comprehensive API Reference.

Supported Platforms and Architectures

Platform Arch Subpackage name Binary name
Linux (CPU) x86_64/arm64 sqliteai.binaries.cpu ai.so
Linux (GPU) x86_64/arm64 sqliteai.binaries.gpu ai.so
Windows (CPU) x86_64 sqliteai.binaries.cpu ai.dll
Windows (GPU) x86_64 sqliteai.binaries.gpu ai.dll
macOS (CPU) x86_64/arm64 sqliteai.binaries.cpu ai.dylib

Usage

Note: Some SQLite installations on certain operating systems may have extension loading disabled by default.
If you encounter issues loading the extension, refer to the sqlite-extensions-guide for platform-specific instructions on enabling and using SQLite extensions.

import importlib.resources
import sqlite3

# Connect to your SQLite database
conn = sqlite3.connect("example.db")

# Load the sqlite-ai extension
# pip will install the correct binary package for your platform and architecture
# Choose between CPU or GPU variant
ext_path = importlib.resources.files("sqliteai.binaries.cpu") / "ai"

conn.enable_load_extension(True)
conn.load_extension(str(ext_path))
conn.enable_load_extension(False)


# Now you can use sqlite-ai features in your SQL queries
print(conn.execute("SELECT ai_version();").fetchone())

Metadata

Release files for sqlite-ai 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for sqlite-ai 1.0.7
File
sqlite_ai-1.0.7-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
sqlite_ai-1.0.7-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
sqlite_ai-1.0.7-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
sqlite_ai-1.0.7-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
sqlite_ai-1.0.7-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details

Total release size: 70.6 MB

Release files / sqlite_ai-1.0.7-py3-none-win_amd64.whl

Download URL sqlite_ai-1.0.7-py3-none-win_amd64.whl
Size 21.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c6814eace86579b5314dbaf9bd318ffb56e72c31c2fa730c5adad92ece300a42
BLAKE2b-256 checksum
How to use checksums
468f3f7d38600ef0b7d98ee7a5c26eb67623e417c8fcb21b4b1a7fb5a6df1518
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 Aug 25, 2026.

Transparency log

Release files / sqlite_ai-1.0.7-py3-none-manylinux2014_x86_64.whl

Download URL sqlite_ai-1.0.7-py3-none-manylinux2014_x86_64.whl
Size 22.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
cc1f863d5c2e3d748298f6f7719dae15a3199f404145ce691d75cf419f984863
BLAKE2b-256 checksum
How to use checksums
ee8e8d53dfc5b03a6224cc81344dfdcbed67195b1017899cd9cca6c4eff83032
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 Aug 25, 2026.

Transparency log

Release files / sqlite_ai-1.0.7-py3-none-manylinux2014_aarch64.whl

Download URL sqlite_ai-1.0.7-py3-none-manylinux2014_aarch64.whl
Size 17.9 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c66a00b2b0744b768ed974d547ea2ca2b7d3b35c99f945e780b52193e5676274
BLAKE2b-256 checksum
How to use checksums
32249a559f3ea10aed9a15187063be8278a7ebe956b5e870c02e9459002074b7
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 Aug 25, 2026.

Transparency log

Release files / sqlite_ai-1.0.7-py3-none-macosx_11_0_arm64.whl

Download URL sqlite_ai-1.0.7-py3-none-macosx_11_0_arm64.whl
Size 4.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a48af2eecdcd504a5f47ddec885ef59509a65849c4b0c4aef393702919ba8f32
BLAKE2b-256 checksum
How to use checksums
6fae7daeb62106f8505c755d6e811ecb8daa6faae1d010127cd639065dcce239
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 Aug 25, 2026.

Transparency log

Release files / sqlite_ai-1.0.7-py3-none-macosx_10_9_x86_64.whl

Download URL sqlite_ai-1.0.7-py3-none-macosx_10_9_x86_64.whl
Size 4.5 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
0484214059a33360b17176117faa1dde77491e635eb292992d0926911dcb7082
BLAKE2b-256 checksum
How to use checksums
a2333ef1717aaa2ef39f49a138a71676770d79e79f526493848a41dcf7db13cd
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 Aug 25, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.8

5 release files

This release

1.0.7 This release

5 release files

1.0.6

5 release files

1.0.5

5 release files

1.0.4

5 release files

1.0.2

5 release files

1.0.0

5 release files

0.7.59

5 release files

0.7.58

5 release files

0.7.57

5 release files

0.7.5

5 release files

0.7.4

5 release files

0.7.3

5 release files

0.7.2

5 release files

0.7.1

5 release files

0.7.0

5 release files

0.6.8

5 release files

0.6.7

5 release files

0.6.2

5 release files

0.6.0

5 release files

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