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
- Pretty format an XML file:
xmlformat input.xml output.xml
- Minimize XML file:
xmlformat -m input.xml output.xml
- 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
- Transform logs to stdout:
awslog input.json
- 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