Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huey_dashboard-0.0.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

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

Hashes for huey_dashboard-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f10899e5024e4c1106eab98677ab0c185b54f400a8c2c178bb35b41d922b918c
MD5 ad75f6e2b6c36825385f2e9420a7dbe9
BLAKE2b-256 25b941c5e916d69a20cb3761e96bf81515524a81555576590d44de8e37c2e33d

See more details on using hashes here.

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

Hashes for huey_dashboard-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4116fbb9d22d8e8fead7c57e8d231f6338a894931b4645a1fe4e4639b750767
MD5 84c58df8096a7301f5ce34b4f5752ef9
BLAKE2b-256 ba7cc8270b866c272cbf6b555c790f3aa37a9f0fd7a05fa36e6a57c07fc7327f

See more details on using hashes here.

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