Model-aware business intelligence plugin for Django
Project description
django-fusion-analytics
Model-aware business intelligence plugin for Django. Visual query builder, joins via FK traversal, charts, and saved queries — all with a Tailwind-styled UI that ships as static assets (no build step at install time).
Install
uv add django-fusion-analytics
Add to INSTALLED_APPS and include URLs:
INSTALLED_APPS = ["fusion_analytics", ...]
# urls.py
urlpatterns = [
path("analytics/", include("fusion_analytics.urls")),
...
]
Register models for BI access in any app's analytics.py:
from fusion_analytics.registry import site, ModelAnalytics
from .models import Order
@site.register
class OrderAnalytics(ModelAnalytics):
model = Order
# optional: explicit field whitelist
# fields = ["id", "total", "customer__name"]
# max_depth = 2 # FK traversal depth (default 2)
Develop
uv sync # install deps
uv run pytest # run tests
uv run black src/ tests/ testproject/ # format
uv run ruff check src/ tests/ testproject/ # lint
# Rebuild the bundled CSS after changing Tailwind classes in templates:
bash scripts/build_css.sh
The compiled CSS lives at src/fusion_analytics/static/fusion_analytics/css/fusion.css and is committed — end users do not run Tailwind.
Try it
uv run python testproject/manage.py makemigrations testapp
uv run python testproject/manage.py migrate
uv run python testproject/manage.py createsuperuser # any creds
uv run python testproject/manage.py seed_demo
uv run python testproject/manage.py runserver
Then visit http://localhost:8000/analytics/ and log in.
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 django_fusion_analytics-0.2.0.tar.gz.
File metadata
- Download URL: django_fusion_analytics-0.2.0.tar.gz
- Upload date:
- Size: 363.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71cc244533d64ee4f79b5714dc2e15e791beb196bcdfa8d09e728c057f679026
|
|
| MD5 |
0d1703e894f7eb8840119849fc3c00e2
|
|
| BLAKE2b-256 |
4ccfd8b1ff5e9f738db59d833ab8a3f73715992ba492b362a684de0720104ae6
|
File details
Details for the file django_fusion_analytics-0.2.0-py3-none-any.whl.
File metadata
- Download URL: django_fusion_analytics-0.2.0-py3-none-any.whl
- Upload date:
- Size: 371.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b64381351a9be3eebc60e1c1976884b21a462c8fff0046e4ad730a13046388
|
|
| MD5 |
d5059b48ac9ef214a4f5be90ed94b33b
|
|
| BLAKE2b-256 |
a8e4703c00dbb7c54a1304e524e4061642f2e0775e4c2c4ec7c0bf31a37cbd6d
|