Skip to main content

Python API for the BrushCue media editing platform.

Project description

Brushcue

PyPI - Version

Brushcue is a GPU-accelerated image editing library for Python. Every operation is a composable graph node — adjust color and tone, apply filters and blurs, composite images with a full set of blend modes, transform and crop, run ML-powered segmentation, or write custom GPU shaders. Chain nodes together and call .execute() once to run the whole pipeline.

Examples of things you can make

Install

pip install brushcue

If a GPU is not available on your system, a CPU-only build is also available. We recommend trying the standard brushcue package first — on many Linux environments, GPU emulation is supported and it will work without a physical GPU. If that is not an option, the CPU build can be used, though certain operations may fail without GPU support.

pip install brushcue-cpu

Documentation

The full documentation is available here.

Quickstart

import brushcue

ctx = brushcue.Context()

image = brushcue.load_composition("photo.png")
grayscale = brushcue.composition_grayscale(image)

result = grayscale.execute(ctx)
output_bytes = result.as_composition().to_image_bytes(ctx)

with open("output.png", "wb") as f:
    f.write(bytes(output_bytes))

Examples

All the BrushCue tools are available as examples to learn how to use our API.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

brushcue-1.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

brushcue-1.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

brushcue-1.0.2-cp311-abi3-macosx_11_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file brushcue-1.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brushcue-1.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8e436b1d753ffecda76610911ed6531cff52ad6c98fa9a8f68b63b07c981b14
MD5 933ad92efb9a25dc7b4bc3c44831a932
BLAKE2b-256 29b3145e8a45002a91d5a3f6e02a1592f0927236e5a8c9ac062d47b285be1661

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue-1.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: brushcue-publish.yml on ditotechnologies/monorepo

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

File details

Details for the file brushcue-1.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for brushcue-1.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f6df16dfeac0f90464721a84be4c183b39cdf6c5cf82370a561e6b8e968e49d
MD5 0cde02357f9edfe84a22533a719da561
BLAKE2b-256 c5275a6f9187f81465e9ff7697c9c45e542fa60691cca29683c5ff914c642698

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue-1.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: brushcue-publish.yml on ditotechnologies/monorepo

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

File details

Details for the file brushcue-1.0.2-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brushcue-1.0.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebae7ea0f822616a4a61fac17c7fa548c52c159a82c7b35ad4329e06a312f305
MD5 d4c45db3cfc8c7bda10561af6af7a127
BLAKE2b-256 a3d57265ed5d5db1e8d4fa5098f3cf601c90e8f4e0e8c8516d0d74aba8a09183

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue-1.0.2-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: brushcue-publish.yml on ditotechnologies/monorepo

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