Simplified collection and object querying for Python.
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.rst
inquire.py
setup.py

README.rst

inquire

List comprehensions? Leave that for Haskell! itertools? Witchcraft!

inquire is:

  • Super lazy. For most functions, nothing happens until you iterate over it. (you can, of course, unlazy it by throwing list() around it)
  • Fluent. No more ((blah(q) for q in x) for x in foo if x > y)!

So, how do I use it?

Check out inquire.py. It has examples (in the form of doctests) for use and, of course, you can test it out by running those doctests.