Skip to main content

Directory Observer

(Windows only) The package implements an observable to monitor directory changes, and to notify observers when a change is detected. The observable is running in a separate daemon thread, and is being locked while there are no changes (non-busy-waiting).

Installation

python3 -m pip install directory-observer

Usage Examples

from directory_observer import DirectoryObservable


def update(path: str):
    # Handle change in path

# Initialize Observable with update() as observer function
observable = DirectoryObservable(path, observers=[update])
observable.start()  # Start observable thread

observable.remove_observer(update) # Remove observer
observable.add_observer(update) # Add new observer

observable.stop()  # Stop observable thread
# Use "with" statement to call start() and stop()
with DirectoryObservable(path, observers=[update]) as observable:
    # Observe directory in this section

Metadata

Release files for directory-observer 1.0.1

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

Source distribution (sdist)

Source distribution for directory-observer 1.0.1
File Size Uploaded Provenance Actions
directory_observer-1.0.1.tar.gz 3.5 kB Without provenance Details for directory_observer-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for directory-observer 1.0.1
File Interpreter ABI Platform Actions
directory_observer-1.0.1-py3-none-any.whl Python 3 none any Details for directory_observer-1.0.1-py3-none-any.whl

Total release size: 7.7 kB

Release files / directory_observer-1.0.1.tar.gz

Download URL directory_observer-1.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dfd4d82c821e51818df17005531177a0f20ea5c0c611d1f4d327bd4f2f423e64
BLAKE2b-256 checksum
How to use checksums
a409ec030d3df95d88eb6b339a9eaec81e0aa33416afd5129814e0ea838731d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.11.4 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.6rc1

Release files / directory_observer-1.0.1-py3-none-any.whl

Download URL directory_observer-1.0.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36b6a46798112c95eeccb2fc3c4a3ca73324b7619bf888ade7fe5e3e5120125b
BLAKE2b-256 checksum
How to use checksums
03b7ce43d2761e50f6f77f28f5e396ceabca311feb97b64ccbe3c932bc4d9aeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.11.4 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.6rc1

Security for directory-observer 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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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