pyimagecuda 0.0.8__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.2
2
+ Name: pyimagecuda
3
+ Version: 0.0.8
4
+ Summary: GPU-accelerated image processing library for Python
5
+ Author: Beltrán Offerrall
6
+ Requires-Python: >=3.10
7
+ Requires-Dist: pyvips[binary]
8
+ Description-Content-Type: text/markdown
9
+
10
+ # PyImageCUDA 0.0.8
11
+
12
+ [![PyPI version](https://img.shields.io/pypi/v/pyimagecuda.svg)](https://pypi.org/project/pyimagecuda/)
13
+ [![Build Status](https://github.com/offerrall/pyimagecuda/actions/workflows/build.yml/badge.svg)](https://github.com/offerrall/pyimagecuda/actions)
14
+ ![Python](https://img.shields.io/badge/python-3.10%20|%203.11%20|%203.12%20|%203.13-blue)
15
+ ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux-brightgreen)
16
+ ![Tests](https://img.shields.io/badge/tests-85%20passed-brightgreen)
17
+ [![NVIDIA](https://img.shields.io/badge/NVIDIA-CUDA-76B900?style=flat&logo=nvidia&logoColor=white)](https://developer.nvidia.com/cuda-zone)
18
+
19
+ **GPU-accelerated image compositing for Python.**
20
+
21
+ > PyImageCUDA is built for image composition, not computer vision. It provides GPU tools to create, modify, and blend images, rather than analyze or recognize objects within them.
22
+
23
+ ## Quick Example
24
+
25
+ <img src="https://offerrall.github.io/pyimagecuda/images/quick.png" alt="Demo" width="400">
26
+
27
+ ```python
28
+ from pyimagecuda import Image, Fill, Effect, Blend, Transform, save
29
+
30
+ with Image(1024, 1024) as bg:
31
+ Fill.color(bg, (0, 1, 0.8, 1))
32
+ with Image(512, 512) as card:
33
+ Fill.gradient(card, (1, 0, 0, 1), (0, 0, 1, 1), 'radial')
34
+ Effect.rounded_corners(card, 50)
35
+
36
+ with Effect.stroke(card, 10, (1, 1, 1, 1)) as stroked:
37
+ with Effect.drop_shadow(stroked, blur=50, color=(0, 0, 0, 1)) as shadowed:
38
+ with Transform.rotate(shadowed, 45) as rotated:
39
+ Blend.normal(bg, rotated, anchor='center')
40
+
41
+ save(bg, 'output.png')
42
+ ```
43
+
44
+ ## Key Features
45
+
46
+ * ✅ **Zero Dependencies:** No CUDA Toolkit, Visual Studio, or complex compilers needed. Is Plug & Play on both Windows and Linux.
47
+ * ✅ **Ultra-lightweight:** library weighs **~1 MB**.
48
+ * ✅ **Studio Quality:** 32-bit floating-point precision (float32) to prevent color banding.
49
+ * ✅ **Advanced Memory Control:** Reuse GPU buffers across operations and resize without reallocation—critical for video processing and batch workflows.
50
+ * ✅ **API Simplicity:** Intuitive, Pythonic API designed for ease of use.
51
+
52
+ ## Use Cases
53
+
54
+ * **Generative Art:** Create thousands of unique variations in seconds.
55
+ * **Motion Graphics:** Process video frames or generate effects in real-time.
56
+ * **Image Compositing:** Complex multi-layer designs with GPU-accelerated effects.
57
+ * **Game Development:** Procedural UI assets, icons, and sprite generation.
58
+ * **Marketing Automation:** Mass-produce personalized graphics from templates.
59
+ * **Data Augmentation:** High-speed batch transformations for ML datasets.
60
+
61
+ ## Installation
62
+ ```bash
63
+ pip install pyimagecuda
64
+ ```
65
+
66
+ **Note:** `pyvips` is the only mandatory dependency (installed automatically). It is used strictly for robust file I/O (JPG, PNG, WEBP...) and high-quality Text rendering on the CPU.
67
+
68
+ ## Documentation
69
+
70
+ **⚠️ Alpha Release:** Many more features are planned and under development. If you have specific needs or bug reports, please open an issue on GitHub.
71
+
72
+ ### Core Concepts
73
+ * [Getting Started Guide](https://offerrall.github.io/pyimagecuda/)
74
+ * [Image & Memory](https://offerrall.github.io/pyimagecuda/image/) (Buffer management)
75
+ * [IO](https://offerrall.github.io/pyimagecuda/io/) (Loading and Saving)
76
+
77
+ ### Operations
78
+ * [Fill](https://offerrall.github.io/pyimagecuda/fill/) (Solid colors, Gradients, Checkerboard, Grid, Stripes, Dots, Circle, Ngon, Noise, Perlin)
79
+ * [Text](https://offerrall.github.io/pyimagecuda/text/) (Rich typography, system fonts, HTML-like markup, letter spacing...)
80
+ * [Blend](https://offerrall.github.io/pyimagecuda/blend/) (Normal, Multiply, Screen, Add, Overlay, Soft Light, Hard Light, Mask)
81
+ * [Resize](https://offerrall.github.io/pyimagecuda/resize/) (Nearest, Bilinear, Bicubic, Lanczos)
82
+ * [Adjust](https://offerrall.github.io/pyimagecuda/adjust/) (Brightness, Contrast, Saturation, Gamma, Opacity)
83
+ * [Transform](https://offerrall.github.io/pyimagecuda/transform/) (Flip, Rotate, Crop)
84
+ * [Filter](https://offerrall.github.io/pyimagecuda/filter/) (Gaussian Blur, Sharpen, Sepia, Invert, Threshold, Solarize, Sobel, Emboss)
85
+ * [Effect](https://offerrall.github.io/pyimagecuda/effect/) (Drop Shadow, Rounded Corners, Stroke, Vignette)
86
+
87
+ ## Performance
88
+
89
+ PyImageCUDA shows significant speedups for GPU-friendly operations like blending, filtering, and transformations. Performance varies by operation complexity and workflow:
90
+
91
+ - Complex operations (blur, blend, rotate) see **10-260x improvements**
92
+ - Simple operations (flip, crop) see **3-20x improvements**
93
+ - Real-world pipelines with file I/O typically see **1.5-2.5x speedups**
94
+
95
+ Results depend on your hardware, batch size, and whether you reuse GPU buffers.
96
+
97
+ **[→ View Detailed Benchmarks](https://offerrall.github.io/pyimagecuda/benchmarks/)**
98
+
99
+ ## Requirements
100
+
101
+ * **OS:**
102
+ - Windows 10 or 11 (64-bit).
103
+ - Linux: Any modern distribution (Ubuntu, Fedora, Debian, Arch, WSL2, etc.).
104
+ * **GPU:** NVIDIA GPU (Maxwell architecture / GTX 900 series or newer).
105
+ * **Drivers:** Standard NVIDIA Drivers installed.
106
+
107
+ **NOT REQUIRED:** Visual Studio, CUDA Toolkit, or Conda.
108
+
109
+ ## Linux Compatibility & Troubleshooting
110
+
111
+ PyImageCUDA is currently tested primarily on **Ubuntu LTS** releases with up-to-date NVIDIA drivers.
112
+
113
+ If you encounter the following error on Linux:
114
+
115
+ ```text
116
+ RuntimeError: Kernel launch failed: the provided PTX was compiled with an unsupported toolchain.
117
+ ```
118
+
119
+ Solution: This indicates your installed NVIDIA drivers are too old to execute the kernels included in the library. Please update your NVIDIA drivers to the latest version available for your distribution (Proprietary drivers recommended).
120
+
121
+ We are actively investigating ways to broaden compatibility for older drivers and legacy Linux distributions in future releases.
122
+
123
+ ## Tests
124
+ ```bash
125
+ pytest tests/tests.py
126
+ ```
127
+
128
+ ## Contributing
129
+ Contributions welcome! Open issues or submit PRs
130
+
131
+ ## License
132
+ MIT License. See [LICENSE](LICENSE) for details.
@@ -0,0 +1,17 @@
1
+ pyimagecuda/__init__.py,sha256=4duktD0TUqTayWWg39PuCQgr6xPbwxSJ6cQyFx65QJg,2166
2
+ pyimagecuda/adjust.py,sha256=xGSgifVWaFkaXyL718PUcYqwtZJAlnvMHNLQHiUS40M,3231
3
+ pyimagecuda/blend.py,sha256=sPupoAh9Mnz16dAsv6C3ynZvDHmV-0MR-A32KpEcE6Q,9132
4
+ pyimagecuda/effect.py,sha256=KBmDNitsl3qxfuRPT075UAsRF5mSXI25aFTb06JZ1WQ,6231
5
+ pyimagecuda/fill.py,sha256=7ybr-wkyr5_ziLL_6bvrLAW_Ixe1nMz36Lrj6jJAiOI,8934
6
+ pyimagecuda/filter.py,sha256=MK6iDQ-tajbx1bgC8hvhrSFusAFfoymaQRDQEkwNWsU,6601
7
+ pyimagecuda/image.py,sha256=VRDHUOF2VClwdj3Q5YSQsmy9lpirwQvbC1P8avE3PdI,2864
8
+ pyimagecuda/io.py,sha256=zNUaljHJe7zGEd01qODXWQiydJ84xA9nlIRKrAoa1ys,8287
9
+ pyimagecuda/pyimagecuda_internal.cp313-win_amd64.pyd,sha256=C9ZX9TYPWJlcFGESBCjaB9IHZgM-O_pNS5pl2P4iNoc,582656
10
+ pyimagecuda/resize.py,sha256=txGYZr3KFmw9pYAbZ7vTnI6NDO-OycoZP6IeMirObcE,3291
11
+ pyimagecuda/text.py,sha256=f3j1mi8ydk6kWiZt4gG7w85YFW--MwrezggpfuQW_tY,3558
12
+ pyimagecuda/transform.py,sha256=cUrvPrNAkOoRDjuuOPdf-QnhZbk8VPMd01WR8IRgh_s,6450
13
+ pyimagecuda/utils.py,sha256=8IZ35y783AVJVuoQmcStPVAyx5WK_PDhkWqLo51PbTo,633
14
+ pyimagecuda-0.0.8.dist-info/METADATA,sha256=ILUUDcKbrj0jMtu1uF87jtRRpAyasv6TNG73p-8JeO4,6189
15
+ pyimagecuda-0.0.8.dist-info/WHEEL,sha256=vkL3wTIkhjZa3RmEXX20hldNp6Q8qtwRjrXW6K5sw_Q,106
16
+ pyimagecuda-0.0.8.dist-info/licenses/LICENSE,sha256=xfNh_pr4FPV8klv9rbs9GFflEfqf7vSFzcXK6BetRN0,1114
17
+ pyimagecuda-0.0.8.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 0.11.6
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64
5
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2011-2025 The Bootstrap Authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.