Auto-generate PEP 723 metadata for Python scripts by analyzing imports
Project description
autopep723
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 runwrapper - 🔍 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a70a85e2ad74d52abe443ebaef14df6591843ae2b2b47b40a7a0c1a34eeb433b
|
|
| MD5 |
6eff0d531df53426e090a72d3a103e62
|
|
| BLAKE2b-256 |
44466def31e9ac0bc162ad588d264215f5ac9fef89979f064b9a9e36f4985fdb
|
Provenance
The following attestation bundles were made for autopep723-0.2.0.tar.gz:
Publisher:
cd.yml on mgaitan/autopep723
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autopep723-0.2.0.tar.gz -
Subject digest:
a70a85e2ad74d52abe443ebaef14df6591843ae2b2b47b40a7a0c1a34eeb433b - Sigstore transparency entry: 302756525
- Sigstore integration time:
-
Permalink:
mgaitan/autopep723@c7b9a345a2544d117bc2073cebd4ace3dd830913 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/mgaitan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@c7b9a345a2544d117bc2073cebd4ace3dd830913 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52a36719226dba89eebe9807c837bbc5d61fc5c2fc7a70dacec69110e33ab5de
|
|
| MD5 |
2b0d76f68c94af8e2bf818762062139c
|
|
| BLAKE2b-256 |
312ff2292a1fa8bc39f54f20b17cf3e79d77d722aa4d7a5b23e9db37cd5ecfbd
|
Provenance
The following attestation bundles were made for autopep723-0.2.0-py3-none-any.whl:
Publisher:
cd.yml on mgaitan/autopep723
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autopep723-0.2.0-py3-none-any.whl -
Subject digest:
52a36719226dba89eebe9807c837bbc5d61fc5c2fc7a70dacec69110e33ab5de - Sigstore transparency entry: 302756533
- Sigstore integration time:
-
Permalink:
mgaitan/autopep723@c7b9a345a2544d117bc2073cebd4ace3dd830913 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/mgaitan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@c7b9a345a2544d117bc2073cebd4ace3dd830913 -
Trigger Event:
release
-
Statement type: