Skip to main content

Python wrapper for the remove.bg API

Project description

RemoveBgPlus is a lightweight Python wrapper for the remove.bg API, allowing you to remove image backgrounds using local files, URLs, or base64 input.

Installation

pip install RemoveBgPlus

Usage

import removebgplus

client = removebgplus.RemoveBg("your-api-key")

# From file
client.remove_from_file("input.jpg", "output_from_file.png")

# From URL
client.remove_from_url("https://example.com/image.jpg", "output_from_url.png")

# From base64 string
base64_string = "iVBORw0KGgoAAAANSUhEUgAAAAUA..."  # must be a valid image base64 string
client.remove_from_base64(base64_string, "output_from_base64.png")

Features

  • Supports file, URL, and base64 input
  • Customizable output path (overwrites if not provided)

License

MIT

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

removebgplus-0.1.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

removebgplus-0.1.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file removebgplus-0.1.2.tar.gz.

File metadata

  • Download URL: removebgplus-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for removebgplus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4aef0c27bfeb77158c0ee057c5ea99d85425d345bb87b17f1505b2e3a35dd591
MD5 0348289f46bb8363fd2492e6e0a03947
BLAKE2b-256 de53c2c87f3cae1a127f790548b2f98ae08d2a088e41f86d9e667d36b05d4fdc

See more details on using hashes here.

File details

Details for the file removebgplus-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: removebgplus-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for removebgplus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 088d7ce23d5bf527b28d32638e6142db06aeee1455e7b3b6890205d7ab119e51
MD5 8b3b8f3e8e0e77ccabdccd698e743229
BLAKE2b-256 4ce9d34e9e006a4467d40d1d214a888364b328d2885273d9e6e6fd3e23d0d0fa

See more details on using hashes here.

Supported by

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