A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pypa/pip/issues/3121 below:

Create a supported "high level" programmatic API for pip · Issue #3121 · pypa/pip · GitHub

This has come up a few times recently now that pip is available in a standard Python install.

Maybe we should formally support a programmatic API for pip that allows the high-level command line operations pip supports to be run from within a Python interpreter? That may simply mean blessing (and documenting) pip.main() as a supported API.

There may be some odd corner cases to take care with, if we're considering people running pip.main() from within a persistent interpreter (e.g. IPython or Idle). I'm thinking of cases where sys.modules caches something you're upgrading, for example. But that may just need documentation saying that those things need an interpreter restart, at least as a starting point.

sthzg, smheidrich, iMerica and Globegitter


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4