easobel
SIMD-accelerated Sobel edge detection. 5-12x faster than OpenCV single-threaded.
import easobel
import numpy as np
image = np.random.rand(1080, 1920).astype(np.float32)
edges = easobel.sobel(image) # single-threaded
edges = easobel.sobel_mt(image, num_threads=4) # multi-threaded
Installation
pip install easobel
Pre-built wheels for Linux x86_64, Linux aarch64, and Windows x86_64. No compiler needed.
API
easobel.sobel(image) -> np.ndarray
Single-threaded Sobel edge detection.
- Input: 2D
float32numpy array(height, width), grayscale - Output: 2D
float32array, same shape - Border pixels are zero (Sobel stencil needs 1-pixel border)
- Image must be at least 3x3
easobel.sobel_mt(image, num_threads=None) -> np.ndarray
Multi-threaded Sobel with row-striped parallelism.
- Same input/output as
sobel() num_threadsdefaults toos.cpu_count()- ctypes releases the GIL for true thread parallelism
Algorithm
Computes gradient magnitude using L1 norm: |Gx| + |Gy|.
Sobel kernels:
Gx = [-1 0 1] Gy = [-1 -2 -1]
[-2 0 2] [ 0 0 0]
[-1 0 1] [ 1 2 1]
The SIMD kernel processes 4 pixels per iteration using f32x4 vectors with a scalar tail loop for remaining pixels.
How it works
The Sobel kernel is written in Ea, a SIMD kernel compiler. Pre-compiled shared libraries are shipped in the wheel. Python handles validation and memory management via ctypes.
License
Apache-2.0
Metadata
Release files for easobel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easobel-0.1.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for easobel-0.1.0-py3-none-win_amd64.whl |
| easobel-0.1.0-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for easobel-0.1.0-py3-none-manylinux_2_17_x86_64.whl |
| easobel-0.1.0-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for easobel-0.1.0-py3-none-manylinux_2_17_aarch64.whl |
Total release size: 37.1 kB
Release files / easobel-0.1.0-py3-none-win_amd64.whl
| Download URL | easobel-0.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bb72257cfb9ccee47c48a84c531ecf03beef778ab85f7be7513934afaff54920
|
|
BLAKE2b-256 checksum How to use checksums |
4cc861ed6e84d5043a7d51f51b4edd944a8dd2138460ea66415aff2262913cef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logRelease files / easobel-0.1.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | easobel-0.1.0-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
780b53f136e1a175168139f54b6c90a72766799a50ad85c59f7be166412a0136
|
|
BLAKE2b-256 checksum How to use checksums |
af810ba399d4a5f323e5c16c32694c0db10bb09ae355b63984ddb0056116335b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logRelease files / easobel-0.1.0-py3-none-manylinux_2_17_aarch64.whl
| Download URL | easobel-0.1.0-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
24aabe08aa8b3a99db16f4a39f7887ef8cb4757cb14ecfe8f50067d121c6bd57
|
|
BLAKE2b-256 checksum How to use checksums |
99259feed5136e8108d1afcb2aa5e1b180e1882c976c4bbaca9eee636aca23e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logSecurity for easobel 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 3 files in this release have been uploaded with provenance metadata.
Attestation for easobel-0.1.0-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.