Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdebuyl/whych
A module to find modules
https://github.com/pdebuyl/whych
python
Last synced: 28 days ago
JSON representation
A module to find modules
- Host: GitHub
- URL: https://github.com/pdebuyl/whych
- Owner: pdebuyl
- License: bsd-3-clause
- Created: 2017-03-14T11:25:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T23:06:45.000Z (over 7 years ago)
- Last Synced: 2024-08-11T08:06:46.046Z (3 months ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
whych
=====A tool to locate the Python modules that your interpreter has access to.
whych is only run as a "command-line module" with the ``-m`` flag to the Python
interpreter, from the REPL or from a notebook. whych is not as a standalone
executable, so that the Python interpreter that is used is obvious.Examples
--------From the command-line::
$ python3 -m whych collections
Python executable: /usr/bin/python3
Module "collections" found at location: /usr/lib/python3.5/collections$ python -m whych numpy --module-version
Python executable: /usr/bin/python
Module "numpy" found at location: /usr/lib/python2.7/dist-packages/numpy
numpy version: 1.12.0b1From an interpreter::
>>> import whych
>>> whych.whych('pip')
Python executable: /usr/bin/python3
Module "pip" found at location: /home/pierre/.local/lib/python3.5/site-packages/pipInstallation
------------pip install whych