Skip to main content

uc_tftp

Implementation of classes and functions for working with files via tftp.

It is part of the Unicon project.

https://unicon.10k.me

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.

Release files for uc-tftp 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uc-tftp 0.0.1
File Size Uploaded
uc_tftp-0.0.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uc-tftp 0.0.1
File Interpreter ABI Platform
uc_tftp-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / uc_tftp-0.0.1.tar.gz

Download URL uc_tftp-0.0.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b8495e4b748274f2162f42ad59d966403b1c583271358a5f26127b555e5e9a64
BLAKE2b-256 checksum
How to use checksums
caf2da6c4779d95e7e9893d5f00d253461856a91c20cfe90c93603b94b6a1c3a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / uc_tftp-0.0.1-py3-none-any.whl

Download URL uc_tftp-0.0.1-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00afe4db18d5a5e7fda86b81f1f2adce0278aa92ae137a6fa68570ff3fe3eefa
BLAKE2b-256 checksum
How to use checksums
53ebda9a749226803b90b0689312299b884c3a38e5c26df44ebdb4ef5943cae0
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page