Implementation of classes and functions for working with files via tftp.
Project description
uc_tftp
Implementation of classes and functions for working with files via tftp.
It is part of the Unicon project.
Usage:
Install
pip install --user uc-tftp
and use
from uc_tftp import TFTPReceiver
Examples:
as iterator
receiver = TFTPReceiver(timeout=3)
for data in receiver:
print(data)
as function
receiver = TFTPReceiver(timeout=3)
receiver.recvto("/path/to/destination")
with filename
receiver = TFTPReceiver(timeout=3)
receiver.open()
with open(receiver.filename, "w") as file:
for block in receiver:
file.write(block)
Exceptions
May raise exceptions in the following cases:
NoWRQPacket
If the connected client tried to perform a non-WRQ operation (data recording).
NoIncomingConnection
If there were no connections in the allotted time.
ErrorReceived
If error packet was received from client.
UnexpectedOpcode
If an unexpected opcode is received during data transfer.
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
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 uc_tftp-0.0.1.tar.gz.
File metadata
- Download URL: uc_tftp-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8495e4b748274f2162f42ad59d966403b1c583271358a5f26127b555e5e9a64
|
|
| MD5 |
07f3b2f2a8d7641a74dec1ec635da486
|
|
| BLAKE2b-256 |
caf2da6c4779d95e7e9893d5f00d253461856a91c20cfe90c93603b94b6a1c3a
|
File details
Details for the file uc_tftp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: uc_tftp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00afe4db18d5a5e7fda86b81f1f2adce0278aa92ae137a6fa68570ff3fe3eefa
|
|
| MD5 |
e55d9405d92349beaa8d3d08b6b23c9c
|
|
| BLAKE2b-256 |
53ebda9a749226803b90b0689312299b884c3a38e5c26df44ebdb4ef5943cae0
|