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 . /Another/Dir/To/Watch -e "\.(pid|log)$|^(dist|bin|log|node_modules|\.git)(/|$)" -- 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.7.tar.gz (9.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for dewr-0.0.7.tar.gz
Algorithm Hash digest
SHA256 d90bc417494af63762ae2613ea900d61afeec62e1a824bff8dea3fd74f5cbcda
MD5 15a7612841d62f13955134f36dc47a52
BLAKE2b-256 9cd80ee9d46a43607e75a81668885d186466e2638b3f7aad739b0ebfb9523b07

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