Reliable filetransfer over UDP
Project description
UDP Filetransfer
Fast file transfer over UDP Broadcast.
Install (CLI)
From PyPI
pip install udp-filetransfer
From Git
git clone https://gitlab.com/Trickster-Animations/udp-filetransfer.git
cd udp-filetransfer
poetry || pip install poetry
poetry install
Now, you can use it through poetry:
poetry run python -m udp_filetransfer
To use it from system python, do:
poetry build
cd dist
pip3 install *.whl
Now, you can use it by running:
python3 -m udp_filetransfer
Usage (CLI)
To send a file:
python3 -m udp_filetransfer send [filepath]
To receive a file:
python3 -m udp_filetransfer receive
Note: The receiver has to be started first.
Install (Dependency)
Just add the udp-filetransfer
package, like with any other dependency.
Usage (Dependency)
# receive.py
import udp_filetransfer
output = udp_filetransfer.receive()
print(output)
# send.py
from sys import argv
import udp_filetransfer
udp_filetransfer.send(argv[1])
Note: Just like with CLI, the receiver needs to be started first. Otherwise the sender will hang indefinitely.
Credits
Package maintained by Trickster Animations
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
udp-filetransfer-0.2.0.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for udp_filetransfer-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6be2d1150d20494c6a9c200884af0f1376e20073f95c7b9dd61912ae8822f45 |
|
MD5 | a39b20f4fa32f92670e54ab2d958d65a |
|
BLAKE2b-256 | ff4fd5a65b1d0aefdb91b936e0e57d6f5bea201dcaf9b14eeff5dcdcbc35d610 |