Multiprocessing capabilities can be an effective tool for speeding up a time-consuming workflow by…
You manage a large Python codebase that interacts with another vendor’s library. A…
Suppose you are maintaining a module, package, or data structure that has an API with many methods and you want to add the ability to log every API call. Furthermore, you need to enable or disable the logging feature using a single flag. Do you manually add a…
Suppose your Python library needs to load some sensitive binary data from a file into a contiguous block…
Suppose you are working on a project in Python that takes advantage of Python’s support for higher-order functions. Perhaps you are allowing users to specify their own hooks or event handlers within a web application framework, or you are creating a unit testing library that…
If you are working on a project in which you must enumerate, traverse, and/or test every possible…
Suppose you are maintaining a domain-specific machine learning library. Users of the library’s API expect that every machine learning algorithm offered by the API will have the same interface (i.e., the same methods with the same signatures) regardless of its underlying…
Suppose you are working on a Python API that provides access to a real-time data stream (perhaps from an array of sensors or from a web service that handles user requests). You would like to deliver to the consumers of your API a simple but flexible abstraction…
This article is a step-by-step guide to assembling and publishing a small, open-source Python package. While…
Suppose you are implementing a service that works with data sets that represent routes on a map (e.g., collections of driving directions or logs of past trips). The road network is represented as a graph with nodes and edges, and each route is conceptually a collection of edges…
These were the top 10 stories published by Python Supply; you can also dive into yearly archives: 2019, 2020.