CodeDiscoveryUseCases
This wiki is in the process of being archived due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies. Edits are discouraged.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.
Based on Python-ideas thread My objections to implicit package directories by Alyssa Coghlan and this message from Yuval Greenfield:
I've always had trouble understanding and explaining the complexities and intricacies of python packaging.` Is there a most basic but comprehensive list of use cases?
- standard library
import from a list of paths to be searched.<
- current project
- import from a relative path based on this file's current directory
- package bundled with project
- import from a relative path based on an anchor directory
- virtual-env
- import from an alternative lists of paths based on an anchor directory