semvec/pypi-packages huggingface dataset:
socketio-driver 2.0.2
Socket IO Broadcast Driver for Masonite
License: MIT
Keywords: masonite,socket-io,broadcast,masonite-socket-io-broadcast-driver

#### Project description

<p align="center">
    <img src="https://banners.beyondco.de/Masonite%20SocketIO%20Driver.png?theme=light&packageManager=pip+install&packageName=masonite-socketio-driver&pattern=charlieBrown&style=style_2&description=Driver+support+for+SocketIO+in+masonite+4.&md=1&showWatermark=1&fontSize=100px&images=adjustments&widths=50&heights=50">
</p>

<p align="center">
  <img alt="PyPI" src="https://img.shields.io/pypi/v/masonite-socketio-driver">
  <img alt="issues" src="https://img.shields.io/github/issues/yubarajshrestha/masonite-socketio-driver">
  <img src="https://img.shields.io/badge/python-3.7+-blue.svg" alt="Python Version">
  <img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/yubarajshrestha/masonite-socketio-driver">
  <img alt="License" src="https://img.shields.io/github/license/yubarajshrestha/masonite-socketio-driver">
  <a href="https://github.com/yubarajshrestha/masonite-socketio-driver/stargazers"><img alt="star" src="https://img.shields.io/github/stars/yubarajshrestha/masonite-socketio-driver" /></a>
  <img alt="downloads" src="https://img.shields.io/pypi/dm/masonite-socketio-driver?style=flat" />
  <a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
</p>

**What is Minio-Driver?**

It's an extra broadcast driver support for SocketIO in masonite 4, it extends default masonite broadcast driver to support SocketIO.

**Setup**

Install package using pip:

```shell
pip install masonite-socketio-driver
```

Add provider inside config/providers.py.

```python
from socketio_driver.providers import SocketProvider

PROVIDERS = [
    ...,
    # Application Providers
    SocketProvider,
]
```

**Driver Config**
Add following configuration inside config/broadcast.py after `"pusher": {...},`

```python
"pusher": {...},
"socketio": {
    "driver": "socketio",
    "host": env("BROADCAST_HOST", "localhost"),
    "port": env("BROADCAST_PORT", "6379")
},
```

Add following keys in `.env`.

```shell
BROADCAST_HOST=
BROADCAST_PORT=
```

Update the broadcast driver value to `socketio` in `.env`

```shell
BROADCAST_DRIVER=socketio
```

**Example**

```python
from masonite.controllers import Controller
from masonite.broadcasting import Broadcast

class YourController(Controller):

    def your_function(self, broadcast: Broadcast):
        broadcast_data = {
            "message": "Hello World"
        }
        broadcast.channel(["channel-name"], "event-name", broadcast_data)
```
fittytestpypi 1.15
myshortdesc
License: MIT
Requires Python: >=3.9.1
Keywords: fittytestpypi testpypi



![icon](https://raw.githubusercontent.com/)

[![GitHub test workflow](https://img.shields.io/github/workflow/status/)](https://github.com/)
[![GitHub release workflow](https://img.shields.io/github/workflow/status/)](https://github.com/)
[![PyPI](https://img.shields.io/pypi/v/dnfcndishbf)](https://pypi.org/)

**fgdgafsd** drgfndrefjg.

Please refer to the [GitHub repository](https://github.com/) for more information.
embodier 1.0.9
Embodier creates a unique avatar that provide you image as a PNG, JPG, or Base64 string. This package is used to provide an avatar for new users on your application.
License: MIT


# Dynamic Avatar Generator  [[API](https://embodierapi.herokuapp.com)]
This library will help you to generate profile image for newly registered user on your application, like GitHub create profile picture for new users E.g. <br>
 <br>
![75605781 (2)](https://user-images.githubusercontent.com/40172813/125158648-02982e00-e190-11eb-912d-2c55b1051019.png)


## Generated images
![generatedimg](https://user-images.githubusercontent.com/40172813/125158557-9a494c80-e18f-11eb-956a-d49f42a6a6db.png)
![New Project (3)](https://user-images.githubusercontent.com/40172813/125189848-d5af4e00-e257-11eb-8b22-acc3b7b0c0f9.png)


## Usage
```python
import embodier 

# Initialize image generator
obj = embodier.AvatarGenerator()
# To Generate block image
img = obj.BlockAvatar() 
img.show()

# To Generate text image
img = obj.TextAvatar('PP') 
img.show()
```
### Advance 
BlockAvatar generate bit block image<br>
`obj.BlockAvatar(row_columns,pixel_size,background_color)`<br>
`@row_columns` `Integer`, block size of row and columns, default `5`<br>
`@pixel_size` `Integer`, pixel size, default `300`<br>
`@background_color` `String`, background color of blocks in image, default `lightgrey`<br>
`@border` `Boolean`, `True` to add border to image, `False` to without border image, default `True` <br><br>

TextAvatar generate text image<br>
`obj.TextAvatar(text,background_color)`<br>
`@text` `String`, Text to print on image<br>
`@background_color` `String`, background color of image, default `random color`<br><br>


Export options<br>
`img.show()` to open generated image <br>
`img.save('image.png')` to save image with image name <br>
`obj.toBase64(img)` to get Base64 value of generated image <br>