Skip to main content

A simple python api wrapper for remove.bg.

Project description

rembgpy

  • A simple python api wrapper for remove.bg.

Installation

pip install rembgpy

Usage

from rembgpy import RemBg
import base64

api = RemBg("api-key", "logged-error.log")
with open("titty.jpg", "rb") as image_file:
    encoded_string = base64.b64encode(image_file.read())
api.remove_b64(encoded_string)

Usage 2

from rembgpy import RemBg

api = RemBg("api-key", "logged-error.log")
api.remove_img("https://sample.com/img_url.jpg")

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

rembgpy-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

rembgpy-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file rembgpy-1.0.0.tar.gz.

File metadata

  • Download URL: rembgpy-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for rembgpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1037bcde5cb90775a0b193db930b4a806451c77b03775bdef83fd6b0604eb76e
MD5 6cb61231693472ec6adeec98ac368902
BLAKE2b-256 22ab6f6242d52cff93df8a8ebf3cb3261a5cd38a305a6eda2793062f243803c9

See more details on using hashes here.

File details

Details for the file rembgpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rembgpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for rembgpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c01a23dd0b3e9fc871c31f304a9441e1fb3c8d79bcd6c6d49307296daf97d62a
MD5 12a7c592156a788f884f51f0b4d96b20
BLAKE2b-256 ef9a6adfa0ce87207a6a99d8254cca57a8c2b047f0116903df293c9cba0166cf

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