← Back to list

uv
by lostmygithubaccount
my dotfiles
⭐ 2🍴 0📅 Jan 15, 2026
SKILL.md
name: uv description: Build self-contained Python executables using uv script metadata.
uv scripts
Create standalone Python scripts with inline dependency management using PEP 723 script metadata.
Bootstrap template
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "typer",
# "rich",
# ]
# ///
"""Script description."""
def main() -> None:
pass
if __name__ == "__main__":
main()
Make executable
chmod +x bin/my-script.py
Run
./bin/my-script.py
# or
uv run --script bin/my-script.py
Script metadata format
The # /// script block declares dependencies inline:
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests>=2.28",
# "pydantic",
# ]
# ///
Local package dependencies
Reference local packages with [tool.uv.sources]:
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "my-local-package",
# "rich",
# ]
#
# [tool.uv.sources]
# my-local-package = { path = "..", editable = true }
# ///
Add dependencies
Use uv add --script to add dependencies to an existing script:
uv add --script bin/my-script.py httpx rich
Common dependencies
- CLI:
typer,click - Output:
rich - HTTP:
httpx,requests - Data:
pydantic,polars,pandas - YAML:
pyyaml,ruamel.yaml
Resources
- uv scripts: https://docs.astral.sh/uv/guides/scripts/
- PEP 723: https://peps.python.org/pep-0723/
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon