semvec/pypi-packages huggingface dataset:
pyspng-seunglab 1.1.2
Fast libspng-based PNG decoder. Fork of pyspng.

[![PyPI version](https://badge.fury.io/py/pyspng-seunglab.svg)](https://badge.fury.io/py/pyspng-seunglab)

**Note:** This is a fork of pyspng which can be found here: https://github.com/nurpax/pyspng/. See below for a list of differences.

**Pyspng** is a small library to for efficiently loading PNG files to numpy arrays.
Pyspng does not offer any image manipulation functionality.

Pyspng was originally written to speed up loading uncompressed (PNG compression level 0),
making the PNG file format more suitable to be used in machine learning datasets.  Pyspng
uses the native [libspng](https://github.com/randy408/libspng) library for fast PNG
decoding.  Synthetic benchmarks indicate pyspng to be roughly 2-3x faster in
loading uncompressed PNGs than the Python Pillow library.

## Scripting Example

```python
import numpy as np
import pyspng
from pyspng import ProgressiveMode

# DECODING
with open('test.png', 'rb') as fin:
    nparr = pyspng.load(fin.read())

# ENCODING
binary = pyspng.encode(
    nparr,
    # Options: NONE (0), PROGRESSIVE (1), INTERLACED (2)
    progressive=ProgressiveMode.PROGRESSIVE, 
    compress_level=6
)
with open('test.png', 'wb') as fout:
    fout.write(binary)
```

## CLI Example

There is a CLI included with this distribution.

```bash
# turn a numpy file into a highly compressed progressive PNG
pyspng example.npy --level 9 --progressive # -> example.png

# create a highly compressed progressive interlaced PNG
pyspng example.npy --level 9 --interlaced # -> example.png

# convert a PNG into a numpy file example.npy
pyspng -d example.png 

# read header
pyspng --header example.png
```

## Installation

```bash
pip install pyspng-seunglab
```

Binary wheels are built for Linux, MacOS, and Windows. This library is intended to be a drop-in replacement for pyspng, so simultaneous installations are not possible. If this is inconvinient, we can adjust this.

## Differences from pyspng

1. Compiles on MacOS
2. Upgrades spng to 0.7.2
3. Fixes a bug for decoding grayscale with alpha
4. Adds an encoder function (new in libspng)
5. Replaces zlib with miniz-2.2.0 for simplicity.
6. Adds CLI for compressing/decompressing npy files.
7. Adds function for examining PNG headers.

## License

pyspng and pyspng-seunglab are provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.
SqliteMQ 0.1
SqliteMQ is a simple Sqlite MQ server:Queue
Requires Python: >=3.9

SqliteMQ is a simple Sqlite3 MQ queue server

## Installation

```bash
pip install -i https://pypi.org/simple SqliteMQ
```

```commandline
pip install --upgrade -i https://pypi.org/simple SqliteMQ
```

## Usage

#### 请参考test目录下test.py文件

## License

[MIT](https://choosealicense.com/licenses/mit/)

### 作者联系方式

1. 作者邮箱：`1169207670@qq.com`
2. Wechat: `1169207670`
showlib 2025.2.1
Research and development libraries developed at the University of Saskatchewan for the SHOW instrument
Requires Python: >=3.11

# showlib

[![Documentation Status](https://readthedocs.org/projects/showlib/badge/?version=latest)](https://showlib.readthedocs.io/en/latest/?badge=latest)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/usask-arg/showlib/main.svg)](https://results.pre-commit.ci/latest/github/usask-arg/showlib/main)

Research and development libraries developed at the University of Saskatchewan for the SHOW instrument

## Installation
The package can be installed through

`pip install showlib`

## Usage
Documentation can be found at  https://showlib.readthedocs.io/

## License
This project is licensed under the MIT license