Skip to main content

laidline-diffusers

attach(pipe, marker) marks every image a diffusers pipeline returns (TrustMark watermark, C2PA manifest, evidence entry), exactly once per image, and replaces SDXL's artifact-prone invisible watermarker. detach(pipe) undoes it.

from laidline import Marker
from laidline_diffusers import attach

pipe = attach(pipe, Marker.from_config("laidline.yaml"))
out = pipe(prompt="a lighthouse at dusk")
out.assets[0].save("lighthouse.png")   # the signed file: watermark and C2PA manifest
out.images[0]                           # the same pixels, watermark only (a manifest cannot live in pixels)
  • attach swaps the pipeline's class for a cached subclass whose __call__ runs the original and then marks the output; the class name, qualname and module are kept, so type(pipe).__name__ and save_pretrained are unchanged.
  • out.images carry the watermark only, in the original type, shape and dtype; out.assets[i] (MarkedAsset) holds the signed bytes (data, asset_id, manifest_id, save(path)). Store or serve asset.data.
  • SDXL's StableDiffusionXLWatermarker is replaced (pipe.watermark = None; replace_watermarker=False keeps it).
  • A marking failure raises MarkError: no unmarked image is returned.

Status: proven on diffusers 0.40.0 tiny random pipelines on CPU (hf-internal-testing/tiny-stable-diffusion-torch and hf-internal-testing/tiny-stable-diffusion-xl-pipe); no production checkpoint was run. See https://laidline.com/docs/integrations/diffusers.

Metadata

Release files for laidline-diffusers 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for laidline-diffusers 1.0.4
File Size Uploaded Provenance Actions
laidline_diffusers-1.0.4.tar.gz 11.6 kB With provenance Details for laidline_diffusers-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for laidline-diffusers 1.0.4
File Interpreter ABI Platform Actions
laidline_diffusers-1.0.4-py3-none-any.whl Python 3 none any Details for laidline_diffusers-1.0.4-py3-none-any.whl

Total release size: 24.6 kB

Release files / laidline_diffusers-1.0.4.tar.gz

Download URL laidline_diffusers-1.0.4.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
43c17714af6bc7459c33e27a1317c926851534525b505f793f433cbd3ef8461e
BLAKE2b-256 checksum
How to use checksums
e47ea5e95775f8e4858b84fbab73eab5a272dc942d91e4e00713285ec94f2661
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / laidline_diffusers-1.0.4-py3-none-any.whl

Download URL laidline_diffusers-1.0.4-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46a0422b44e1a1436b67b551a5a00894e697ec4e871bb0c601dfd9beb12d933e
BLAKE2b-256 checksum
How to use checksums
1b7aaef53a0399c4352184839b1e94c8f932ff03d12c284f359766c4e7971776
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for laidline-diffusers 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for laidline_diffusers-1.0.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page