Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.4 instead.
Reason given by maintainers: superseeded by 1.0.3

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

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.2
File Size Uploaded Provenance Actions
laidline_diffusers-1.0.2.tar.gz 11.6 kB Without provenance Details for laidline_diffusers-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 24.4 kB

Release files / laidline_diffusers-1.0.2.tar.gz

Download URL laidline_diffusers-1.0.2.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8900bf19ad71f10a05e57b02f1116a596997dab41837e6d0e5e5f3658087da4c
BLAKE2b-256 checksum
How to use checksums
a41b2caeef546357c3c032e54d5bb0915c88bdfc866c01a5f42e618a554e0bb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

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

Download URL laidline_diffusers-1.0.2-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
520299ddb87e4e48ec3d53913598ce44b119ef7965edd8ff878e6b82c50f66c1
BLAKE2b-256 checksum
How to use checksums
376e62a76615985ee8d66baec97bd2f5f254d3964e56ee4ee9f405ae2b578176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for laidline-diffusers 1.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2 This release

2 release files No 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