Skip to main content

Run and track processes in background

Project description

hapless

Checks PyPI PyPI - Python Version

Ruff ty EditorConfig pre-commit

hapless (adjective) - (especially of a person) unfortunate. A developer who accidentally launched long-running process in the foreground.

Simplest way of running and tracking processes in the background.

asciicast

Installation

  • Install using uv
uv tool install hapless
  • Install using pipx
pipx install hapless
  • Install using pip
pip install hapless

# To make sure proper pip is used for the given python executable
python -m pip install hapless

# Install into user-specific directory in case of any permissions-related issues
pip install --user hapless
python -m pip install --user hapless
  • Install using brew
brew install hapless

Usage

# Run arbitrary script
hap run -- python long_running.py

# Show summary table
hap

# Display status of the specific process
hap status 1

See USAGE.md for the complete list of commands and available parameters.

Contribute

See DEVELOP.md to setup your local development environment and feel free to create a pull request with a new feature.

Releases

Changes made in each release can be found on the Releases page.

Python versions compatibility:

  • 0.11.1 is the last version to support Python 3.7
  • 0.15.1 is the last version to support Python 3.8

See also

  • Rich console UI library.
  • Supervisor full-fledged process manager.
  • podmena provides nice emoji icons to commit messages.

Support 🇺🇦 Ukraine in the war!

🇺🇦 Donate to this foundation in case you want to help. Every donation matter!

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

hapless-0.15.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

hapless-0.15.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file hapless-0.15.1.tar.gz.

File metadata

  • Download URL: hapless-0.15.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hapless-0.15.1.tar.gz
Algorithm Hash digest
SHA256 b54707a5f77ac8e779bfd0c8c49344333e9d40a5c9479f0da1c303ffa237077d
MD5 5f1fefa119ece528702da3a6b2c39748
BLAKE2b-256 2caba5c875f00927421371c9c36849030ba84dc171e7157575fd85126e893064

See more details on using hashes here.

Provenance

The following attestation bundles were made for hapless-0.15.1.tar.gz:

Publisher: publish-to-pypi.yml on bmwant/hapless

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

File details

Details for the file hapless-0.15.1-py3-none-any.whl.

File metadata

  • Download URL: hapless-0.15.1-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hapless-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46831af7a137900c487a84cbb90e6e107e3d2317c7eacf4b98c0d4e158017d5e
MD5 9c16ac672bc098066079592a9b790b45
BLAKE2b-256 c299e844c573dbefc10c49b84299f70a1a10c8f2dce8a711d0d7760ff52a952e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hapless-0.15.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on bmwant/hapless

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