Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repler-1.0.0.tar.gz (69.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repler-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for repler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 308b270080cc2cc0c24909b49e0fe124b47de20c402064d5eb2bde89e9d54809
MD5 08107123ae5c2f016fc2ad2579aa6869
BLAKE2b-256 447adce33153c7ec0c8170bcebdbd32b20f6039f974ba5bb60aeff9ad1d671da

See more details on using hashes here.

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

Hashes for repler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34d542818bc12012a53f71172447a61bfe4a70e898ff34da81259a1fa4dc125e
MD5 972f8b41265e61f239ce7292449d128d
BLAKE2b-256 0524f9d0bddd4947c2f6c824d352227fdc743da63eaff599cb636aee6d768c19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page