sniffers

Crates.iosniffers
lib.rssniffers
version0.1.0
sourcesrc
created_at2024-06-29 16:09:32.940744
updated_at2024-06-29 16:09:32.940744
descriptionA simple file change sniffer.
homepage
repository
max_upload_size
id1287476
size29,772
Nathan LeRoy (nleroy917)

documentation

README

sniffers

Basic file sniffer for detecting changes in files and directories, written in Rust; complete with python bindings (of course).

Installation

pip install sniffers

Usage

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)

Command Line Interface

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
Commit count: 0

cargo fmt