Metadata-Version: 2.4
Name: pep723fy
Version: 0.0.1
Summary: Inject pyproject.toml/requirements.txt dependencies into PEP 723 inline script metadata
Project-URL: Repository, https://github.com/ninoseki/pep723fy
Project-URL: Homepage, https://github.com/ninoseki/pep723fy/
Project-URL: Issues, https://github.com/ninoseki/pep723fy/issues/
License-File: LICENSE
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# pep723fy

Inject [PEP 723](https://peps.python.org/pep-0723/) inline script metadata into a Python file from a `pyproject.toml` ([PEP 621](https://peps.python.org/pep-0621/) / [PEP 735](https://peps.python.org/pep-0735/)) or `requirements.txt`.

## Installation

```bash
pip install pep723fy
# or
uv tool install pep723fy   # or just `uvx pep723fy ...`
```

## Usage

From `pyproject.toml`:

```bash
pep723fy script.py pyproject.toml
```

From `requirements.txt`:

```bash
pep723fy script.py requirements.txt
```

Use `--help` for more details:

```bash
$ pep723fy --help
usage: pep723fy [-h] [-f] [-g NAME] destination [source]

Inject pyproject.toml or requirements.txt dependencies as PEP 723 inline
script metadata.

positional arguments:
  destination       Path to the destination Python script.
  source            Path to the source pyproject.toml or requirements.txt
                    (default: ./pyproject.toml).

options:
  -h, --help        show this help message and exit
  -f, --force       Overwrite the destination's existing PEP 723 script block.
  -g, --group NAME  Include a dependency group from [dependency-groups]. May
                    be repeated.
```
