This plug-in brings a number of handy functions:
pybeautifyjson
- Beautify a JSON stringpyclean
- Recursively clean directory from .pyc and .pyo files and python3 pycache folderspyhttp
- Start SimpleHTTPServer, optional argument for port numberpysmtp
- Start SMTP debugging server, option port argument. Default is 1025
$ omf install python
$ pyclean # recursively clean .pyc and .pyo
$ pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}' # beautify a JSON string
$ pybeautifyjson (curl -s http://api.example.com/foo) # beautify a JSON output
$ curl -s http://api.example.com/foo | pybeautifyjson # beautify a JSON output