Add your description here
Project description
说明
安装与使用
- 安装uv:
pip install uv - 安装第三方依赖库:
uv add <package_name> - 更新第三方依赖库:
uv add -U <package_name> - 卸载第三方依赖库:
uv remove <package_name> - 使用uv运行脚本:
uv run app.py
换源
在pyproject.toml中添加以下内容:
[[tool.uv.index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
初始化项目
几个常用的选项如下:
- uv init --app 创建一个普通的app, 这个也是默认的选项,这种就是最基础的项目,这类型的项目不能直接打包,由于pyproject.toml 中没有配置build system
- uv init --package 创建一个“包”, 这类型的项目可以被打包发布,pyproject.toml 中会自动配置 build system,并且可以发布为工具(tool),使用 uv tool run (或者 uvx )来直接运行(本节重点介绍此种方式创建的包)
- uv init --lib 创建一个"库", 这种和package 的区别在于没有project.scripts, 不能当工具来使用
打包
- 配置pyproject.toml:# TODO:xiedali@2025/04/12 目前还不知道怎么配置
- 打包:
uv build - 上传:
uv publish
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
myuvstudy-0.1.4.tar.gz
(6.1 kB
view details)
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 myuvstudy-0.1.4.tar.gz.
File metadata
- Download URL: myuvstudy-0.1.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c5349714bdd12045dac908084e77d8db0b8c225b03eb404df2298a8034f13f1
|
|
| MD5 |
f63e062a3b7bd5d2115f3b589dfec818
|
|
| BLAKE2b-256 |
ee69248de7291f202a26a6a2a1a68116a74c69c969a09b60f945bb6762ffee4b
|
File details
Details for the file myuvstudy-0.1.4-py3-none-any.whl.
File metadata
- Download URL: myuvstudy-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c0b5252faef9c58a07ac47dd8652450d95e6888520f5da6f35d0faecd5d4f76
|
|
| MD5 |
b31bd961aa132abd4b8ba95e813981da
|
|
| BLAKE2b-256 |
1ccab2340a1cf346a55f6a2b3957173a2036f5a515a15d6225381db2b0aa9466
|