DEV Community

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

Posted on

2

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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay