Skip to content

Set of shortcuts to Python based utilities (pybeatifyjson – clean JSON files, pyclean – remove old .pyc, pyhttp & pysmtp – simple HTTP & SMTP servers)

License

Notifications You must be signed in to change notification settings

oh-my-fish/plugin-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation


python

This plug-in brings a number of handy functions:

  • pybeautifyjson - Beautify a JSON string
  • pyclean - Recursively clean directory from .pyc and .pyo files and python3 pycache folders
  • pyhttp - Start SimpleHTTPServer, optional argument for port number
  • pysmtp - Start SMTP debugging server, option port argument. Default is 1025

Install

$ omf install python

Usage

$ 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

License

MIT © bpinto et al

About

Set of shortcuts to Python based utilities (pybeatifyjson – clean JSON files, pyclean – remove old .pyc, pyhttp & pysmtp – simple HTTP & SMTP servers)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages