Watch Dog
author = Dr. Abiira Nathan
A File system watch dog. Fit for monitoring and reloading a server configuration file. Based on watchdog module
Installation
pip install wdog
Example Usage:
from wdog import WatchDog
import config
def reload_config():
print("Reload server configiguration file")
import importlib
importlib.reload(config)
# Assuming config reads reads settings from config.ini
dog = WatchDog(callback=reload_config, folder_to_track='.',
include_patterns=['*/config.ini'])
try:
dog.monitor_forever()
except(KeyBoardInterrupt, EOFError):
print('Bye!')
You can extend this to do some fancy things.
Metadata
Release files for wdog 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wdog-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / wdog-1.0.1-py3-none-any.whl
| Download URL | wdog-1.0.1-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba44e1a7b5524bfd73ae775f77df93eb0424d3e8e59989cadd50e4d71c2548fb
|
|
BLAKE2b-256 checksum How to use checksums |
69f3b715bdfb598fcf24e2e239f4e7e52d5ed0a2bd392490561d57469a937526
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.6.8
|
Security for wdog 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.