The tool keeps you project envieronment clean by delete or archive files with specified extensions.
Project description
repler: report handler
The tool keeps you project envieronment clean by delete or archive files with specified extensions.
Usage:
Create report handler with logging enable.
rh = ReportHandler(log_enable=True)
Apply clean policiy on project folder: to delete all files with extentions txt and log.
rh.set_cleaner(folder_path="\working directory", age_before_del_hour=0, ext_to_del=["log","txt"])
Apply archive policiy on log folder: to archive all files with extention log.
rh.set_archivator(sourse_folder="\working directory\Logs", archive_folder="\working directory\Logs\Archive", archive_prefix="MyTest", ext_to_arch=["log"], delete_archived_files=True)
Apply clean policiy on Archive folder: to delete all archives older then 24 hours.
rh.set_cleaner(folder_path="\working directory\Logs\Archive", age_before_del_hour=24, ext_to_del=["zip"])
Prints all defined cleaners
rh.show_cleaner()
Prints all defined archivators
rh.show_archivator()
Run cleaning
rh.clean()
Run archivation
rh.archive()
Run both archive and clean
rh.arcive_and_clean()
Enable report handler logging, if rh = ReportHandler(log_enable=False)
rh.set_log_on()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file repler-1.0.0.tar.gz.
File metadata
- Download URL: repler-1.0.0.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
308b270080cc2cc0c24909b49e0fe124b47de20c402064d5eb2bde89e9d54809
|
|
| MD5 |
08107123ae5c2f016fc2ad2579aa6869
|
|
| BLAKE2b-256 |
447adce33153c7ec0c8170bcebdbd32b20f6039f974ba5bb60aeff9ad1d671da
|
File details
Details for the file repler-1.0.0-py3-none-any.whl.
File metadata
- Download URL: repler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d542818bc12012a53f71172447a61bfe4a70e898ff34da81259a1fa4dc125e
|
|
| MD5 |
972f8b41265e61f239ce7292449d128d
|
|
| BLAKE2b-256 |
0524f9d0bddd4947c2f6c824d352227fdc743da63eaff599cb636aee6d768c19
|