Skip to main content

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


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.5.tar.gz (196.5 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.5-py3-none-any.whl (144.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prismiq-0.2.5.tar.gz
  • Upload date:
  • Size: 196.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prismiq-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b30b47cd4efd619786daf40facc887a0b953695c77022119e6e7d942bdc236fa
MD5 818835e2ef1ad6033709fe7ef906103c
BLAKE2b-256 73a877017ec3780a30f9637d5a60ae01a690236944fce61716e68c4b31dd7b89

See more details on using hashes here.

Provenance

The following attestation bundles were made for prismiq-0.2.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: prismiq-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 144.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prismiq-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2c919cc1069ec80a241a1db9dd5036923c5f96ef0016b3d1e312c1d1ede2da5e
MD5 af22ee30027d613a71ff426f8be35ff1
BLAKE2b-256 78d57110025770665739cedc243c4a0b2b324551c4ef75f2ad64fad7c9955e8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for prismiq-0.2.5-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.

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