GithubHelp home page GithubHelp logo

edk0 / spy Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 3.0 523 KB

A Python CLI

Home Page: https://spy.readthedocs.io/

License: Do What The F*ck You Want To Public License

Python 100.00%
python python-cli cli

spy's Introduction

Build Status Coverage Status

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 and 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.

If you have any suggestions or feedback or anything, I'll probably be in #spy on irc.libera.chat.

Example (more here)

$ spy -lfc 'len == 4' < /usr/share/dict/words
Aani
Aaru
abac
abas
Abba
Abby
abed
Abel
abet
abey

spy's People

Contributors

edk0 avatar lowks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spy's Issues

try: except:?

spy is a great tool, thanks.

I wonder if I can do something like try: pipe[3]; except: pass. I usually filter out anything that raises an exception, but currently I have an example where filtering out is a lot of work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.