udp上的可靠文件传输
udp-filetransfer的Python项目详细描述
udp文件传输
通过udp广播快速传输文件。
安装(cli)
来自Pypi
pip install udp-filetransfer
从git
git clone https://gitlab.com/Trickster-Animations/udp-filetransfer.git cd udp-filetransfer poetry || pip install poetry poetry install
现在,您可以通过诗歌使用它:poetry run python -m udp_filetransfer
要从系统python中使用它,请执行以下操作:
poetry build
cd dist
pip3 install *.whl
现在,您可以通过运行:python3 -m udp_filetransfer
用法(cli)
发送文件:
python3 -m udp_filetransfer send [filepath]
接收文件:
python3 -m udp_filetransfer receive
注意:必须先启动接收器。
安装(依赖项)
只需添加udp-filetransfer
包,就像添加任何其他依赖项一样。
用法(依赖项)
# receive.pyimportudp_filetransferoutput=udp_filetransfer.receive()print(output)
# send.pyfromsysimportargvimportudp_filetransferudp_filetransfer.send(argv[1])
注意:与cli一样,接收器需要先启动。
学分
由骗子动画维护的包