Skip to main content

Run and track processes in background

Project description

hapless

Checks PyPI PyPI - Python Version

Code style: black Ruff 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

$ pip install hapless

# or 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

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 changelog

Changelog file was removed; you can now view the changes made in each release on the Releases page.

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.7.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

hapless-0.7.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hapless-0.7.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hapless-0.7.1.tar.gz
Algorithm Hash digest
SHA256 f820e29185c5fa0863960e57f5926b46f5645568e75d85c414c91e9d59bd856a
MD5 d654629a18ed4e683c25c189d1e92651
BLAKE2b-256 e33bf9632135d4234d63577e90cd349be07085f30aab1c450c5898e1658e847f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hapless-0.7.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.7.1-py3-none-any.whl.

File metadata

  • Download URL: hapless-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hapless-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f6e75e48d729accea3071ddbed83034f742dfccf05971197067d88fd0ee067
MD5 a2eaa5d730d1950ea32872d3d0876426
BLAKE2b-256 75c4d1bca2072aaeaa7d92e257495083937b363075f29abfb9bcc4d69b0e1ecd

See more details on using hashes here.

Provenance

The following attestation bundles were made for hapless-0.7.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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page