semvec/pypi-packages huggingface dataset:
xmq-python 0.0.13
mq的python封装包
Requires Python: >=3.6

## Message Queue Client for Python

### 生成安装包
参考 https://packaging.python.org/tutorials/packaging-projects/

- 升级安装必要工具

```python
python3 -m pip install --upgrade build
python3 -m pip install --user --upgrade twine
```

- 生成安装包

```python
python3 -m build
```

- 上传安装包

```python
python3 -m twine upload --repository-url https://<私有镜像地址> dist/*
```

默认上传到 https://pypi.org

```python
python3 -m twine upload  dist/*
```

### 使用安装包

- install

```python
pip3 install xmq-python
```

- 发送消息

```python
from xmq_python.producer import Producer
producer = Producer(mq_type='AMQO', host='', port=0, access_key='', access_secret='', timeout=None, max_message_size=None, username='', password='', virtual_host='', instance_id='')
producer.start()
producer.Publish('order','demand',{"id":123, "name": "neil"})
producer.stop()

```

- 接收消息

```python

from xmq_python.consumer import Consumer
import time
def callback(message):
    print("Got message: ", message)
    return True
consumer = Consumer(mq_type='AMQO', consumer_group_name='', host='', port=0, access_key='', access_secret='', timeout=None, max_message_size='', username='', password='', virtual_host='', instance_id='')
consumer.Register("order","demand",callback)
consumer.start()
time.sleep(100)
consumer.stop()
```
g711 1.6.5
A small library for A-Law and u-Law audio coding
Requires Python: >=3.6

G711 A-Law / u-Law audio-coding library
=======================================

The library is written as an extension for python3 and allows to work simply with G711 encoded audio.

# Requirements
1. Python 3.5+
2. Numpy (will be installed anyway before the building procedure)
3. Tools for building C/C++ applications (GCC/Clang/VS build tools)

# Implementation details
The library is written in pure C and relies exclusively on a python build system. I tried to minimize the use of any platform-dependend functions to provide a truly cross-platform and fast library.

# Installation
Source distribution is uploaded to PyPI, so just invoke `pip install g711`. Equivalently, you can clone code from https://github.com/stolpa4/g711 and then run `pip install <path to cloned repo>`.

# Functions
- `load_alaw(path: Union[str, os.PathLike]) -> numpy.ndarray(dtype=numpy.float32)` - Opens a file, loads its contents and decodes it from A-Law to float32 numpy array.
- `load_ulaw(path: Union[str, os.PathLike]) -> numpy.ndarray(dtype=numpy.float32)` - Same for u-Law.
- `save_alaw(path: Union[str, os.PathLike], audio_data: numpy.ndarray(dtype=numpy.float32)) -> bool` - Encodes an array to A-Law and writes bytes to a specified file. audio_data can be anything convertible to numpy.ndarray(dtype=numpy.float32).
- `save_ulaw(path: Union[str, os.PathLike], audio_data: numpy.ndarray(dtype=numpy.float32)) -> bool` - Same for u-Law.
- `decode_alaw(encoded_bts: bytes) -> numpy.ndarray(dtype=numpy.float32)` - Decodes raw A-Law bytes to float32 audio.
- `decode_ulaw(encoded_bts: bytes) -> numpy.ndarray(dtype=numpy.float32)` - Same for u-Law.
- `encode_alaw(audio_data: numpy.ndarray(dtype=numpy.float32)) -> bytes` - Encodes an array to A-Law and returns bytes object. audio_data can be anything convertible to numpy.ndarray(dtype=numpy.float32).
- `encode_ulaw(audio_data: numpy.ndarray(dtype=numpy.float32)) -> bytes` - Same for u-Law.
calculatepi-pkg-Ramen-Nood1ez 0.0.11
A program that calculates pi
Requires Python: >=3.6

[![Create Archive](https://github.com/Ramen-Nood1ez/CalculatePi/actions/workflows/create-archive.yml/badge.svg)](https://github.com/Ramen-Nood1ez/CalculatePi/actions/workflows/create-archive.yml)
[![Pylint](https://github.com/Ramen-Nood1ez/CalculatePi/actions/workflows/pylint.yml/badge.svg)](https://github.com/Ramen-Nood1ez/CalculatePi/actions/workflows/pylint.yml)
# Welcome CalculatePi!
## How to use:
1. Download the .zip file
2. Unzip the file
3. Run `python3 calcpi.py`

### How to install using wget:
1. Run `wget https://github.com/Ramen-Nood1ez/CalculatePi/releases/latest/download/calcpi.zip`
2. Unzip `calcpi.zip`
3. Run `python3 calcpi.py`

Run `python3 calcpi.py -h` to find all of the command parameters