Metadata-Version: 2.1
Name: npeg
Version: 0.0.1
Summary: Small and blazingly fast python library for image processing.
License: GPLv3
Keywords: img,avx,opencl,cuda,processing,computation
Author: NeoTheBestDeveloper
Author-email: kiankasey91n@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: GPU
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown

# Warning: project is unstable now.


# Npeg 
It is a small and blazingly fast python library for image processing.

Why is it fast?

- Npeg core written on C.
- Npeg support cpu hardware acceleration, for example, avx. (In the process)
- Npeg support gpu gardware acceleration, for example, cuda, opencl. (In the future)

## Supported formats

- PNG (In the future)
- JPG (In the future)
- WEBP (In the future)
- TIFF (In the future)
- PBM
- PGM (In the future)
- PPM (In the future)
- PPA (In the future)

## Examples
```python 
from npeg import img_read, Interpolation

# img rotation.
with img_read('cats.pbm') as img:
    img.rotate(10)
    img.rotate(-10, Interpolation.INTER_LINEAR)
    img.save('rotated_cat.pbm')

# Or you can read file manually.

img = img_read('dogs.pbm')
img.save('dods_cipy.bpm') # Kind of img copying.
img.close()
```

## Installation

```bash
$ pip install npeg
```

## Installation from source

Dependencies:
- poetry 
- meson
```bash
$ git clone https://github.com/neothebestdeveloper/npeg
$ poetry run build_pkg
$ pip install "dist/npeg-0.0.1-py3-none-any.whl"
```

