Choosing a Python library
You’re working on a Python project, and you realise the next thing to do is a bit tricky. You don’t want to reinvent the wheel if you don’t have to. You wonder: has someone solved this problem before? The first place to look is the Python Standard Library . One of Python’s great strengths is that it comes with batteries included; there are well-documented, tried and tested libraries to do all sorts of useful things. No luck ? Turn to GitHub for help - it usually can! Most of the libraries I use are hosted on GitHub. Sometimes you’ll just find one candidate library; sometimes there will be more than one. You’ll need to decide if any fit the bill, and which looks best. As we’ll see, GitHub can tell you a lot about the quality of the project. Here are the things I like to ask about a library I’m considering. I’ve illustrated the checklist using the guizero project as an example, since I use it a lot and it ticks all the boxes. Does it have good documentation? Is the inten...