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
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 Distributions
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee6033b3108cc4e948345b71c4c0c51c4d42ee495d5bee0b4f7e40b7101f241
|
|
| MD5 |
6ff22efaa2a7e6ea9f18023094be0faa
|
|
| BLAKE2b-256 |
b164d0a2106cb68ddf43a2e820c32cc049e6f6ca4dccad9bdaf38665e0ea4586
|
Provenance
The following attestation bundles were made for sqlite_predict-0.0.1a6.tar.gz:
Publisher:
wheels.yml on PureStorage-OpenConnect/sqlite-predict
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite_predict-0.0.1a6.tar.gz -
Subject digest:
1ee6033b3108cc4e948345b71c4c0c51c4d42ee495d5bee0b4f7e40b7101f241 - Sigstore transparency entry: 2273640280
- Sigstore integration time:
-
Permalink:
PureStorage-OpenConnect/sqlite-predict@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Branch / Tag:
refs/tags/v0.0.1-alpha.6 - Owner: https://github.com/PureStorage-OpenConnect
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sqlite_predict-0.0.1a6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: sqlite_predict-0.0.1a6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 87.7 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cef0e4090f604b6595cbd5d959ce8edce19b8eb6dbf92adfb5afed1a29d7f466
|
|
| MD5 |
93a73f622940f911ef9a902e1b6c1aaf
|
|
| BLAKE2b-256 |
7ca2ebe37d5b7820b27b970696579b608c0f60fa7ef33b2322d116a02c4b2ddc
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite_predict-0.0.1a6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
cef0e4090f604b6595cbd5d959ce8edce19b8eb6dbf92adfb5afed1a29d7f466 - Sigstore transparency entry: 2273640781
- Sigstore integration time:
-
Permalink:
PureStorage-OpenConnect/sqlite-predict@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Branch / Tag:
refs/tags/v0.0.1-alpha.6 - Owner: https://github.com/PureStorage-OpenConnect
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Trigger Event:
push
-
Statement type:
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
- Download URL: sqlite_predict-0.0.1a6-py3-none-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 93.2 kB
- Tags: Python 3, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bdc4b29070fa73cc1a4f8760ead71bea210d673f430764dbac21f494b8a8e71
|
|
| MD5 |
04d3c6e1cf37e9c1ad498415d9fa5518
|
|
| BLAKE2b-256 |
b26bb32a46a8d38e564e6d8f6b2253dbc51117688414f4fbc34a8a41c414090f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite_predict-0.0.1a6-py3-none-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl -
Subject digest:
9bdc4b29070fa73cc1a4f8760ead71bea210d673f430764dbac21f494b8a8e71 - Sigstore transparency entry: 2273641413
- Sigstore integration time:
-
Permalink:
PureStorage-OpenConnect/sqlite-predict@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Branch / Tag:
refs/tags/v0.0.1-alpha.6 - Owner: https://github.com/PureStorage-OpenConnect
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sqlite_predict-0.0.1a6-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: sqlite_predict-0.0.1a6-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 89.7 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9ca82c54848ff263e0b9735bca02d5bb4f320868e9ac8b68d505c4fbaaf0f51
|
|
| MD5 |
3bb728b69fbc04134b4329f859ac54e9
|
|
| BLAKE2b-256 |
11065dd78cf9e22943e73ed68a931f6ca711faa2445273dabf8b4c2d29e8857b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite_predict-0.0.1a6-py3-none-macosx_11_0_arm64.whl -
Subject digest:
a9ca82c54848ff263e0b9735bca02d5bb4f320868e9ac8b68d505c4fbaaf0f51 - Sigstore transparency entry: 2273642189
- Sigstore integration time:
-
Permalink:
PureStorage-OpenConnect/sqlite-predict@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Branch / Tag:
refs/tags/v0.0.1-alpha.6 - Owner: https://github.com/PureStorage-OpenConnect
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@d7da28ad1748100925206b80f3e28757bdaf29d8 -
Trigger Event:
push
-
Statement type: