Skip to main content

Python API for the BrushCue media editing platform (CPU-only build).

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_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

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

brushcue_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.6 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

brushcue_cpu-1.2.0a2-cp311-abi3-macosx_11_0_arm64.whl (5.4 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file brushcue_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brushcue_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df510e8f20ecfc5159347fd6507890352ac9ed497f65f2c33527ed683b39f73f
MD5 31234d7d9dccbb9e1984a467d9b4005d
BLAKE2b-256 a476e2ee62bcdf54d2eaaac03355bc467b357ee3ec998ed0d22b5d5ee1d59d24

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: brushcue-cpu-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_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for brushcue_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2adeeb0e4b1edbe480b2e5c0e72e523cad2b40eca167a64136b78369b30b1fd8
MD5 1d52462a036ecdb8d7b0d5c544e67ddc
BLAKE2b-256 f358391f0d1d4d8bd483fa8bb72acb684e717becd5603b30c689e5882fde4919

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue_cpu-1.2.0a2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: brushcue-cpu-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_cpu-1.2.0a2-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brushcue_cpu-1.2.0a2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d23da396730dc575718a9d65565b4669174b6d6c6be845c1940b8bf2da0fc93
MD5 27618ec7dfb13f04323bab3b391be636
BLAKE2b-256 628b81861cf47a7aab93f93e6c00de8bd116e9cb65c0c96eae95a58fdfb7970b

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue_cpu-1.2.0a2-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: brushcue-cpu-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