A tool to automatically extract and generate requirements.txt from Python source code by analyzing imports.
Project description
requirePy
requirePy is a tool to automatically extract and generate requirements.txt from Python source code by analyzing imports.
How to Use
Command Line
From your project root, run:
requirePy . -o requirements.txt
This will analyze your source code and generate a requirements.txt file.
As a Python Module
You can also use requirePy in your own scripts:
import requirePy
reqs = requirePy.extractreq(src_dir="/path/to/your/source", write=True)
print(reqs)
This will return a sorted list of requirements found in the given source directory.
- PyPI package: https://pypi.org/project/requirePy/
- Free software: MIT License
- Documentation: https://requirePy.readthedocs.io.
Features
- TODO
Credits
This package was created with Cookiecutter and the audreyfeldroy/cookiecutter-pypackage project template.
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 Distributions
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 extractreqs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: extractreqs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9797e95b2683dadadafaa197182e5011e26b0df8af3703fe1c0f38c9aae1e5d7
|
|
| MD5 |
4f796ff98c053913981fa2126f384606
|
|
| BLAKE2b-256 |
96b3737b8aa4af3d85edc93722b38616bcdd12a34d3afa119e8daf6ec70c70c4
|