Skip to main content

Single-project Django heartbeat service

Project description

hb-server

Heartbeat server backend (hb_backend).

Installation

pip install hb-server

This installs:

  • the Python package hb_backend
  • the CLI command hbserver

Running

hbserver --port 8333
# or
python3 -m hb_backend.hbserver --port 8333

Database Setup

For pip-installed users, use django-admin with the settings module:

export DJANGO_SETTINGS_MODULE=hb_backend.settings

# Initialize the database
django-admin migrate

# Create an admin user
django-admin createsuperuser

By default, the database is stored at ./hbdb.sqlite3 in the current directory. You can customize the database path with the HEARTBEAT_DB_PATH environment variable:

export HEARTBEAT_DB_PATH=/var/lib/hb-server/hbdb.sqlite3
django-admin migrate

For development from a git checkout:

cd src && python manage.py migrate
cd src && python manage.py createsuperuser

Related projects

  • hb-client (hb_client): heartbeat client library and CLI
  • hb-watcher (hb_watcher): monitoring daemon

See MIGRATION.md for upgrades from older package names.

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

hb_server-0.1.0.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

hb_server-0.1.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file hb_server-0.1.0.tar.gz.

File metadata

  • Download URL: hb_server-0.1.0.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hb_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88114291f3f6eff970c7ac0660ad4df3f8bf43c587b2ab580609b3c594a91d07
MD5 ae61ce32029718f7a7edf5aeabfeaad1
BLAKE2b-256 9dfc32ce394584b84ae9bbbbd1a9a26aaed54f1670b3e13793e2c2a842e687d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for hb_server-0.1.0.tar.gz:

Publisher: release.yml on willp/heartbeat-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hb_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hb_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hb_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96de9f61983790fd1a83427d1412b8eb58716603c521ea697c6765c0c394aefa
MD5 5790b75ecc8f099a4942f579e169fab5
BLAKE2b-256 22a0133d9a7595b0dfc46fac39bf67521af7b26ef5e51e6c0d25442cb96b2717

See more details on using hashes here.

Provenance

The following attestation bundles were made for hb_server-0.1.0-py3-none-any.whl:

Publisher: release.yml on willp/heartbeat-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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