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.3

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.3
File Size Uploaded Provenance Actions
laidline_diffusers-1.0.3.tar.gz 11.6 kB With provenance Details for laidline_diffusers-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 24.6 kB

Release files / laidline_diffusers-1.0.3.tar.gz

Download URL laidline_diffusers-1.0.3.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6e7efe2972e68f0f7829f2eecd1d0df3db950f6a90040927a1e7d6ae9ed6399
BLAKE2b-256 checksum
How to use checksums
88c8c3517f7b3911f1059b792df23005c2fb71fb447e7cfc530de9d78e57ae7b
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.3-py3-none-any.whl

Download URL laidline_diffusers-1.0.3-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
381222c3851f7f5714fcb3e1179bba20e9ce61867c8bb6b2681517bec33af522
BLAKE2b-256 checksum
How to use checksums
a8e341cf9822460434ffc06fd2b54ba7d710ce70a459f0d81d7b24e474f522ba
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.3

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.3.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.3 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