Skip to main content

Auto-generate PEP 723 metadata for Python scripts by analyzing imports

Project description

autopep723

PyPI Read the Docs Changelog CI Ruff License

autopep723 is a tiny wrapper on top of uv run that automatically manages third-party dependencies of Python scripts. Forget about manually managing dependencies for simple experiments!

Quick Start

Run your script using third-party dependencies via uvx autopep723:

# Run directly without installing
uvx autopep723 script.py

# Or remote scripts directly from URLs
uvx autopep723 https://gist.githubusercontent.com/user/repo/script.py

To install the tool permanently:

uv tool install autopep723
autopep723 script.py

Shebang Integration

You can use autopep723 directly as a shebang:

#!/usr/bin/env -S uvx autopep723
import requests
import numpy as np

# Your script here...

Features

  • Zero dependencies - uses only Python standard library
  • 🪶 Minimal footprint - perfect as uv run wrapper
  • 🔍 Automatic dependency detection via AST analysis
  • PEP 723 compliant metadata generation
  • 🌐 Remote script support - run scripts directly from URLs

For detailed usage see the documentation.

License

MIT - see LICENSE file for details.

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

autopep723-0.2.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

autopep723-0.2.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file autopep723-0.2.0.tar.gz.

File metadata

  • Download URL: autopep723-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for autopep723-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a70a85e2ad74d52abe443ebaef14df6591843ae2b2b47b40a7a0c1a34eeb433b
MD5 6eff0d531df53426e090a72d3a103e62
BLAKE2b-256 44466def31e9ac0bc162ad588d264215f5ac9fef89979f064b9a9e36f4985fdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for autopep723-0.2.0.tar.gz:

Publisher: cd.yml on mgaitan/autopep723

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

File details

Details for the file autopep723-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: autopep723-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for autopep723-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52a36719226dba89eebe9807c837bbc5d61fc5c2fc7a70dacec69110e33ab5de
MD5 2b0d76f68c94af8e2bf818762062139c
BLAKE2b-256 312ff2292a1fa8bc39f54f20b17cf3e79d77d722aa4d7a5b23e9db37cd5ecfbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for autopep723-0.2.0-py3-none-any.whl:

Publisher: cd.yml on mgaitan/autopep723

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