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

Uploaded Source

File details

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

File metadata

  • Download URL: dewr-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 352a33bc3b527386269d48a2513a9552ae8ccfb7917d231b139221e21115f74e
MD5 cf02deaa86b5ee92bec23b795be793b1
BLAKE2b-256 18e9bf80244522131faf2e5582cdf844ff77516fcbbcf08c597e9f5e968c50d2

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