/powpow

Ever wanted to grep a Python object ๐Ÿ˜Ž?

Primary LanguagePython

โœจโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ€…โ€†โ–‘โ–ˆโ–€โ–€โ–ˆ โ–ˆโ–€โ–€โ–ˆ โ–ˆโ–‘โ–‘โ–‘โ–ˆ
โ–ˆโ–„โ”€โ–„โ–„โ”€โ–ˆโ”€โ–„โ–„โ”€โ–ˆโ–„โ”€โ–ˆโ–€โ–€โ–€โ–ˆโ”€โ–„โ–’โ–ˆโ–„โ–„โ–ˆ โ–ˆโœจ โ–ˆ โ–ˆโ–„โ–ˆโ–„โ–ˆ
โ–ˆโ–ˆโ”€โ–„โ–„โ–„โ–ˆโ”€โ–ˆโ–ˆโ”€โ–ˆโ–ˆโ”€โ–ˆโ”€โ–ˆโ”€โ–ˆโ”€โ–ˆโ–’โ–ˆโ–‘โ–‘โ–‘ โ–€โ–€โ–€โ–€ โ–‘โ–€โ–‘โ–€โ–‘
โ–€โ–„โ–„โ–„โ–€โ–€โ–€โ–„โ–„โ–„โ–„โœจโ–„โ–„โ–„โ–€โ–„โ–„โ–„โ–€โœจโ–‘โ–‘โ–‘โ–‘โ–‘๐Ÿโ–‘โ–‘โ–‘โ–‘โ–‘โœจ

แด˜แดแดก! แด˜แดแดก!

Give any Python interpretter UNIX-like shell capabilities.

I don't have the time to flesh out a full README yet (I spent most of what was available on the ASCII art above ๐Ÿ™ƒ), so here's an example of how to grep large dicts using PowPow:

from powpow import grep

# locals() is used as an example of a dict you might want to grep. You can
# pass any other object instead - grep() will pretty-format it and try to find
# a match.
locals() | grep ("powpow")