Python API for the BrushCue media editing platform.
Project description
Brushcue
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.
- Add Frame
- Blue Channel
- Box Blur
- Brightness Adjust
- Brightness Contrast Adjust
- Camera Moving Distortion
- Chroma Offset
- Coachella Aesthetic
- Color Invert
- Color Rectangle
- Color Threshold
- Convert To BT 709
- Convert To Display P3
- Convert To sRGB
- Exposure Adjust
- Film Grain
- Film Noir
- Gaussian Blur
- Grayscale
- Green Channel
- Halftone
- High Contrast Grayscale
- Horizontal Mirror
- Kaleidoscope
- Kelvin Tuner
- Lightness Threshold
- Linear Transform
- Liquify
- Median Filter
- Oval
- Pixelate
- Red Channel
- RGB Color Mix Aesthetic
- RGB Color Shift
- Rose Tint
- Rotate 180
- Rotate 90 Clockwise
- Rotate 90 Counter Clockwise
- Saturation Adjust
- Scale By Factor
- Sepia
- Shadow Tint
- Shredder
- Sobel Edge Detection
- Sparkle Vignette
- Swirl
- Vertical Mirror
- Vibrancy
- Vignette
- Warmth Adjust
- Zoom Blur
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brushcue-0.1.6-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: brushcue-0.1.6-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e558007510e64435c81d6f65ec21152b08b16f2ad0dbcb2a3d3c2a07ec21f7c3
|
|
| MD5 |
3c5b212805c8abd7475e35fb47f7584d
|
|
| BLAKE2b-256 |
04a87b37402b29c4e3f270d4a04b1cb3979cc6c74ac34c245aba31ec3b63c626
|
Provenance
The following attestation bundles were made for brushcue-0.1.6-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
brushcue-publish.yml on ditotechnologies/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brushcue-0.1.6-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
e558007510e64435c81d6f65ec21152b08b16f2ad0dbcb2a3d3c2a07ec21f7c3 - Sigstore transparency entry: 1395843387
- Sigstore integration time:
-
Permalink:
ditotechnologies/monorepo@9d8368ffb508d92836fa589b483c96ec57b2f3a0 -
Branch / Tag:
refs/tags/brushcue-v0.1.6 - Owner: https://github.com/ditotechnologies
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
brushcue-publish.yml@9d8368ffb508d92836fa589b483c96ec57b2f3a0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file brushcue-0.1.6-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: brushcue-0.1.6-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcb593653aee648508b3a38290b97a8d5fc9d60be272ff7bdbeab3330c4ec142
|
|
| MD5 |
71d2192fe65e08cb6d9fdaa6410f0219
|
|
| BLAKE2b-256 |
d21bbbd47e925e626b8345b632b6ee2f6049eb89fa749cd56322971fe104a6ed
|
Provenance
The following attestation bundles were made for brushcue-0.1.6-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
brushcue-publish.yml on ditotechnologies/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brushcue-0.1.6-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
bcb593653aee648508b3a38290b97a8d5fc9d60be272ff7bdbeab3330c4ec142 - Sigstore transparency entry: 1395843375
- Sigstore integration time:
-
Permalink:
ditotechnologies/monorepo@9d8368ffb508d92836fa589b483c96ec57b2f3a0 -
Branch / Tag:
refs/tags/brushcue-v0.1.6 - Owner: https://github.com/ditotechnologies
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
brushcue-publish.yml@9d8368ffb508d92836fa589b483c96ec57b2f3a0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file brushcue-0.1.6-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: brushcue-0.1.6-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe9dbe176e62531d45da94c4ed12afdf85cc140fd9d5d0871fce00f8983b661c
|
|
| MD5 |
b20956f9242f0923e7ea89aaf64ff19a
|
|
| BLAKE2b-256 |
95b73e068a700c3eef91ac2f044f2561ef11fb91fc40c5bcec4c32ea23c952fe
|
Provenance
The following attestation bundles were made for brushcue-0.1.6-cp311-abi3-macosx_11_0_arm64.whl:
Publisher:
brushcue-publish.yml on ditotechnologies/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brushcue-0.1.6-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
fe9dbe176e62531d45da94c4ed12afdf85cc140fd9d5d0871fce00f8983b661c - Sigstore transparency entry: 1395843401
- Sigstore integration time:
-
Permalink:
ditotechnologies/monorepo@9d8368ffb508d92836fa589b483c96ec57b2f3a0 -
Branch / Tag:
refs/tags/brushcue-v0.1.6 - Owner: https://github.com/ditotechnologies
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
brushcue-publish.yml@9d8368ffb508d92836fa589b483c96ec57b2f3a0 -
Trigger Event:
push
-
Statement type: