Skip to main content

A library for asynchronous and synchronous watermark removal from images using Unwatermark.ai

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unwatermark-1.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

unwatermark-1.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file unwatermark-1.0.1.tar.gz.

File metadata

  • Download URL: unwatermark-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for unwatermark-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c637a67587ed4105617eded1be9e3f7a94ccdc1d200797290d0a7f8992006367
MD5 f31deaef6ff0e01afbd221ff6d9fbba8
BLAKE2b-256 f1c2225396650482edfc9cf7923c1ec100a9b55526e30a29fc61acfd0ce55e85

See more details on using hashes here.

File details

Details for the file unwatermark-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: unwatermark-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for unwatermark-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da97fb3f94fea298c511e1e39526034a17cabe4df4cdba1c77c610707851c923
MD5 20f0a2bf19bd49614a833f62673f13d4
BLAKE2b-256 177c2fccda2e20bee58ecd747658aac4668270ef7d6f2911b498696332014b11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page