Skip to main content

bideux

Bideux dashboards in one install. This wheel carries the seven active Python packages, dashboard_spec, dashboard_core, dashboard_engine, dashboard_store, dashboard_server, dashboard_report and dashboard_authoring, under their own import names, plus a bideux namespace that re-exports the objects a host touches.

uv add bideux                    # the packages, no web framework
uv add "bideux[fastapi,sqlite]"  # plus the reader router and aiosqlite
uv add "bideux[fastapi,postgres]"

The granular bideux-dashboard-* wheels are unchanged and keep publishing. Pick one family per environment: both provide the same dashboard_* modules, so import bideux warns (BideuxInstallConflict) when it finds a granular distribution next to it.

What you import

from bideux import Caller, DashboardService, DashboardReportService, Principal, ScopeContext
from bideux import Repositories, ServiceOptions          # ports and options
from bideux import DashboardAccessError, DashboardNotFoundError
from bideux.store import DashboardModelRepository        # one namespace per layer
from bideux.engine import ReferenceWarehouse, FixedClock

bideux.spec, bideux.core, bideux.engine, bideux.store, bideux.server, bideux.report and bideux.authoring re-export every public name of the matching layer, so a host never has to type a granular module name. The granular names still work: every from dashboard_server import ... that runs against the granular packages runs here unchanged. bideux is the short path, not a new API.

One call: mount_bideux (extra fastapi)

Tier 0 is one method and one call. caller() says who is asking; database_url is where Bideux keeps its own tables; warehouse= is the SQLAlchemy engine your rows live in.

from fastapi import FastAPI, Request
from sqlalchemy.ext.asyncio import create_async_engine

from bideux.fastapi import mount_bideux
from bideux.hosting import HostAdapter
from bideux.server import Caller


class MyHost(HostAdapter):
    async def caller(self, request: Request) -> Caller:
        user = await my_auth(request)                      # your session, JWT or header
        return Caller(subject=user.id, is_admin=user.is_admin)


app = FastAPI()
bideux = mount_bideux(
    app,
    host=MyHost(),
    database_url="sqlite+aiosqlite:///dashboards.sqlite3",
    warehouse=create_async_engine("postgresql+asyncpg://..."),
)

That installs the reader, dashboard management and sharing, authoring, semantic model and report routes under /api/dashboards, creates the store tables on startup, runs widget SQL on your engine through the shipped SQLAlchemyWarehouse, and is the API <bideux-dashboard-list>, <bideux-dashboard> and the React components expect. bideux init writes this file for you.

Everything else is a default you replace when you already own the thing (Tier 1): engine= and session_for to run inside your connection and transaction, migration_mode=MigrationMode.REUSE_ONLY so your migrations own the tables, store_modules=("core", "durable") for a persistent audit trail and cache, environment="production" to be warned about memory defaults, require_host_session=True to fail closed, and HostAdapter methods for people, branding, embed secrets and the model editor. A host whose callers may only read some rows adds a RowScopePort (Tier 2; the location plug in ships as bideux[scope]). bideux.report_service(caller) is the port a host scheduler calls. Every knob with its default is in the configuration reference; the tiers are explained in Choosing your tier.

The bideux command

bideux demo             # seeded API and page on http://127.0.0.1:5477 (needs bideux[demo] and the repo's conformance/fixtures)
bideux init my-app      # writes bideux_host.py and dashboard.html to start from
bideux doctor .         # checks the Python and Node install: versions, extras, mixed packages, stale node_modules

bideux.fastapi piece by piece

The four reader routes the React reader and @dlh.io/bideux's createHttpDashboardTransport call, driven by one host-supplied factory:

from contextlib import asynccontextmanager
from bideux.fastapi import build_reader_router, install_error_handlers

@asynccontextmanager
async def service_for(request: Request):
    caller = await authenticate(request)            # the host's identity
    async with sessions.begin() as session:         # the host's database
        yield DashboardService(caller=caller, repositories=repos(session), engines=engine_for, ...)

app.include_router(build_reader_router(service_for, prefix="/api/custom-dashboards"))
install_error_handlers(app)

build_dashboard_router, build_authoring_router and build_report_router are the other groups mount_bideux installs, usable one by one the same way.

bideux.quickstart

from bideux.quickstart import DashboardDocuments, local_caller, memory_service

service = memory_service(
    caller=local_caller("olive"),
    dashboards=[DashboardDocuments(dashboard_yaml, [kpi_yaml, chart_yaml])],
    tables={"MART.RPT_DAILY_SALES_SUMMARY": rows},
)
render = await service.get_dashboard_render("sales-overview")

No database, no warehouse: in-memory repositories and the reference SQL evaluator. Each keyword is a port a host later replaces.

Not included

Scheduling. bideux-dashboard-schedule is deprecated and left out; a host owns its schedules and calls DashboardReportService.render for the bytes.

Version

bideux tracks the version of the packages it bundles; the release script refuses to publish when they differ.

Metadata

Release files for bideux 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bideux 0.2.5
File Size Uploaded Provenance Actions
bideux-0.2.5.tar.gz 363.1 kB With provenance Details for bideux-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bideux 0.2.5
File Interpreter ABI Platform Actions
bideux-0.2.5-py3-none-any.whl Python 3 none any Details for bideux-0.2.5-py3-none-any.whl

Total release size: 775.6 kB

Release files / bideux-0.2.5.tar.gz

Download URL bideux-0.2.5.tar.gz
Size 363.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0f5fd48bf3644ce25480e234ce0fe30302b6c9be0b5b1bc9dd8c4db43942af06
BLAKE2b-256 checksum
How to use checksums
e210961c3c409aea9ac73808a36f47cf33acdef0b820bbbc3b434aa072baf5f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release files / bideux-0.2.5-py3-none-any.whl

Download URL bideux-0.2.5-py3-none-any.whl
Size 412.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
661b7eb217280a4a0349fd056a2fbe50f9f33671fbc1d6ab3a865c6d24f67dcf
BLAKE2b-256 checksum
How to use checksums
7fde1ebc423187a442e6777a706e619cd358f0655c14b8929c8f31498733ad99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Security for bideux 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bideux-0.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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