From a91f1cba2fce20946efbc56715838b8029fb7db7 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Thu, 9 Apr 2026 23:48:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20README=20with=20Python?= =?UTF-8?q?=20tool=20and=20usage=20examples?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index ad11ab5..b583db1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,25 @@ # python-tests +> Python tool: https://github.com/astral-sh/uv + +```shell +uvx pycowsay 'hello world!' +``` + +```shell +$ echo 'import requests; print(requests.get("https://astral.sh"))' > example.py + +$ uv add --script example.py requests +Updated `example.py` +``` + +```shell +$ uv run example.py +Reading inline script metadata from: example.py +Installed 5 packages in 12ms + +``` + > https://developer.aliyun.com/mirror/pypi/ `~/.pip/pip.conf`