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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file showmereqs-0.1.0.tar.gz.
File metadata
- Download URL: showmereqs-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed945ed93bdf967960bdcba069f7cf63cda3c8087f14806c7432f695fe7b19a1
|
|
| MD5 |
3b093f6fe93113d94b12318ca00349e3
|
|
| BLAKE2b-256 |
7eaf3b9fef965e25a55658bf96766e77d9de632762fcbf16cd885a80bbf3c78a
|
File details
Details for the file showmereqs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: showmereqs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40d0298b2fb8790ea43a1e380dfaecde9779893308296e95243713b4f6cdf726
|
|
| MD5 |
a6aed36f7c628de0c810314d071b6e29
|
|
| BLAKE2b-256 |
76ee12e2073d69b6d1e298ef6047ea1c11841f88588b54b5a8e7bfbb09ac0f97
|