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-0.1.8-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.9 MB view details)

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

brushcue-0.1.8-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.8 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

brushcue-0.1.8-cp311-abi3-macosx_11_0_arm64.whl (6.7 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for brushcue-0.1.8-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1c26e017dc897c46eae4544ff4c7fe126be8ef6aa0d530cc24b74e4b94b7470d
MD5 f9b0064b76435a0bbdef82479ce19fa1
BLAKE2b-256 9bbe5b1a6ae490c8f4a0719982ff81fa60090084d3c5e18ba6aef2ff6640b389

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue-0.1.8-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-0.1.8-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for brushcue-0.1.8-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7aa8e899638595b7d427e80ad5a9c0be1beab482f2f03b87b272ab016a570364
MD5 4211feac981be754c7615ccf84b5c7f6
BLAKE2b-256 f1ba995e0e4fa4d2738f78128189a1cf626bd18c8f4451f14667bb2cbf935276

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue-0.1.8-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-0.1.8-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brushcue-0.1.8-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea25f6a8b432242616603b5d20e1714fa91be43e7d1404bb5c1313740dcec15b
MD5 8864cc2b19caad1ede38cfa8d1a197a1
BLAKE2b-256 a216f89bf9582db463dfb16fc9f17ac1708572988a44d4479a4dd8c240215299

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue-0.1.8-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