Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pythonloc is a drop in replacement for python that automatically recognizes a __pypackages__ directory and prefers importing packages installed in this location over user or global site-packages.

If you are familiar with node, it is similar to node_modules.

This is a pure Python implementation of the proposal laid out in PEP 582. The CPython implementation is available at https://github.com/kushaldas/cpython/tree/pypackages.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: