It's not hard to write a Python package that can be installed into an interpreter or virtual environment with pip. This video shows a simple example of how to lay out a project's source code and set ...
Note that you have to replace the quote marks with ' in the code provided in that link to check for the malicious packages. Adding to the insecurity, the widely used pip package management system ...