Skip to main content

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

Download files

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

Source Distribution

prismiq-0.2.14.tar.gz (204.2 kB view details)

Uploaded Source

Built Distribution

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

prismiq-0.2.14-py3-none-any.whl (152.4 kB view details)

Uploaded Python 3

File details

Details for the file prismiq-0.2.14.tar.gz.

File metadata

  • Download URL: prismiq-0.2.14.tar.gz
  • Upload date:
  • Size: 204.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for prismiq-0.2.14.tar.gz
Algorithm Hash digest
SHA256 803d974e59015af1b97ca06ee7014e198bd94501946e4fbf196bb5c849ace706
MD5 fb45bf9971540a4394ad58d19daa87b6
BLAKE2b-256 f5d676dedf3467f5d11b4f9209493b914749edb344b0fd30fe973f62d7e01564

See more details on using hashes here.

Provenance

The following attestation bundles were made for prismiq-0.2.14.tar.gz:

Publisher: publish-pypi.yml on statisfy-us/prismiq

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

File details

Details for the file prismiq-0.2.14-py3-none-any.whl.

File metadata

  • Download URL: prismiq-0.2.14-py3-none-any.whl
  • Upload date:
  • Size: 152.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for prismiq-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7fd80d395e37c1a246120c0c5e931c0cae64f115c3d9a6fe25d460f32a785f4c
MD5 4dd7c57f4cacef8beff2895db6632ce1
BLAKE2b-256 19b9f96f79541ad8c002c5cbcf443fd7908fce14806a03e7790a3064e1e7a485

See more details on using hashes here.

Provenance

The following attestation bundles were made for prismiq-0.2.14-py3-none-any.whl:

Publisher: publish-pypi.yml on statisfy-us/prismiq

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

Release history Release notifications | RSS feed

This release

0.2.14 This release

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 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