Skip to main content

Python bindings for the rawler RAW image processing library

Project description

rawler-py

Python bindings for the rawler Rust crate — high-performance RAW image decoding with NumPy output.

Installation

pip install rawler-py

Usage

import rawler_py
from pathlib import Path

# Use context manager for automatic resource cleanup
with rawler_py.RawImage.open("path_to_raw") as img:
    # Basic Metadata
    print(f"{img.make} {img.model} | {img.width}x{img.height}")
    print(f"Orientation: {img.orientation} | Bits: {img.bps}")
    
    # Sensor Parameters
    print(f"CFA Pattern: {img.cfa_pattern}")
    print(f"White Balance Coeffs: {img.wb_coeffs}")
    print(f"Black Level: {img.blacklevel}") # {'levels': [...], 'width': 6, 'height': 6, 'cpp': 1}
    print(f"White Level: {img.whitelevel}")
    
    # Area definitions
    if img.crop_area:
        print(f"Crop Area: {img.crop_area}") # (x, y, w, h)

    # Get raw sensor data as NumPy arrays
    data = img.raw_data()          # uint16, shape (height, width)
    f32_data = img.raw_data_f32()  # float32
    
    # Automatically apply sensor crop/active area
    cropped = img.cropped_raw_data() 

License

LGPL-2.1 — same as the underlying rawler crate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rawler_py-0.1.2.tar.gz (44.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rawler_py-0.1.2-cp314-cp314-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

rawler_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

rawler_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

rawler_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file rawler_py-0.1.2.tar.gz.

File metadata

  • Download URL: rawler_py-0.1.2.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rawler_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f7b6f6ef22a8f874400aa3b53973af9b15f8e8fb1b25adea526dd805fbf893ca
MD5 099da44d171ac7d3ba8589e86d71bd1b
BLAKE2b-256 9fece8ea62d74c9c980d7d282e9a0550e02b1b4bfbcacaa08e287fdb2ce15766

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawler_py-0.1.2.tar.gz:

Publisher: CI.yml on danylo-kelvich/rawler-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rawler_py-0.1.2-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rawler_py-0.1.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23e989836cf8dcca73c8e739c55c79875459f437a39d94fb6ba3fcfb923637f6
MD5 b76633a1155b45610bbb876f88c6b90a
BLAKE2b-256 0b45245cd6cc98366af8ab066525d45f19954b3ee465f43719a8ae2ff928e354

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawler_py-0.1.2-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: CI.yml on danylo-kelvich/rawler-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rawler_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rawler_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d391a85d05c7dbcb184dbd5f97c6949a65db5c2006f4a1d8e873e752a04301f6
MD5 9152466d66ef286b83bd34df107259c0
BLAKE2b-256 cbaa6a9b59c17b00eeb5ec73aa537092b80af7a8f9212e49f465a60bde9d4511

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawler_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: CI.yml on danylo-kelvich/rawler-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rawler_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rawler_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62de61b77d008dadf47a27365c44207a446acda73809b0e3be3603980b92f082
MD5 4b63d05136e5d0597a6f8d964ab160fa
BLAKE2b-256 8635c07d9177bd0d576f4428cd498aa06c50e956f3c32d00740003aa42babd64

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawler_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: CI.yml on danylo-kelvich/rawler-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rawler_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rawler_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c58ad3e3f9db1b03ae9fa529610b71878953912582cbca5206b9bf822d5f1d28
MD5 3df1754fbb1536c6ec6c7077dc47cef0
BLAKE2b-256 c5c8ea6bb7cd2e5eff4c720f74d85742d4be61345746b4d45a24e7b5baada2d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for rawler_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: CI.yml on danylo-kelvich/rawler-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page