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 CLIhb-watcher(hb_watcher): monitoring daemon
See MIGRATION.md for upgrades from older package names.
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88114291f3f6eff970c7ac0660ad4df3f8bf43c587b2ab580609b3c594a91d07
|
|
| MD5 |
ae61ce32029718f7a7edf5aeabfeaad1
|
|
| BLAKE2b-256 |
9dfc32ce394584b84ae9bbbbd1a9a26aaed54f1670b3e13793e2c2a842e687d3
|
Provenance
The following attestation bundles were made for hb_server-0.1.0.tar.gz:
Publisher:
release.yml on willp/heartbeat-backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hb_server-0.1.0.tar.gz -
Subject digest:
88114291f3f6eff970c7ac0660ad4df3f8bf43c587b2ab580609b3c594a91d07 - Sigstore transparency entry: 1962197000
- Sigstore integration time:
-
Permalink:
willp/heartbeat-backend@4844f533116512e662c8b814f18e9a39d983634b -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/willp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4844f533116512e662c8b814f18e9a39d983634b -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96de9f61983790fd1a83427d1412b8eb58716603c521ea697c6765c0c394aefa
|
|
| MD5 |
5790b75ecc8f099a4942f579e169fab5
|
|
| BLAKE2b-256 |
22a0133d9a7595b0dfc46fac39bf67521af7b26ef5e51e6c0d25442cb96b2717
|
Provenance
The following attestation bundles were made for hb_server-0.1.0-py3-none-any.whl:
Publisher:
release.yml on willp/heartbeat-backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hb_server-0.1.0-py3-none-any.whl -
Subject digest:
96de9f61983790fd1a83427d1412b8eb58716603c521ea697c6765c0c394aefa - Sigstore transparency entry: 1962197205
- Sigstore integration time:
-
Permalink:
willp/heartbeat-backend@4844f533116512e662c8b814f18e9a39d983634b -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/willp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4844f533116512e662c8b814f18e9a39d983634b -
Trigger Event:
push
-
Statement type: