Skip to main content

Unwatermark

Unwatermark is a Python library for removing watermarks from images, supporting both asynchronous and synchronous operations via the Unwatermark API (Unwatermark.ai).

Installation

Install the package using pip:

pip install unwatermark

Usage

This library includes two main classes: AsyncUnwater for asynchronous operations and Unwater for synchronous operations.

Example Usage

Asynchronous

Using the AsyncUnwater class to remove a watermark asynchronously:

import asyncio
from unwatermark import AsyncUnwater

async def main():
    async_unwater = AsyncUnwater()
    result = await async_unwater.remove_watermark("path, url or bytes")
    result_url = result.result.output_image_url[0]
    print(f"Watermark removed image URL: {result_url}")

asyncio.run(main())

Synchronous

Using the Unwater class to remove a watermark synchronously:

from unwatermark import Unwater

unwater = Unwater()
result = unwater.remove_watermark("path, url or bytes")
result_url = result.result.output_image_url[0]
print(f"Watermark removed image URL: {result_url}")

Project Details

Dependencies

This package depends on:

  • httpx
  • aiofiles
  • pydantic

Requirements

Python 3.6 or higher

License

Unwatermark is licensed under the MIT License. See the LICENSE file for more details.

Classifiers

  • Programming Language :: Python :: 3
  • License :: OSI Approved :: MIT License
  • Operating System :: OS Independent

Metadata

Release files for unwatermark 1.0.1

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

Source distribution (sdist)

Source distribution for unwatermark 1.0.1
File Size Uploaded Provenance
unwatermark-1.0.1.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for unwatermark 1.0.1
File Interpreter ABI Platform
unwatermark-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / unwatermark-1.0.1.tar.gz

Download URL unwatermark-1.0.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c637a67587ed4105617eded1be9e3f7a94ccdc1d200797290d0a7f8992006367
BLAKE2b-256 checksum
How to use checksums
f1c2225396650482edfc9cf7923c1ec100a9b55526e30a29fc61acfd0ce55e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / unwatermark-1.0.1-py3-none-any.whl

Download URL unwatermark-1.0.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da97fb3f94fea298c511e1e39526034a17cabe4df4cdba1c77c610707851c923
BLAKE2b-256 checksum
How to use checksums
177c2fccda2e20bee58ecd747658aac4668270ef7d6f2911b498696332014b11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for unwatermark 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 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