Inject pyproject.toml/requirements.txt dependencies into PEP 723 inline script metadata
Project description
pep723fy
Inject PEP 723 inline script metadata into a Python file from a pyproject.toml (PEP 621 / PEP 735) or requirements.txt.
Installation
pip install pep723fy
# or
uv tool install pep723fy # or just `uvx pep723fy ...`
Usage
From pyproject.toml:
pep723fy script.py pyproject.toml
From requirements.txt:
pep723fy script.py requirements.txt
Use --help for more details:
$ 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.
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 pep723fy-0.0.1.tar.gz.
File metadata
- Download URL: pep723fy-0.0.1.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c95fc0168d81cf8d6c9eccf6e6c69d1f6aafbce81a9203bf33a6836716deb2a7
|
|
| MD5 |
f2dbe15950954b9b5cf451af39c252b9
|
|
| BLAKE2b-256 |
46940cddbe90a3f93b4463e7339c038bf8de0ceb8b7e6623435fc558a40b1c12
|
Provenance
The following attestation bundles were made for pep723fy-0.0.1.tar.gz:
Publisher:
publish.yml on ninoseki/pep723fy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pep723fy-0.0.1.tar.gz -
Subject digest:
c95fc0168d81cf8d6c9eccf6e6c69d1f6aafbce81a9203bf33a6836716deb2a7 - Sigstore transparency entry: 1388888807
- Sigstore integration time:
-
Permalink:
ninoseki/pep723fy@9828182123d276251abbae73dd8ff1ef4b662f51 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ninoseki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9828182123d276251abbae73dd8ff1ef4b662f51 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pep723fy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pep723fy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8993115e3e7a1b923b5bb3e355e42dcd9571036748b61239263a8248351c049
|
|
| MD5 |
51884486e0f872e2d7e2e91383636164
|
|
| BLAKE2b-256 |
37383954186b591fea11d3d41ff17d99c6add7bf8da4aee020741c1e75987e07
|
Provenance
The following attestation bundles were made for pep723fy-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on ninoseki/pep723fy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pep723fy-0.0.1-py3-none-any.whl -
Subject digest:
d8993115e3e7a1b923b5bb3e355e42dcd9571036748b61239263a8248351c049 - Sigstore transparency entry: 1388888913
- Sigstore integration time:
-
Permalink:
ninoseki/pep723fy@9828182123d276251abbae73dd8ff1ef4b662f51 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ninoseki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9828182123d276251abbae73dd8ff1ef4b662f51 -
Trigger Event:
release
-
Statement type: