Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/oh-my-fish/plugin-python
- Owner: oh-my-fish
- License: mit
- Created: 2015-05-31T15:10:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T19:38:20.000Z (over 2 years ago)
- Last Synced: 2024-10-31T23:30:54.507Z (2 months ago)
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 10
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - plugin-python - Set of shortcuts to Python based utilities (pybeatifyjson – clean JSON files, pyclean – remove old .pyc, pyhttp & pysmtp – simple HTTP & SMTP servers) (Shell)
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