icortex icon indicating copy to clipboard operation
icortex copied to clipboard

Construct module <> package map for auto-installing packages

Open osolmaz opened this issue 3 years ago • 1 comments

Module names do not map directly to PyPI package names, so there needs to be a way to bridge that gap to auto-install missing modules.

To construct the mapping we could:

  1. Download the list of most popular Python packages, e.g. https://hugovk.github.io/top-pypi-packages/
  2. Scrape each package and find out which modules they install

The mapping should not be owned/provided by a third-party to prevent arbitrary code execution vulnerabilities.

osolmaz avatar Oct 03 '22 21:10 osolmaz

The current stance is for the mapping to be hosted in TextCortex backend and to return relevant entries with each request.

osolmaz avatar Nov 08 '22 15:11 osolmaz