If you have been a systems engineer or sysadmin for some time you have probably written and gathered a collection of shell scripts to solve your day to day chores. Shell is a powerful language but (arguably) it's syntax is arcane and scripts can become hard to read and maintain once they grow in size and logic.
TermFunk is a lightweight framework to organize, access and execute Python code from the terminal. Its aim is to bridge the gap between Python and your terminal by removing all the necessary boilerplate to access functions and their arguments using auto-completion.
In this article we will create a CLI tool to validate JSON and YAML files using Python and TermFunk.