Metadata-Version: 2.1
Name: prpy
Version: 0.2.3
Summary: Collection of Python utils for signal, image, and video processing
Author-email: Philipp Rouast <philipp@rouast.com>
License: MIT License
Project-URL: Repository, https://github.com/prouast/prpy.git
Project-URL: Issues, https://github.com/prouast/prpy/issues
Keywords: python,numpy,ffmpeg,tensorflow,torch
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: ffmpeg
Requires-Dist: ffmpeg-python; extra == "ffmpeg"
Requires-Dist: numpy; extra == "ffmpeg"
Provides-Extra: numpy
Requires-Dist: numpy; extra == "numpy"
Requires-Dist: scipy; extra == "numpy"
Requires-Dist: Pillow; extra == "numpy"
Requires-Dist: opencv-python; extra == "numpy"
Requires-Dist: scikit-learn; extra == "numpy"
Provides-Extra: numpy-min
Requires-Dist: numpy; extra == "numpy-min"
Requires-Dist: scipy; extra == "numpy-min"
Requires-Dist: Pillow; extra == "numpy-min"
Provides-Extra: tensorflow
Requires-Dist: tensorflow==2.12.1; extra == "tensorflow"
Requires-Dist: numpy; extra == "tensorflow"
Provides-Extra: torch
Requires-Dist: torch==2.1.0; extra == "torch"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: flake8; extra == "test"

[![Tests](https://github.com/prouast/prpy/actions/workflows/main.yml/badge.svg)](https://github.com/prouast/prpy/actions/workflows/main.yml)

# prpy

A collection of Python utilities for signal, image, and video processing.
It contains subpackages for working with `numpy`, `ffmpeg`, `tensorflow`, and `torch`.

## Installation

General prerequisites are `python>=3.8` and `ffmpeg` installed and accessible via the `$PATH` environment variable.

To install `prpy` and its dependencies:

```
git clone https://github.com/prouast/prpy.git
pip install "./prpy[ffmpeg,numpy,tensorflow,torch,test]"
```

The above runs a full install of all dependencies.
It is possible to customize the install of the dependencies by only listing the desired subpackages out of `ffmpeg`, `numpy`, `tensorflow`, `torch`, and `test` in the square brackets above.

## Linting and tests

To lint and run tests:

```
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
pytest
```

## Build

To build:

```
python -m build
```
