Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pep723fy-0.0.1.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pep723fy-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for pep723fy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c95fc0168d81cf8d6c9eccf6e6c69d1f6aafbce81a9203bf33a6836716deb2a7
MD5 f2dbe15950954b9b5cf451af39c252b9
BLAKE2b-256 46940cddbe90a3f93b4463e7339c038bf8de0ceb8b7e6623435fc558a40b1c12

See more details on using hashes here.

Provenance

The following attestation bundles were made for pep723fy-0.0.1.tar.gz:

Publisher: publish.yml on ninoseki/pep723fy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pep723fy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8993115e3e7a1b923b5bb3e355e42dcd9571036748b61239263a8248351c049
MD5 51884486e0f872e2d7e2e91383636164
BLAKE2b-256 37383954186b591fea11d3d41ff17d99c6add7bf8da4aee020741c1e75987e07

See more details on using hashes here.

Provenance

The following attestation bundles were made for pep723fy-0.0.1-py3-none-any.whl:

Publisher: publish.yml on ninoseki/pep723fy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page