[App Sharing] 开源的跨平台文件/文本分享工具 share
Tofloor
poster avatar
beavailable
deepin
2021-12-31 19:25
Author

看到论坛里有不少类似的工具了,我也发一个自己写的 python 脚本。

share

这是一个基于 HTTP 协议的文件分享工具,单文件开箱即用。

特性

  • 跨平台
  • 响应式布局
  • 支持共享文件和文本
  • 支持上传和下载
  • 支持范围请求
  • 支持密码分享

用法

usage: share.py [-h] [-b ADDR:PORT] [-a] [-t] [-r] [-p [PASSWORD]] [arguments ...]

positional arguments:
  arguments             a directory, files or texts

optional arguments:
  -h, --help            show this help message and exit
  -b ADDR:PORT, --bind ADDR:PORT
                        bind address [default: 0.0.0.0:8888]
  -a, --all             show all files, including hidden ones
  -t, --text            text mode
  -r, --receive         receive mode
  -p [PASSWORD], --password [PASSWORD]
                        access password, if no PASSWORD is specified, the environment
                        variable SHARE_PASSWORD will be used

截图

screenshot.gif

提示

如果你只有一个文件需要分享,下面这个简化的 url 可以帮助你快速访问到这个文件:

http://{host}:{port}/file

使用常见的命令行工具下载文件时,会收到 Content-Disposition首部,因此如果需要保留原始文件名,可以用:

wget --content-disposition http://{host}:{port}/file

或者是:

curl -OJ http://{host}:{port}/file
Reply Favorite View the author
All Replies
babyfengfjx
Super Moderator
CQA
2021-12-31 20:39
#1

优秀!

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-01-01 00:02
#2

一个python工具?

我也分享一个

spk://store/tools/sendbylan

图片.png

Reply View the author
beavailable
deepin
2022-01-01 00:22
#3
神末shenmo

一个python工具?

我也分享一个

spk://store/tools/sendbylan

图片.png

你这个适合不用终端的用户,我的脚本在终端里用起来更方便。

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-01-01 00:38
#4
It has been deleted!