Finding Quality Python Packages
00:00 Welcome to the finding quality Python packages module in the course. One of my favorite things in Python is the rich third party package ecosystem. There is so many open source packages available that you can just install for free and use in your own applications.
00:17 The ability to find and identify these high quality packages will make you a much more productive and effective Python developer, but first, let’s take a quick look at where you are right now in the course curriculum.
00:31 At this point you have all the tools you need to be able to install third party packages, and to keep them nice and separate. So now you’re going learn where to find these high quality packages you can use in your own applications.
00:44 Here is what this module in the course will teach you to do, first, you’re going to find out how third-party packages can help you become a more effective and more productive Python coder.
00:55 Next, I am going to show you several curated lists of the most popular Python packages and you can use those lists to quickly find the best options in a specific category, for example, the most popular web frameworks in Python.
01:11 After that, you are going to learn a specific workflow and some rules of thumb and quality indicators for selecting a great quality package.
Bartosz Zaczyński RP Team on Dec. 5, 2024
@dakshnavenki There are a few methods to determine Python’s standard library modules:
- Check the Python library reference
- Check with PyMOTW, although it’s not exhaustive
- List the modules programmatically
Here’s the third option:
>>> import pathlib
... import sysconfig
...
... stdlib = pathlib.Path(sysconfig.get_path("stdlib"))
... modules = [
... path.stem
... for path in sorted(stdlib.iterdir())
... if (path.is_dir() or path.suffix == ".py")
... and not path.name.startswith("_")
... ]
...
>>> modules
['abc', 'antigravity', 'argparse', 'ast', ..., 'zoneinfo']
>>> len(modules)
166
dakshnavenki on Dec. 6, 2024
Thank you, Bartosz, this helps!
Become a Member to join the conversation.
dakshnavenki on Dec. 5, 2024
Hello Dan, I have a question on packages. When you say third party packages, I understand those refers to packages we install using pip commands from PyPI. while we have lot of built in packages that comes with python installation. How do we check for available builtin packages like “sys”, “os”. How do identify whether the given package is built in package or third party package?.
Thanks, Venkat