Open-source embedded analytics platform
Project description
Prismiq
Open-source embedded analytics engine for Python.
Installation
pip install prismiq
Quick Start
from prismiq import PrismiqEngine
# Connect to your database
engine = await PrismiqEngine.create(
database_url="postgresql://user:pass@localhost/mydb",
exposed_tables=["customers", "orders", "products"]
)
# Get schema
schema = await engine.get_schema()
# Execute a query
result = await engine.execute({
"tables": [{"id": "t1", "name": "orders"}],
"columns": [
{"table_id": "t1", "name": "status"},
{"table_id": "t1", "name": "total", "aggregation": "sum"}
],
"group_by": [{"table_id": "t1", "column": "status"}]
})
Features
- Schema introspection - Discover tables, columns, and relationships
- Visual query building - Build SQL from JSON query definitions
- Async execution - Non-blocking database operations with asyncpg
- Type safe - Full type hints with Pydantic models
- Multi-tenant support - Schema-based isolation with Alembic integration
Multi-Tenant Integration
For applications with schema-based multi-tenancy, Prismiq provides SQLAlchemy declarative models and sync table creation:
from sqlalchemy import create_engine
from prismiq import ensure_tables_sync, PrismiqBase
engine = create_engine("postgresql://user:pass@localhost/db")
# Create tables in a tenant-specific schema
with engine.connect() as conn:
ensure_tables_sync(conn, schema_name="tenant_123")
conn.commit()
# For Alembic integration, access the metadata:
# PrismiqBase.metadata.tables contains all Prismiq table definitions
See Multi-Tenant Integration Guide for complete documentation.
Documentation
See the main repository for full documentation.
License
MIT
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 prismiq-0.2.4.tar.gz.
File metadata
- Download URL: prismiq-0.2.4.tar.gz
- Upload date:
- Size: 194.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28f32014be9ee205a2ba2476ec4948fdca7cdea5ea81f9fc715b5ebdf2650713
|
|
| MD5 |
4d3e5501d3ce2ab658178b1d88e4c874
|
|
| BLAKE2b-256 |
f7eccd708c1827d7d6a6e8cc2e334df8a917dc8bd3fdfb5ceb348849a8f57325
|
Provenance
The following attestation bundles were made for prismiq-0.2.4.tar.gz:
Publisher:
publish-pypi.yml on statisfy-us/prismiq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prismiq-0.2.4.tar.gz -
Subject digest:
28f32014be9ee205a2ba2476ec4948fdca7cdea5ea81f9fc715b5ebdf2650713 - Sigstore transparency entry: 991110152
- Sigstore integration time:
-
Permalink:
statisfy-us/prismiq@dd4779ca074e4ec8f162b8f3f0926bbf2634f3d4 -
Branch / Tag:
refs/tags/python-v0.2.4 - Owner: https://github.com/statisfy-us
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@dd4779ca074e4ec8f162b8f3f0926bbf2634f3d4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file prismiq-0.2.4-py3-none-any.whl.
File metadata
- Download URL: prismiq-0.2.4-py3-none-any.whl
- Upload date:
- Size: 142.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b80774392f5e726ecf8c270cb2ece4eb1fa07623346b4efb97c26f584a277785
|
|
| MD5 |
50f95d6b8c4f94ee25b832db6468fbd3
|
|
| BLAKE2b-256 |
3e1d656fe63cc85406b7f6195a3c2c05f19c422d69ee187d81a9758d24ffd3ce
|
Provenance
The following attestation bundles were made for prismiq-0.2.4-py3-none-any.whl:
Publisher:
publish-pypi.yml on statisfy-us/prismiq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prismiq-0.2.4-py3-none-any.whl -
Subject digest:
b80774392f5e726ecf8c270cb2ece4eb1fa07623346b4efb97c26f584a277785 - Sigstore transparency entry: 991110211
- Sigstore integration time:
-
Permalink:
statisfy-us/prismiq@dd4779ca074e4ec8f162b8f3f0926bbf2634f3d4 -
Branch / Tag:
refs/tags/python-v0.2.4 - Owner: https://github.com/statisfy-us
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@dd4779ca074e4ec8f162b8f3f0926bbf2634f3d4 -
Trigger Event:
release
-
Statement type: