Huey Dashboard API
Project description
huey-dashboard
A monitoring dashboard for Huey tasks.
Installation
pip install huey-dashboard
Basic Usage
1. Initialize the Dashboard in your FastAPI app
from fastapi import FastAPI
from huey_dashboard import init_huey_dashboard
from my_app.tasks import huey # Your Huey instance
app = FastAPI()
init_huey_dashboard(
app,
huey,
db_url="postgresql+asyncpg://user:pass@localhost/mydb",
redis_url="redis://localhost:6379/0", # Optional, for real-time updates
)
2. Initialize Worker Signals
In the module where your Huey instance is defined:
from huey import RedisHuey
from huey_dashboard import init_worker_signals
huey = RedisHuey("my-app", url="redis://localhost:6379/0")
init_worker_signals(
huey,
db_url="postgresql+asyncpg://user:pass@localhost/mydb",
redis_url="redis://localhost:6379/0",
)
Development Workflow
This project uses uv for dependency management and environment isolation.
Prerequisites
Setup
uv sync
Quality Checks
Linting & Formatting
uv run ruff check .
uv run ruff format .
Type Checking
uv run ty check
Testing
uv run pytest
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
huey_dashboard-0.0.1.tar.gz
(15.0 kB
view details)
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 huey_dashboard-0.0.1.tar.gz.
File metadata
- Download URL: huey_dashboard-0.0.1.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f10899e5024e4c1106eab98677ab0c185b54f400a8c2c178bb35b41d922b918c
|
|
| MD5 |
ad75f6e2b6c36825385f2e9420a7dbe9
|
|
| BLAKE2b-256 |
25b941c5e916d69a20cb3761e96bf81515524a81555576590d44de8e37c2e33d
|
File details
Details for the file huey_dashboard-0.0.1-py3-none-any.whl.
File metadata
- Download URL: huey_dashboard-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4116fbb9d22d8e8fead7c57e8d231f6338a894931b4645a1fe4e4639b750767
|
|
| MD5 |
84c58df8096a7301f5ce34b4f5752ef9
|
|
| BLAKE2b-256 |
ba7cc8270b866c272cbf6b555c790f3aa37a9f0fd7a05fa36e6a57c07fc7327f
|