Metadata-Version: 2.4
Name: extractreqs
Version: 0.1.0
Summary: A tool to automatically extract and generate requirements.txt from Python source code by analyzing imports.
Author-email: hasanaliozkan <hasanaliozkan@mu.edu.tr>
Maintainer-email: hasanaliozkan <hasanaliozkan@mu.edu.tr>
License: MIT
Project-URL: bugs, https://github.com/hasanaliozkan-dev/requirePy/issues
Project-URL: changelog, https://github.com/hasanaliozkan-dev/requirePy/blob/master/changelog.md
Project-URL: homepage, https://github.com/hasanaliozkan-dev/requirePy
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer
Provides-Extra: test
Requires-Dist: coverage; extra == "test"
Requires-Dist: pytest; extra == "test"
Requires-Dist: ruff; extra == "test"
Requires-Dist: ty; extra == "test"
Requires-Dist: ipdb; extra == "test"
Dynamic: license-file

# requirePy

![PyPI version](https://img.shields.io/pypi/v/requirePy.svg)
[![Documentation Status](https://readthedocs.org/projects/requirePy/badge/?version=latest)](https://requirePy.readthedocs.io/en/latest/?version=latest)


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:

```bash
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:

```python
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](https://github.com/audreyfeldroy/cookiecutter) and the [audreyfeldroy/cookiecutter-pypackage](https://github.com/audreyfeldroy/cookiecutter-pypackage) project template.
