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.2.tar.gz (27.0 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.2-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: showmereqs-0.1.2.tar.gz
  • Upload date:
  • Size: 27.0 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.2.tar.gz
Algorithm Hash digest
SHA256 98c603ec2d0b4c35e0efa28f4227de66c0a300f5c4c8906f97ac33cb5ae701b2
MD5 0c518cd1578862da037258a7b651b388
BLAKE2b-256 53bd98373795f158d871f3e284c13fcf1b82a8c276c590fc046c2070fd79c44a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: showmereqs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 27.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b11b1c025f2f69264f4f1ca2070753dca4ae8a5b6caaf2dbc9ed34761ab17a
MD5 0469278a3aa6703530a2765e621e5ccc
BLAKE2b-256 23629a99d4f8bc99530f635858572e22cba72d2867096654bd9dd982733a2bd7

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