semvec/pypi-packages huggingface dataset:
flaschenclient 0.1.4
With this python library you can send simple animations to the flaschen taschen server (fork).

flaschenclient
=======
A python library for sending simple animations to the flaschen taschen server (fork). 
Currently it's only working with the forked server which can be found here:
https://github.com/werling/flaschen-taschen

Before using this library please have a look at the original project: https://github.com/hzeller/flaschen-taschen

Some examples how to use the python library can be found in the examples folder.
The test display has the resolution 256x96.

The main features are:

### loading and playing images/gifs
Also defining the width, height, duration and the layer of the image/gif

``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2) ```

<img src="img/1.gif">

### Define the position of the image/gif
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=128-32, y_offset=48-32) ```

<img src="img/2.gif">

### Blur in and/or blur out
``` FlaTaClient.send(im, width=64, height=64, timeout=4, layer=2, x_offset=128-32, y_offset=48-32, blur_out_frames=10)```

<img src="img/3.gif">

### Move image/gif with constant speed
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=0, y_offset=48-32, x_vel=4)```

<img src="img/4.gif">

### Move image/gif with acceleration
``` FLaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=0, y_offset=0, x_vel=12, y_gravity=1)```

<img src="img/5.gif">

### Rotate image/gif with constant or acceleration speed
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=0, y_offset=0, rot_vel=20)```

<img src="img/6.gif">

### Limits, Default mode is stop all motion when a limit is exceeded
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8) ```

<img src="img/7.gif">

### Limits, mode: inverse all motion directions when exceeding a limit
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8, y_vel=2, action_at_limit="inverse_all")```

<img src="img/8.gif">

### Limits, mode: inverse only the motion direction which exceeded a limit
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8, y_vel=2, action_at_limit="inverse_single") ```

<img src="img/9.gif">

### Limits, mode: stop the motion which exceeded a limit
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, y_offset=48-32, x_min=0, x_max=256-64, y_min=0, y_max=96-64, x_vel=8, y_vel=2, action_at_limit="stop_single") ```

<img src="img/10.gif">

### Zooming and Limits
``` FlaTaClient.send(im, width=64, height=64, timeout=10, layer=2, x_offset=128-32, y_offset=48-32, action_at_limit="inverse_all", zoom_vel=2, width_max=128, width_min=8) ```

<img src="img/11.gif">

### Of course you also can do all at once ;)

<img src="img/free_for_all.gif">
pyportscanner 0.3.2
Port Scanner for Python3+

# Python Port Scanner v0.3

[![Build Status](https://travis-ci.com/YaokaiYang-assaultmaster/py3PortScanner.svg?branch=master)](https://travis-ci.com/YaokaiYang-assaultmaster/py3PortScanner)

An easy to use Python3 package that could perform port scanning conveniently.

An output example is showed as following:  
![Output Example](https://github.com/YaokaiYang-assaultmaster/py3PortScanner/blob/master/ExampleGraph/portscanner_output_new.png)

## Installation  
### Install with pip  
```
pip install pyportscanner
```

### Install with setup scripts  
1. Clone or download this repository.
2. Install the package using `python setup.py install`.   
3. Voilà! You are ready to go!

## QuickStart
1. Add `from pyportscanner import pyscanner` to the beginning of your code.
2. Initialize a new PortScanner object using `scanner = pyscanner.PortScanner(target_ports=100, timeout=10, verbose=True)`.
3. Then call `scanner.scan(objective)` to perform a port scan to a specific target.
The target could either be an IPv4 address or a host name.
4. __Note that the total scan time for a target website is highly related to the timeout value set for the Scanner object. Thus for the seek of efficiency, the timeout should not be too long.__

## Documentation 
### _class pyportscanner.pyscanner.PortScanner(target_ports=None, thread_limit=100, timeout=10, verbose=False)_
PortScanner is the class provides methods to execute the port scan request. A PortScanner object is needed for performing
the port scan request.  

- _target_ports_ can be a list or int. If this args is a list, then the list of ports specified by it is going to be scanned, 
default to all ports we have in file. If this args is an int, then it specifies the top X number of ports to be scanned based on usage
frequency rank.
- _thread_limit_ is the number of thread being used for scan.  
- _timeout_ is the timeout for the socket to wait for a response.
- _verbose_ specifies whether the results would be print out or not. If `True`, results will be print out. 

### _Functions_  
__PortScanner.scan(objective, message = '')__ 

Scan an objective with the given message included in the packets sent out.  

- _objective_ is the target that is going to be scanned. It could be an IPv4 address or a hostname.  
- _message_ is the message that is going to be included in the scanning packets sent out. If not provided, no message will be included in the packets.    

An example usage case is showed in [_examples/PortScanExample.py_](https://github.com/YaokaiYang-assaultmaster/py3PortScanner/blob/master/examples/PortScanExample.py).  

### Unit Test

In order to run unit test, execute the following command under the root directory.

```Python
pytest --cov pyportscanner/ tests/
``` 

## [Change logs](https://github.com/YaokaiYang-assaultmaster/py3PortScanner/blob/master/CHANGELOG.md)