Skip to main content

My personal toolkit

Project description

Nice Tool Kit

A toolkit for my personal use.

Installation

pip install nice-tool-kit

Tools

XML Formatter (xmlformat)

A command-line tool to format or minimize XML files.

Usage

  1. Pretty format an XML file:
xmlformat input.xml output.xml
  1. Minimize XML file:
xmlformat -m input.xml output.xml
  1. Read from stdin and write to stdout:
cat input.xml | xmlformat - -

AWS CloudWatch Logs Transformer (awslog)

Transform AWS CloudWatch Logs from JSON format to plain text.

Usage

  1. Transform logs to stdout:
awslog input.json
  1. Save transformed logs to file:
awslog input.json -o output.txt
# or
awslog input.json --output output.txt

Input JSON Format

The tool expects CloudWatch logs in JSON format with the following structure:

[
  {
    "@message": {
      "log": "actual log content"
    }
  }
]

Versioning

This project uses automatic versioning in format YYYY.MM.PATCH:

  • Version is automatically bumped when commits are pushed to master
  • Year and month are updated based on current date
  • Patch number increases for multiple commits in same month

Supported by

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