Utility to locate python modules from the command line
Project description
Utility to locate python modules from the command line
Python utility to locate packages or resources in the python path.
The module is a thin layer around importlib
to display
the location and contents of an installed module or package.
The script exits with an error code if the module is not found.
This is similar to python -minspect <module> -d
but adds the option
to display the package contents as a tree.
Usage
Usage: python -m where [OPTIONS] MODULE
Locate python module or resources in the python path
MODULE is the name of a module or package as a fully qualified
python name
Options:
-r, --recurse Recurse into directory contents
--help Show this message and exit.
Examples
> python -mwhere sysconfig
/Users/.../envs/py38/lib/sysconfig.py
> python -mwhere pandas
/Users/.../envs/py38/lib/site-packages/pandas/__init__.py
> python -mwhere where -r
/Users/../Projects/where-toy/src/where
├── __init__.py
├── __main__.py
└── utils.py
Installation
Warning This project installs a module called
where
which name is also used by other projects like where.
You can install the latest version of this module with `pip
pip install git+ssh://git@github.com/furechan/where-toy.git
Related Projects & Resources
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.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd2a4eb2455ea32fa42595dad4a6b804b26ba7a55e8a4bd8d1f90b8e3b3a760 |
|
MD5 | 9199c3cb3ae84b86b7ad2b572a2606c7 |
|
BLAKE2b-256 | bcf8854746be06e74adf3665f38b1185ea1016bbe2df17003ebd44fd903533e5 |