Virgil.IO
A folder-watching daemon that detects file creations, modifications, and deletions, and notifies a consumer via overridable hook methods. Pure polling — no watchdog, no OS-native filesystem-event API — so behavior is consistent across macOS, Linux, and Windows.
CLI usage
virgilio <folder>
Watches only <folder>'s immediate contents by default, polling once per second, logging every event to log.txt inside <folder>.
Flags:
virgilio <folder> --recursive --interval 0.5 --include-hidden --report-existing
--recursive/-r— watch the full subtree instead of just<folder>'s immediate contents.--interval SECONDS/-i SECONDS— poll interval in seconds (default1.0), may be a float (e.g.0.25).--include-hidden— include hidden files/directories (dotfiles) and symlinks in the walk (excluded by default).--report-existing— fire aFOUNDevent for every pre-existing file at startup, instead of silently indexing it.
If <folder> doesn't exist or isn't a directory, virgilio prints an error and exits with a non-zero status without starting.
Library usage
Subclass Virgilio and override whichever hooks you care about, then reuse the same argument parsing via .main() — no separate CLI-loading mechanism needed:
from virgilio import Virgilio, EventType
class MyVirgilio(Virgilio):
def notify_created(self, path: str) -> None:
print(f"new file: {path}")
def notify(self, event: EventType, path: str) -> None:
send_metric(event, path)
MyVirgilio.main()
MyVirgilio.main() parses sys.argv exactly like the plain virgilio CLI (<folder> [--recursive] [--interval SECONDS] [--include-hidden] [--report-existing]), constructs a MyVirgilio, and calls .run(...). Both notify (unified) and the event-specific hook (notify_created, notify_modified, notify_deleted, notify_found, notify_error) fire for every event — override either, both, or neither.
To embed a Virgilio inside a larger application (e.g. running .run() on its own thread), call .stop() to shut it down programmatically instead of relying on SIGINT/SIGTERM:
import threading
virgilio = MyVirgilio("/path/to/folder")
thread = threading.Thread(target=virgilio.run, kwargs={"recursive": True})
thread.start()
...
virgilio.stop()
thread.join()
Metadata
Release files for virgilio 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| virgilio-1.0.1.tar.gz | 179.9 kB | Without provenance | Details for virgilio-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| virgilio-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for virgilio-1.0.1-py3-none-any.whl |
Total release size: 188.0 kB
Release files / virgilio-1.0.1.tar.gz
| Download URL | virgilio-1.0.1.tar.gz |
|---|---|
| Size | 179.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e8de210458087314686bf1baba40b95c88f14a1c86c6e763f457eaef86122d2
|
|
BLAKE2b-256 checksum How to use checksums |
c68aa46f0bdc6a2a1baf85719a6bff135a2fbf24834fb21549d3131b8101b347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / virgilio-1.0.1-py3-none-any.whl
| Download URL | virgilio-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3db75b91cea3f82172454b9faed0e9263bc50b76eede66bd0eb4bb59cad064e4
|
|
BLAKE2b-256 checksum How to use checksums |
3d9096d60ddc53786c55d50386d4dc40b0219c52c910e041715d01549c3d7936
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for virgilio 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.