semvec/pypi-packages huggingface dataset:
TSRCNN 0.0.12
TSRCNN_Texture Synthesis with Rotation using CNN package
Requires Python: >=3.8

TSRCNN : Texture Synthesis with Rotation using CNN
We improved the existing CNN texture synthesis technique by rotating the texture image to provide directionality.

How to use :

generateTSR(image, rotateNum=8, outputScale=2, generateRotation = True, resultNameRotate="resultTextureImg", resultSave=False,
            Patch_before_limit=False, Patch_before_scale=120)

param image: 이미지 경로 - 필수 입력 (ex)"절대경로")

param rotateNum: 360도(중심 기준)/n 만큼 회전시켜 총 n 개의 회전 예제 텍스처를 생성 (n=8개)

param outputScale: 결과 이미지 사이즈 얼마나 배로 늘릴것인가 (2배)

param generateRotation: 회전 예제 이미지를 생성할것인가? (True) - False 일 경우 기존 회전 예제 이미지 사용할 것을 대비.

param resultNameRotate: 저장할 결과 이름 ("resultTextureImg"+".png")

param resultSave: 결과를 저장할 것인가? (False)

param Patch_before_limit: 초기 이미지 크기 제한 여부 (Flase) - 가로세로 길이가 모두 제한크기 이상 넘어갈 경우 제한크기로 크기조절

param Patch_before_scale: 초기 이미지 제한 크기 (120픽셀) - 클수록 합성 시간 오래 걸림

return: PIL image - Texture Synthesis result
ripflow 0.3.0
Python package to insert analysis pipelines into data streams
Requires Python: >=3.9,<4.0



# <img src="docs/assets/ripflow_logo_k.svg" width="60"> ripflow Python middle layer analysis framework

## Introduction

ripflow provides a framework to parallelize data analysis tasks in arbitrary data streams.

The package contains the Python classes to build a middle layer application that reads data from various sources and applies arbitrary analysis pipelines onto the data using overlapping worker processes. The processed data is then published via programmable sink connectors.

For more information, see the [documentation](https://soerenjalas.github.io/ripflow/).

## Installation
### with pip
The ripflow package is published as a Python package and can be installed with pip:
```bash
pip install ripflow
```

### with poetry
You can also add ripflow to a project that is managed with poetry:
```bash
poetry add ripflow
```

### from source
To install the package from source, clone the [repository](https://github.com/soerenjalas/ripflow/) and install the package with poetry:
```bash
poetry install
```
simple-websockets 0.1.0
Simple websocket server and client with callback-based API.
Requires Python: >=3.8

# simple-websockets

Simple websocket server and client with callback-based API.

[![PyPI - Version](https://img.shields.io/pypi/v/simple-websockets.svg)](https://pypi.org/project/simple-websockets)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/simple-websockets.svg)](https://pypi.org/project/simple-websockets)

-----

**Table of Contents**

- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

## Installation

```console
pip install simple-websockets
```

## Usage

### Server

Here is a example of websocket echo server:

```python
from simplews import SimpleWSServer

server = SimpleWSServer(host="",
                        port=8765,
                        print_details=True, # Print basic logs
                        print_messages=True) # Print every message received

@server.on_connect
async def on_connect(ws): # called when a client connects
    print(f'Client {ws.remote_address} connected')

@server.on_message
async def on_message(ws, message): # called when a message is received from a client
    await ws.send(message) # send the message back to the client

@server.on_close
async def on_close(ws): # called when a client disconnects
    print(f'Client {ws.remote_address} disconnected')

server.serve() # serve forever
```

### Client

Here is a example of websocket client:

```python
from simplews import SimpleWSClient
client = SimpleWSClient(uri="ws://localhost:8765",
                        print_details=True, # Print basic logs
                        print_messages=True) # Print every message received

@client.on_connect
async def on_connect(ws): # called when the connection is established
    print(f'Connected to {ws.remote_address}')

@client.on_message
async def on_message(ws, message): # called when a message is received
    print(f'Received: {message}')

@client.on_close
async def on_close(ws): # called when the connection is closed
    print(f'Connection to {ws.remote_address} closed')

client.connect() # connect to the server
```

## Tips

- All callbacks are **asynchronous**, so don't forget `async`.
- ws.send() is a coroutine, so don't forget `await`.
- For more information about the `ws` argument, see [WebSocketServerProtocol](https://websockets.readthedocs.io/en/stable/reference/asyncio/server.html#websockets.server.WebSocketServerProtocol) for server and [WebSocketClientProtocol](https://websockets.readthedocs.io/en/stable/reference/asyncio/client.html#websockets.client.WebSocketClientProtocol) for client.
- server.broadcast() is the preferred way to send a message to all connected clients, and it's not a coroutine, so no `await` is needed.

## License

`simple-websockets` is distributed under the terms of the [GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html) license.