This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.1 instead.
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)
attachswaps 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, sotype(pipe).__name__andsave_pretrainedare unchanged.out.imagescarry 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 serveasset.data.- SDXL's
StableDiffusionXLWatermarkeris replaced (pipe.watermark = None;replace_watermarker=Falsekeeps 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laidline_diffusers-1.0.0.tar.gz | 11.6 kB | Without provenance | Details for laidline_diffusers-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laidline_diffusers-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for laidline_diffusers-1.0.0-py3-none-any.whl |
Total release size: 24.4 kB
Release files / laidline_diffusers-1.0.0.tar.gz
| Download URL | laidline_diffusers-1.0.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3662472ba75be20ab80fd6b735462f0594574fd310f5ee6df966a51ab89bf97
|
|
BLAKE2b-256 checksum How to use checksums |
88d4648cb3fea0b4c97ddd0a3e9ee81bd2c7f1455c7d9e0b2759f7cab10f7b2b
|
| 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.0-py3-none-any.whl
| Download URL | laidline_diffusers-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23e963a4f862fd1296b3aad18144b47b954ff21815ab190cf226be630986d8c0
|
|
BLAKE2b-256 checksum How to use checksums |
271b494480ee36f1ffe24f6923bb6fd60c10341e5e2df93acc9a0e7f6a545668
|
| 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.0
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.