Skip to main content

A lightweight tool to generate requirements.txt by analyzing import statements

Project description

ShowMeReqs

A lightweight command-line tool that generates requirements.txt by analyzing import statements in your Python projects.

Features

  • Intelligent third-party import detection
  • Automatic requirements.txt generation with precise versions
  • Clean and intuitive CLI interface
  • Smart package resolution and analysis

Installation

Install via pip:

pip install showmereqs

Usage

Generate requirements.txt for current directory:

showmereqs .

Or specify a project path:

showmereqs path/to/your/project

Why ShowMeReqs?

Traditional approaches like pip freeze capture all environment dependencies, while modern tools like Poetry can be overly complex for simple needs. ShowMeReqs bridges this gap by offering a streamlined solution that identifies only the dependencies your project actually uses.

Additionally, once ShowMeReqs generates the initial requirements.txt, you can easily migrate to modern package management tools for more comprehensive dependency management.

Acknowledgments & License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

ShowMeReqs uses package mapping and stdlib data from pipreqs under the Apache 2.0 license. As pipreqs development has slowed, ShowMeReqs aims to provide an actively maintained alternative for the Python community.

Roadmap

Future releases will include:

  • Additional CLI options for customization
  • Support for excluding specific packages or directories
  • Version range specifications
  • Integration with other package management tools

Feel free to open issues for feature requests or bug reports.

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

showmereqs-0.1.1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

showmereqs-0.1.1-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file showmereqs-0.1.1.tar.gz.

File metadata

  • Download URL: showmereqs-0.1.1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for showmereqs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 82547a8b7546250cd68f2ed19d245d8f2cddc32ff82f1908faf6abbca96c119d
MD5 d91860d2d84b431d32c3d46b7484f757
BLAKE2b-256 3772b8b6b68a81f5535e03214b4de0691c2d856fd691f444c3e2b653bf5c828b

See more details on using hashes here.

File details

Details for the file showmereqs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: showmereqs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for showmereqs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fcb551bfefec498817c9c2e1412c9b32a4f13e27cdcdf45f367e62642dee65f
MD5 2839dc0e3719ff6ae43960e1b0ee054d
BLAKE2b-256 5cbedd0eba8d08c8e328c5dc05f752d559cf79201442208b75301bc2c81237a8

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