semvec/pypi-packages huggingface dataset:
uc-tftp 0.0.1
Implementation of classes and functions for working with files via tftp.
Requires Python: >=2.6, <4

# 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
```sh
pip install --user uc-tftp
```
##### and use

```python
from uc_tftp import TFTPReceiver
```

## Examples:  
**as iterator**  

```python
receiver = TFTPReceiver(timeout=3)  
for data in receiver:  
	print(data)  
```

**as function**  

```python
receiver = TFTPReceiver(timeout=3)  
receiver.recvto("/path/to/destination")  
```

**with filename**

```python
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.
singleton-pattern-decorator 1.0.5
Singleton decorator


# Singleton Pattern Decorator

[![version](https://badge.fury.io/py/singleton-pattern-decorator.svg)](https://pypi.python.org/pypi/singleton-pattern-decorator)

[![codecov](https://codecov.io/gh/jbw/singleton-pattern-decorator/branch/master/graph/badge.svg)](https://codecov.io/gh/jbw/singleton-pattern-decorator)

![Singleton Pattern Decorator](https://github.com/jbw/singleton-pattern-decorator/workflows/Singleton%20Pattern%20Decorator/badge.svg?branch=master)

A singleton pattern decorator for Python.

# License
MIT. For more information, please refer to the accompanying “LICENCE” file.