semvec/pypi-packages huggingface dataset:
libimagequant2 2.14.3
Unofficial Python bindings for libimagequant
Requires Python: >=2.7

Unofficial libimagequant Python Bindings
========================================

[![Documentation](https://img.shields.io/badge/documentation-Read%20the%20Docs-brightgreen.svg?logo=read%20the%20docs&logoColor=white)](http://libimagequant-python.readthedocs.io/)
[![PyPI](https://img.shields.io/pypi/v/libimagequant.svg?logo=python&logoColor=white)](https://pypi.org/project/libimagequant/)
[![License: GNU GPL 3.0](https://img.shields.io/github/license/RoadrunnerWMC/libimagequant-python.svg?logo=gnu&logoColor=white)](https://www.gnu.org/licenses/gpl-3.0)

This repository is the home of the unofficial Python bindings for
[libimagequant](https://pngquant.org/lib/).

Full documentation, including setup and usage instructions, is available on
[Read the Docs](http://libimagequant-python.readthedocs.io/).


License
-------

Licensed under the GNU GPL v3. See the `LICENSE` file for the full license
text.
Super-PySelenium 0.0.5
二次封装 Selenium，并且搭载各种文本、csv、xlsx、本地文件等操作。

# Super PySelenium

## 介绍
二次封装 Selenium，并且搭载各种文本、csv、xlsx、本地文件等操作。后期会不断更新新功能。谢谢使用 ~

## 安装教程

1.  pip install Super-PySelenium

## 使用说明

1.  from Super_PyPackage import py_selenium
2.  看源码。

## 与作者互动

* **Email**：yelang97@qq.com
* **pypi地址**：https://pypi.org/project/Super-PySelenium/
* **了解作者更多，请查看csdn博客**：https://blog.csdn.net/weixin_42038955
* **gitee地址**：https://gitee.com/xiaoye_01/super-py-selenium
* **您的使用，是我最大的动力，支持开源。**
omq 0.5.5
A package wrap NNG
Requires Python: >=3.6

# omq

Omq is a IPC that uses [Nanomsg](https://nanomsg.org/) under the hood. It likes MQTT in some degree.

### Concept
nanomsg is a socket library that provides several common communication patterns. It aims to make the networking layer fast, scalable, and easy to use. Implemented in C, it works on a wide range of operating systems with no further dependencies. But its sub-pub mode is not very good for us to use. So, omq bornd. Through omq, you can easily publish and subscribe message like MQTT.

## Installation
```
pip install git+https://cloud.orca-tech.cn:9091/rty813/omq.git
```

Omq requires python 3.6+ and CMake 3.13+

## Usage
### Bus
![](https://cloud.orca-tech.cn:9091/rty813/omq/-/raw/0739c2bbfea64253669ca9b03fd065feb1410524/assets/bus.png)
```python
# node1.py
import omq

with omq.Bus() as node:
    node.publish('test', 'hello world')
```


```python
# node2.py
import omq

def on_message(topic, payload):
    print(f'{topic} - {payload}')

with omq.Bus() as node:
    node.on_message = on_message
    node.subscribe(['test', 'test/#'])
    node.loop_forever()
```

---
### REQ/REP
![](https://cloud.orca-tech.cn:9091/rty813/omq/-/raw/0739c2bbfea64253669ca9b03fd065feb1410524/assets/req-rep.png)
```python
# rep.py
import omq

def handler(topic, payload):
    print(topic, payload)
    # Handle data...
    return 'ok'

with omq.Rep(omq.Addr.MAIN, handler) as node:
    node.loop_forever()
```

```python
# req.py
import omq

res = omq.req(omq.Addr.MAIN, 'test', 'req data')
print(res)  # ok
```

---
### Supernode/Slavenode
![](https://cloud.orca-tech.cn:9091/rty813/omq/-/raw/0739c2bbfea64253669ca9b03fd065feb1410524/assets/super-slave.png)
```python
# Supernode.py
import omq

count = 0
node = omq.SuperNode()

def on_message(slave_id, payload):
    global count
    count += 1
    if count % 3 == 0:
        print(f'send: {slave_id}')
        node.publish(slave_id, 'Recv')

    print(f'recv: {slave_id} - {payload}')

node.on_message = on_message
node.loop_forever()
```

```python
# Slave.py
import omq
import time

node = omq.SlaveNode('node1', '127.0.0.1')

def on_message(payload):
    print('recv: ' + payload)

node.on_message = on_message

node.loop_start()

while True:
    try:
        node.publish({'a': time.time(), 'b': 2})
        time.sleep(1)
    except:
        node.close()
        break
```