Simple-file-poller

Latest version: v0.0.10

Safety actively analyzes 622096 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.0.10

-------------------

- added the `output_num_files` boolean property to the `Poller` class, which extends the logging output by
outputting a `x/y` string as well (x=current file index, y=total number of files in a batch)

0.0.9

------------------

- the `Poller.logging` property no longer returns the `check_file` method

0.0.8

------------------

- fixed high CPU usage (ie constant polling) when using unlimited files to list (`max_files=0`)
- `poll_wait` and `watchdog_check_interval` are now float instead of int to allow for sub-second poll waits
- internal delays when poller is busy have been dropped from 1s to 0.1s

0.0.7

------------------

- `keyboard_interrupt` method is now public

0.0.6

------------------

- fixed race condition between watchdog reacting to new files and watchdog checking for files at specific intervals
- logging now distinguishes between DEBUG/INFO/ERROR levels
- keyboard interrupts via CTRL+C are now handled correctly
- in watchdog mode, an initial scan of the input directory is now performed, in case files were already present

0.0.5

------------------

- added `params` object to allow attaching of arbitrary parameters to be used by the `check_file`
and `process_file` methods; this avoids accidentally overriding Poller attributes that were
introduced in later versions.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.