Skip to main content

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

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.

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

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

brushcue_cpu-0.1.7-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.9 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

brushcue_cpu-0.1.7-cp311-abi3-macosx_11_0_arm64.whl (5.3 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for brushcue_cpu-0.1.7-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 75f12868b53f6cff1355def7622c68f91c6fa261d9a89cb5e6aeb6e9b5ddd038
MD5 94b57c76b1e4a23085b3f2b1a7c7ff41
BLAKE2b-256 93d6713edb9b065831fa1eb72a4d13dbbbcbfd0916a608b9d5f829b7da208318

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for brushcue_cpu-0.1.7-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c3e364234ea8018427502019b11fc9664a05aae8df9105fd158c07000d8cb2ca
MD5 b4473f61060cfa5467d7775b4a649953
BLAKE2b-256 994207e61c00a1e32495d493e4b28779819612f058419becb061f278e91369b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for brushcue_cpu-0.1.7-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c23e29ef5039688f1a75aa5a92f8ccab9122417aa286cf93fdcfb53483f2a00e
MD5 f17e4fbb272ed59e8fda8b0e9fb51200
BLAKE2b-256 f42b9c5a4ea83f1fc38efc8a99f5288141c641fb3809827a643c408a29d41833

See more details on using hashes here.

Provenance

The following attestation bundles were made for brushcue_cpu-0.1.7-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