4 ms·
> I use different mechanisms to manage the virtual environments depending on whether I’m developing a *package* without strict pinning or an *application* with
by Hackbraten 3y ago
> I use different mechanisms to manage the virtual environments depending on whether I’m developing a *package* without strict pinning or an *application* with strict pinning.
I assume that by “package,” the author means library?
- adolph 3y agoThe docs define only module[0] and package[1] but the term library is often used to refer to a collection of modules such as the "standard library." 0. https://docs.python.org/3/glossary.html#term-module https://docs.python.org/3/glossary.html#term-module 1. https://docs.python.org/3/glossary.html#term-package https://docs.python.org/3/glossary.html#term-package A non-canonical source claims broader meaning for "Library:" A library is an umbrella term referring to a reusable chunk of code. Usually, a Python library contains a collection of related modules and packages. Actually, this term is often used interchangeably with “Python package” because packages can also contain modules and other packages (subpackages). However, it is often assumed that while a package is a collection of modules, a library is a collection of packages. https://learnpython.com/blog/python-modules-packages-libraries-frameworks/ https://learnpython.com/blog/python-modules-packages-librari...
- simonw 3y agoIn the Python world "package" implies something that can be published to PyPI - the Python Package Index - and then installed using pip, a recursive acronym for "pip installs packages". Package is a better term than library, because some of the things you can install with pip, such as command-line tools, don't really act like libraries.