Skip to main content

A utility for making log files (particularly Terraform logs) more readable and comparable

Project description

readable - utility for cleaning log files

usage: readable [-h] [--light] [--dark] [--none] [--tidy] [--strip-blank] [--debug] [--out] [--dir DIR] [--aws] [--terraform] [--replace REPLACE] [--verbose]
                [--minimal] [--non-minimal]
                [files ...]

Read from standard input and write to standard output modifying ANSI colour codes en-route.

positional arguments:
  files                 The files to convert (use stdin/stout if no input files are specified)

options:
  -h, --help            show this help message and exit
  --light, -l           Modify colours for a light background (the default)
  --dark, -d            Modify colours for a dark background
  --none, -n            Remove all colour codes
  --tidy, -t            Remove colour codes and stuff that typically occurs in log files causing diffs, but is of no particular interest (e.g. SHA1 values,
                        times, dates)
  --strip-blank, -s     Strip all blank lines
  --debug, -D           Replace colours with debug information
  --out, -o             Output to standard output rather than overwriting input files
  --dir, -O DIR         Store output files in the specified directory (creating it if it doesn't exist)
  --aws, -a             Remove AWS resource IDs
  --terraform, -T       Clean Terraform plan/apply log files
  --replace, -R REPLACE
                        Additional regex replacements in the form "REGEX=REPLACEMENT"
  --verbose, -v         Output verbose status
  --minimal, -m         Remove unnecessary data from the file (e.g. Terraform progress updates (Refreshing..., Reading..., etc.))
  --non-minimal, -M     Do not remove unnecessary data from the file (e.g. Terraform progress updates (Refreshing..., Reading..., etc.))

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

skilleter_readable-0.0.7.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

skilleter_readable-0.0.7-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file skilleter_readable-0.0.7.tar.gz.

File metadata

  • Download URL: skilleter_readable-0.0.7.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for skilleter_readable-0.0.7.tar.gz
Algorithm Hash digest
SHA256 053d416e6a787b361fd5cb8b5bf6b196f67d21623d50dd26bec422a9c007b2fb
MD5 b4b29ba8579cd808ceff69c59481b6ca
BLAKE2b-256 019b7d3bf3b806eaddde063a8660191f296340c73b17f917fb8dd987c8ca5ac2

See more details on using hashes here.

File details

Details for the file skilleter_readable-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for skilleter_readable-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a911e3fd36c995726fb3260a48a52675821b1420e24f22627cb284b5c239f6ff
MD5 318a1c8534d3ce2157bd1614f42ab8e7
BLAKE2b-256 06f85e9fd98cd3e1ff1cf29725ede79ef0a51f33fb9c4deca8134ac219c2dba7

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