Utility to locate python modules from the command line
Project description
Utility to locate python modules from the command line
Python utility to locate any module in the python path.
The module is a thin layer around importlib
to display
the location and containing folders of a module or package.
The script exits with an error code if the module is not found.
Warning This project installs a module called
where
which name is also used by other projects like where. Make sure to install the one you are looking for!
Usage
Used from the command line by invoking python -mwhere module
python -mwhere [-h] [-t] module
positional arguments:
module module or package name
optional arguments:
-h, --help show this help message and exit
-t, --tree print package contents as a tree
Please note the -t
option to print the package contents as a tree.
Examples
$> python -mwhere sysconfig
/Users/bob/envs/py38/lib/sysconfig.py
$> python -mwhere pandas
/Users/bob/envs/py38/lib/site-packages/pandas/__init__.py
$> python -mwhere where -t
/Users/bob/Projects/Python/where-toy/src/where
├── __init__.py
├── __main__.py
└── utils.py
Installation
You can install the latest version of this module with pip
pip3 install git+https://github.com/furechan/where-toy.git
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for where_toy-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ad283fd421761e662db240528ca61dfda51f5a0d085d6a20c03345d1fd135c |
|
MD5 | 971449dbc7fb9e72b89a9fd8217a1299 |
|
BLAKE2b-256 | 5b5c798ad4bf8746c8d2969643efd266c0fae0a48397c49f0b3722f207bbe8c8 |