Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/myint/docgrep

Like grep, but only searches through docstrings (in Python files)
https://github.com/myint/docgrep

Last synced: 4 days ago
JSON representation

Like grep, but only searches through docstrings (in Python files)

Awesome Lists containing this project

README

        

=======
docgrep
=======

Like ``grep``, but only searches through docstrings (in Python code).

Installation
============

From pip::

$ pip install --upgrade docgrep

Example
=======

::

$ docgrep 'Python 3.4' .
./asyncio/futures.py:113: """This class is *almost* compatible with concurrent.futures.Future.

Differences:

- result() and exception() do not take a timeout argument and
raise an exception when the future isn't done yet.

- Callbacks registered with add_done_callback() are always called
via the event loop's call_soon_threadsafe().

- This class is not compatible with the wait() and as_completed()
methods in the concurrent.futures package.

(In Python 3.4 or later we may be able to unify the implementations.)
"""