Crates.io | sniffers |
lib.rs | sniffers |
version | 0.1.0 |
source | src |
created_at | 2024-06-29 16:09:32.940744 |
updated_at | 2024-06-29 16:09:32.940744 |
description | A simple file change sniffer. |
homepage | |
repository | |
max_upload_size | |
id | 1287476 |
size | 29,772 |
Basic file sniffer for detecting changes in files and directories, written in Rust; complete with python bindings (of course).
pip install sniffers
from sniffers import Sniffer
sniffer = Sniffer()
# index a file or directory
sniffer.index()
# detect changes
changes = sniffer.sniff()
# print changes
for change in changes:
print(change)
There also exists a command line interface for this package.
To build and run the CLI, run the following commands:
cargo install --path .
Then, you can run the CLI as follows:
sniffers index
sniffers sniff