Skip to main content

A Python utility to detect imported modules and generate pip install commands for a project.

Project description

🔍 findreq — Auto-detect Missing Python Dependencies

PyPI License Python Downloads


findreq is a lightweight Python utility that scans your project directory and automatically detects:

  • Built-in modules
  • Local project modules
  • Third-party packages

It suggests the exact pip install commands for missing dependencies. Perfect for debugging dependency issues or preparing a clean requirements.txt.


🚀 Features

  • ✅ Auto-detects built-in, local, and third-party modules.
  • 📁 Scans nested directories and submodules.
  • ⚙️ Detects standard library modules automatically.
  • 🧠 Uses PyPI lookup for third-party packages with caching.
  • 💻 Works on Linux, macOS, and Windows.

📦 Installation

pip install findreq

Or install the latest development version directly from GitHub:

pip install git+https://github.com/syedrakesh/findreq.git

🧰 Usage

🔸 Scan the current project (default)

from findreq import scan

fp = scan()  # scans the current working directory

fp.print_summary()
print("Pip install command:", fp.install_command())

🔸 Scan a specific project directory

from findreq import scan

fp = scan("/path/to/your/project")

print("Built-in modules:", fp.built_in)
print("Local modules:", fp.local)
print("Third-party packages:", fp.third_party)

fp.print_summary()
print("Pip install command:", fp.install_command())

🧱 Project Structure

findreq/
├── findreq/
│   └── __init__.py
├── LICENSE
├── README.md
└── pyproject.toml
  • findreq/ — Python package code
  • LICENSE — MIT license
  • README.md — Project documentation
  • pyproject.toml — Build and package metadata

🧑‍💻 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.


⚖️ License

This project is licensed under the MIT License — see the LICENSE file for details.


Made with ❤️ by Syed Rakesh Uddin

“Code smart, automate smarter.”

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

findreq-0.1.8.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

findreq-0.1.8-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file findreq-0.1.8.tar.gz.

File metadata

  • Download URL: findreq-0.1.8.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for findreq-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b274c9be83d862e8a6d9504a6a3556faf983d03b2c9b0700f55c6729165708d4
MD5 ca117c507a171a4b3689ca60f4f242d7
BLAKE2b-256 d615398d5a2431acc7bbc0a88f446af3a60f85f84d3752c57892b054163c1d26

See more details on using hashes here.

File details

Details for the file findreq-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: findreq-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for findreq-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 223af7dba5a79b1af4eb6234b414202b1dd900da5ac6fd17eda2c7e6294280e4
MD5 4bb623f3de859554fe61dfa08a87e069
BLAKE2b-256 e3469aca4a0a5a3030ecd0edda3b5b01d4ae3e97fe759c3a33b60e4f84ab729a

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