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

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

brushcue-0.2.11-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.9 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

brushcue-0.2.11-cp311-abi3-macosx_11_0_arm64.whl (6.8 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for brushcue-0.2.11-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dca28ade59ddacb0893d0a382b1694f0bdfee437405b57b7342a232b89b358fe
MD5 b2d5a79feb468b229cc6707b9656281a
BLAKE2b-256 f96aae01b03dd178ea93906ebee6eee5627a9ee3706c47949ecd18a66cd83fc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for brushcue-0.2.11-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ba4641f3764257afd32190deee32aebe144e5023c0986f851a686c8dad025aa4
MD5 f6e2382f4b4da3453d257d9525872dac
BLAKE2b-256 28a306e5d8c1899f6f7241f13f3f3287ce9858983c1660aa547ebc692f3b6154

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for brushcue-0.2.11-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f2e1183d5f2cb3cf0022d0e1f0984997467e24a80eb3a65d06f11c43e4eaaad
MD5 28b322856acb19ad021f79d5b50a0a98
BLAKE2b-256 f08127eb48d9fbbca90125dc61bd4aa8c2b41a43ffc89add34a3b04f96de439d

See more details on using hashes here.

Provenance

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