Skip to content

nbeaver/pip_file_lookup

Repository files navigation

Matches filepaths to pip package.

Example usage:

$ pip3 install --user requests
$ # Absolute path.
$ pip_file_lookup.py ~/.local/lib/python3.6/site-packages/requests/__init__.py
requests
$ pip3 install --user six
$ # Relative path.
$ pip_file_lookup.py .local/lib/python3.6/site-packages/six.py
six

About

Get name of pip package corresponding to a file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published