Skip to main content

DirDog

Simplest Watchdog for a given directory. Allows to register callbacks for newly created, deleted, or modified files.

Usage

from dirdog import DirDog


def new_file_callback(file_name):
    print(file_name + " created!")


path_of_directory_to_monitor = "."
d = DirDog(path_of_directory_to_monitor)
d.on_new_file(new_file_callback)
d.join()

Metadata

Release files for dirdog 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dirdog 0.0.2
File Size Uploaded
dirdog-0.0.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dirdog 0.0.2
File Interpreter ABI Platform
dirdog-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / dirdog-0.0.2.tar.gz

Download URL dirdog-0.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ef6406e110c289f1779770c85c5ef736306731a483a8f6f4d980412e24bcf0e7
BLAKE2b-256 checksum
How to use checksums
c2b7312066bc54115a23de8ab3f71631f2081cb6a211250fa021a2ae1b49a6aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / dirdog-0.0.2-py3-none-any.whl

Download URL dirdog-0.0.2-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
509be5e6daf1f057a2d4058b328966f0e9780b66d11f5bb691353cf58ce5c7d6
BLAKE2b-256 checksum
How to use checksums
6895fd3edabe0f9b1cd50b3898f62f3cb80385e8c7b8c7db2dd72c01d239896a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page