Skip to main content

A small example package

Project description

dewr

Feature:

  • Restart job when start or files change.
  • Kill job when exit.

Install

pip3 install -U dewr

Usage

import logging
import dewr
logging.basicConfig(
	level=logging.INFO, format="%(asctime)s\t%(levelname)s\t%(name)s\t%(message)s"
)
dewr.WatchRestart(["."], r"\.(?:pid|log)$", ["sh", "sleep66.sh"])
dewr -d . tmp -e "\.(?:pid|log)$" -- sleep66.sh

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

dewr-0.0.6.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file dewr-0.0.6.tar.gz.

File metadata

  • Download URL: dewr-0.0.6.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for dewr-0.0.6.tar.gz
Algorithm Hash digest
SHA256 bb19bfe8ba8b36df9f706f6cd2c4e64ed93e53b0e8c75986072b452b4b3659a6
MD5 96681e9567dd25ec182e6e4d3e04d174
BLAKE2b-256 59ea8fe063e3acd60cc1b31728a78341fbc1c48746c7f1d25b3d122df6ff96c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page