Metadata-Version: 2.1
Name: pyproject_deplister
Version: 0.1.2
Summary: pyproject-deplister is a Python package for extracting dependency information from pyproject.toml files and converting it into the format of a requirements.txt file. With its simple and intuitive interface, pyproject-deplister makes it easy to manage and track dependencies for your Python projects, ensuring that you have all the necessary packages installed and up-to-date.
Author-email: Célien Donzé <celien.donze@he-arc.ch>, Jonathan Guerne <jonathan.guerne@he-arc.ch>
License: MIT License
        
        Copyright (c) 2024 HE-Arc Neuchâtel
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Keywords: dependencies,pyproject.toml,extractor,list,requirements.txt
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tomli
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"


# pyproject-deplister

Python package for extracting dependencies from `pyproject.toml` files and converting them into the format of a `requirements.txt` file.

## Installation

You can install `pyproject-deplister` using pip:

```
pip install pyproject-deplister
```

## Usage

To use `pyproject-deplister`, simply provide the path to your `pyproject.toml` file as an argument:

```
pyproject-deplister -p path/to/pyproject.toml
```

The output will be a list of dependencies in the format of a `requirements.txt` file, which you can use with `pip` to install and manage your project's dependencies.

For example:

```
numpy==1.21.0
pandas==1.3.0
scikit-learn==0.24.2
```

There are also additional options available:
* `-p` or `--path`: Specify the path to the `pyproject.toml` file. By default, the current working directory will be used.
* `-o` or `--output`: Specify the output file for the `requirements.txt` file. By default, the output will be printed to the console.
* `-e` or `--extra`: Include dependencies from the specified extras in the output. For example, `-e dev` will include dependencies from the `dev` extras. You can specify multiple extras separated by space.

```
pyproject-deplister [-h] [--extra [EXTRA ...]] [--path [PATH]] [--output_file [OUTPUT_FILE]]
```

## Features

* Extract dependency information from `pyproject.toml` files
* Convert dependency information into the format of a `requirements.txt` file
* Simple and intuitive interface

## Disclaimer

Dependencies can only be extracted if they follow specifically the specification introduced in [PEP 631](https://peps.python.org/pep-0631/).

## Requirements

* Python 3.6 or higher

## License

`pyproject-deplister` is licensed under the [MIT License](LICENSE).
