Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oh-my-fish/plugin-python

Set of shortcuts to Python based utilities (pybeatifyjson – clean JSON files, pyclean – remove old .pyc, pyhttp & pysmtp – simple HTTP & SMTP servers)
https://github.com/oh-my-fish/plugin-python

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

[![][travis-badge]][travis-link]
![][license-badge]







# 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

```fish
$ omf install python
```

## Usage

```fish
$ 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][mit] © [bpinto][author] et [al][contributors]

[mit]: http://opensource.org/licenses/MIT
[author]: https://github.com/bpinto
[contributors]: https://github.com/oh-my-fish/plugin-python/graphs/contributors
[omf-link]: https://www.github.com/oh-my-fish/oh-my-fish

[license-badge]: https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square
[travis-badge]: http://img.shields.io/travis/oh-my-fish/plugin-python.svg?style=flat-square
[travis-link]: https://travis-ci.org/oh-my-fish/plugin-python