Skip to main content

Lightweight tool to extract and analyze Python requirements.

Project description

📦 reqbuddy – Python Requirement File Helper

PyPI Python License

A lightweight Python utility for managing requirements.txt files and discovering installed packages. It includes both a Python API and CLI for convenience.

📌 Available on PyPI: https://pypi.org/project/reqbuddy/

✨ Features

  • 🔍 Read & clean requirements.txt
  • 📄 Generate requirements.txt from the current environment
  • 🧹 Strip version constraints if needed
  • 🖥️ CLI support: reqbuddy get, reqbuddy find
  • ♻️ Remove duplicate entries

🔧 Installation

 pip install reqbuddy

🚀 CLI Usage

# Generate requirements.txt from current environment
reqbuddy find

# Read and print requirements
reqbuddy get

🧑‍💻 Python Usage

from reqbuddy import find_requirement, get_requirement

# Generate requirements.txt
genreqs = find_requirement(strip=False, save=True)
print(genreqs)

# Read existing requirements.txt
reqs = get_requirement(strip=True)
print(reqs)

✅ Requirements

  • Python 3.8+

📝 License

MIT License

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/new-feature)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature/new-feature)
  5. Create a Pull Request

🙋‍♂️ Author

Astin Biju
Feel free to connect on LinkedIn or message me for questions or collaboration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reqbuddy-0.1.6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reqbuddy-0.1.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file reqbuddy-0.1.6.tar.gz.

File metadata

  • Download URL: reqbuddy-0.1.6.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for reqbuddy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 0ea752398e27318408cb6641542dae45debaada4a9ed0761cc2d5c5cf492b56e
MD5 e3b7a2e7b1d34408802dce257699c0d6
BLAKE2b-256 d85bb439ee592b97272b643b5c114e0073b6d47950b727ea93890e051da3b1fb

See more details on using hashes here.

File details

Details for the file reqbuddy-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: reqbuddy-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for reqbuddy-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e38d0c3d75e85b89f8ddd90ebf8d6e2833ec4f1ac1f92b2dbd5eb1acf2b4477b
MD5 20ce5dd6681060817837c95aa6b61f90
BLAKE2b-256 fb5d01de7b4c37c091093596d9471141ecb3f459025c9a0151c42cda79274f03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page