Skip to main content

Prediction as a SQL primitive for SQLite: forecast, detect_anomalies, and predict, in a zero-dependency loadable extension.

Project description

sqlite-predict

Prediction as a SQL primitive for SQLite: forecast(), detect_anomalies(), predict(). The wheel bundles the zero-dependency loadable extension for your platform.

import sqlite3
import sqlite_predict

db = sqlite3.connect(":memory:")
sqlite_predict.load(db)

db.execute("CREATE TABLE readings(ts TEXT, value REAL)")
# ... insert rows ...

# forecast() is an aggregate: your query supplies the rows, and each
# group returns one JSON document
doc = db.execute("SELECT forecast(ts, value, 24) FROM readings").fetchone()[0]
print(doc)

See the project README for the full SQL surface, models, and benchmarks.

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

sqlite_predict-0.0.1a6.tar.gz (261.5 kB view details)

Uploaded Source

Built Distributions

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

sqlite_predict-0.0.1a6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (87.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

sqlite_predict-0.0.1a6-py3-none-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (93.2 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

sqlite_predict-0.0.1a6-py3-none-macosx_11_0_arm64.whl (89.7 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file sqlite_predict-0.0.1a6.tar.gz.

File metadata

  • Download URL: sqlite_predict-0.0.1a6.tar.gz
  • Upload date:
  • Size: 261.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for sqlite_predict-0.0.1a6.tar.gz
Algorithm Hash digest
SHA256 1ee6033b3108cc4e948345b71c4c0c51c4d42ee495d5bee0b4f7e40b7101f241
MD5 6ff22efaa2a7e6ea9f18023094be0faa
BLAKE2b-256 b164d0a2106cb68ddf43a2e820c32cc049e6f6ca4dccad9bdaf38665e0ea4586

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_predict-0.0.1a6.tar.gz:

Publisher: wheels.yml on PureStorage-OpenConnect/sqlite-predict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlite_predict-0.0.1a6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sqlite_predict-0.0.1a6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cef0e4090f604b6595cbd5d959ce8edce19b8eb6dbf92adfb5afed1a29d7f466
MD5 93a73f622940f911ef9a902e1b6c1aaf
BLAKE2b-256 7ca2ebe37d5b7820b27b970696579b608c0f60fa7ef33b2322d116a02c4b2ddc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_predict-0.0.1a6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on PureStorage-OpenConnect/sqlite-predict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlite_predict-0.0.1a6-py3-none-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sqlite_predict-0.0.1a6-py3-none-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9bdc4b29070fa73cc1a4f8760ead71bea210d673f430764dbac21f494b8a8e71
MD5 04d3c6e1cf37e9c1ad498415d9fa5518
BLAKE2b-256 b26bb32a46a8d38e564e6d8f6b2253dbc51117688414f4fbc34a8a41c414090f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_predict-0.0.1a6-py3-none-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: wheels.yml on PureStorage-OpenConnect/sqlite-predict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlite_predict-0.0.1a6-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sqlite_predict-0.0.1a6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9ca82c54848ff263e0b9735bca02d5bb4f320868e9ac8b68d505c4fbaaf0f51
MD5 3bb728b69fbc04134b4329f859ac54e9
BLAKE2b-256 11065dd78cf9e22943e73ed68a931f6ca711faa2445273dabf8b4c2d29e8857b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_predict-0.0.1a6-py3-none-macosx_11_0_arm64.whl:

Publisher: wheels.yml on PureStorage-OpenConnect/sqlite-predict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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