Skip to content

Commit e5a4351

Browse files
committed
chore: 在pypi上以share-cli发布,更新版本号
1 parent 5e035f5 commit e5a4351

File tree

4 files changed

+39
-27
lines changed

4 files changed

+39
-27
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Thumbs.db
2828

2929
# build files
3030
build/
31-
share.egg-info/
31+
*.egg-info/

README.md

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
# `share` - 一键部署的单文件安全文件共享
1+
# `share-cli` - 一键部署的单文件安全文件共享
22

33
[![Python](https://img.shields.io/badge/Python-3.8%2B-blue)](https://www.python.org/)
44
[![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)
55

6-
**`share` 是一个极致简单的单文件 HTTP 服务器。** 只需一个 Python 脚本,即可在局域网内快速、安全地共享您的文件夹。
6+
**`share-cli` 是一个极致简单的单文件 HTTP 服务器。** 只需一个 Python 脚本,即可在局域网内快速、安全地共享您的文件夹。
77

88
```bash
9-
# 1. 下载脚本
10-
# 国内用户使用 gitee
11-
wget https://gitee.com/jackiehankk/share/blob/main/share.py
9+
# 使用 pipx 安装(强烈推荐)
10+
pipx install share-cli
1211

13-
wget https://github.com/jackiehank/share/raw/main/share.py
14-
15-
# 2. 一键运行!
16-
python3 share.py /path/to/your/folder
12+
# 或使用 pip 安装
13+
pip install --user share-cli
1714
```
1815

1916
无需安装依赖,无需复杂配置。打开浏览器,即刻开始浏览、上传和播放您的文件。
@@ -76,15 +73,9 @@ python3 share.py /path/to/your/folder
7673

7774
> **告别手动下载脚本!现在,你可以通过标准的 Python 包管理器一键安装 `share`**
7875
79-
`share` 已被打包为标准的 Python wheel 文件(`.whl`),你可以从 GitHub Release 页面下载并安装,享受更稳定、更便捷的体验。
80-
81-
#### 1: 下载安装包
82-
83-
1. 访问项目的 [gitee Release 页面](https://gitee.com/jackiehankk/share/releases) [github Releases 页面](https://github.com/jackiehank/share/releases)
84-
2. 在最新的版本(如 `v0.4.4`)下,找到 **Assets** 部分。
85-
3. 下载文件 `share-xxx-py3-none-any.whl`
76+
#### 1: 安装 `share-cli` 命令行工具
8677

87-
#### 2: 安装
78+
> **推荐通过 PyPI 一键安装,无需手动下载文件。**
8879
8980
你有两种推荐的安装方式:
9081

@@ -97,21 +88,42 @@ python3 share.py /path/to/your/folder
9788
pip install pipx
9889
pipx ensurepath
9990

100-
# 使用 pipx 安装 share
101-
pipx install ./share-0.4.4-py3-none-any.whl
91+
# 使用 pipx 从 PyPI 安装 share
92+
pipx install share-cli
10293
```
10394

10495
**方式二:使用 `pip` 安装**
10596

10697
如果你不想使用 `pipx`,也可以直接用 `pip` 安装:
10798

10899
```bash
109-
pip install --user ./share-0.4.4-py3-none-any.whl
100+
pip install --user share-cli
110101
```
111102

112-
`Android` 使用 `termux` 安装 `python` 后也同样可以使用`pip`安装使用。
103+
> **安装完成后,即可在终端任何位置使用 `share` 命令!**
104+
>
105+
> `Android` 用户使用 `termux` 安装 `python` 后,同样可以使用上述 `pip` 命令进行安装。
106+
107+
---
108+
109+
#### (可选)手动下载安装包
110+
111+
如果你想手动下载 wheel 文件进行安装:
112+
113+
1. 访问项目的 [Gitee Release 页面](https://gitee.com/jackiehankk/share/releases)[GitHub Releases 页面](https://github.com/jackiehank/share/releases)
114+
2. 在最新的版本(如 `v0.4.5`)下,找到 **Assets** 部分。
115+
3. 下载文件 `share_cli-0.4.5-py3-none-any.whl`
116+
4. 使用 `pipx``pip` 安装下载的文件:
117+
118+
```bash
119+
# 使用 pipx
120+
pipx install ./share_cli-0.4.5-py3-none-any.whl
121+
122+
# 或使用 pip
123+
pip install --user ./share_cli-0.4.5-py3-none-any.whl
124+
```
113125

114-
#### 3: 开始使用!
126+
#### 2: 开始使用!
115127

116128
安装完成后,你就可以在终端的任何位置使用 `share` 命令了!
117129

@@ -129,7 +141,7 @@ share ~/Documents --password
129141
share ~/Pictures --https
130142
```
131143

132-
#### 4. 访问共享
144+
#### 3. 访问共享
133145

134146
服务器启动后,会显示访问地址,例如:
135147
```

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
2-
name = "share"
3-
version = "0.4.4"
2+
name = "share-cli"
3+
version = "0.4.5"
44
description = "A simple file server"
55
readme = "README.md"
66
authors = [{ name = "Jackie Han", email = "jackiehank@163.com" }]

share.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
7777
"""
7878

79-
__version__ = "0.4.4"
79+
__version__ = "0.4.5"
8080
__author__ = "Jackie Hank"
8181
__license__ = "MIT"
8282

0 commit comments

Comments
 (0)