Backend for server-configured charts powered by Vega Altair.
Project description
dashi
Dashi is a framework for server-configured panels.
Run demo server
mamba env create
conda activate dashi
python -m dashipy.server
How to use the framework
1. Implement the possible contributions
Implement the application-specific contributions that users can add to their extensions.
As an example, see panel.py
of the demo:
from dashipy import Contribution
class Panel(Contribution):
"""Panel contribution"""
def __init__(self, name: str, title: str | None = None):
super().__init__(name, title=title)
2. Define the contributions points
Define the possible contribution points in your application.
As an example, see server.py
of the demo:
from dashipy import Extension
from dashipy.demo.contribs import Panel
Extension.add_contrib_point("panels", Panel)
3. Load the extensions
Load the extensions that augment your application.
As an example, see server.py
of the demo:
from dashipy import ExtensionContext
ext_ctx = ExtensionContext.load(app_ctx, extension_refs)
4. Publish the extensions
Implement the Dashi API in your application-specific webserver using
the controller implementations in dashipy.controllers
.
As an example, see server.py
of the demo.
5. Consume the extensions
Use JavaScript package dashi
in your frontend to implement the
contribution lifecycle in your React application.
As an example, see the demo application.
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 Distributions
Built Distribution
File details
Details for the file chartlets-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: chartlets-0.0.15-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80c99f2d36a253691bad3b304a9721fb141f0ceca50f9f55bd47a8bedfb1e840 |
|
MD5 | 3b2a24abe0f43f48506d53b0fee29ddb |
|
BLAKE2b-256 | b8512ef204af779a353a3158968b621a4924a04bcbd6d6d30db964df1324ac0a |