https://github.com/edk0/spy
A Python CLI
https://github.com/edk0/spy
cli python python-cli
Last synced: 7 months ago
JSON representation
A Python CLI
- Host: GitHub
- URL: https://github.com/edk0/spy
- Owner: edk0
- License: wtfpl
- Created: 2014-08-13T16:47:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-01T22:56:37.000Z (over 3 years ago)
- Last Synced: 2024-11-22T07:09:35.562Z (7 months ago)
- Topics: cli, python, python-cli
- Language: Python
- Homepage: https://spy.readthedocs.io/
- Size: 511 KB
- Stars: 24
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/edk0/spy/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://coveralls.io/github/edk0/spy?branch=master)# spy: a Python CLI
```
pip install spy-cli
````spy` stands for “stream python”. It's a CLI for python that
chains fragments of code together. It's inspired by
[pyped](https://github.com/ksamuel/Pyped) and
[pythonpy](https://github.com/Russell91/pythonpy).I built spy primarily because I wanted a more pure interface than either of the
above offer; I'd like to think I succeeded, but I'm sure it can be improved
upon, so please let me know if you see a way to make it nicer.spy is compatible with, and thoroughly tested on, Python 3.5 and newer.
**The docs, including introduction, are available
[on ReadTheDocs](https://spy.readthedocs.org/en/stable/).**If you have any suggestions or feedback or anything, I'll probably be in `#spy`
on `irc.libera.chat`.# Example ([more here](https://spy.readthedocs.org/en/stable/examples.html))
```console
$ spy -lfc 'len == 4' < /usr/share/dict/words
Aani
Aaru
abac
abas
Abba
Abby
abed
Abel
abet
abey
…
```