DEV Community

Cover image for pyp - A pip wrapper that writes requirements for you
Zach Taylor
Zach Taylor

Posted on

pyp - A pip wrapper that writes requirements for you

Have you ever installed a package with pip in your Python project and realized later that you never added it to your requirements.txt? I know I have, which is why I recently created an open source project that I call pyp to fix that. It's a thin wrapper around Python's package manager pip that writes your requirements.txt file for you as you install packages.

To install pyp run

$ pip install pyp-manager
Enter fullscreen mode Exit fullscreen mode

You can then install a package with

$ pyp install pip-install-test
Enter fullscreen mode Exit fullscreen mode

and a requirements.txt file will be created in your working directory with pip-install-test==0.5 on the first line.

Right now, pyp only works in Python 3 and it relies on the pip command being available.

If you want to contribute, check out the repository at https://github.com/zachtylr21/pyp.


Photo by George Stewart on Unsplash

Top comments (0)