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())
print(api.remove_b64(encoded_string))

Usage 2

from rembgpy import RemBg

api = RemBg("api-key", "logged-error.log")
print(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.1.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.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rembgpy-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2f370f071e5c11d0807046efccb4cfff562303ae4d6955f0ca551881c54844fd
MD5 7065d62d786f7302f08743ea3d311b1a
BLAKE2b-256 5a8e96eeb03d059f4d3578188fb77644b5413ea31a07847a0ba131327efcbbe0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rembgpy-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 044d7445240a7c31be6d35b50da3a39ff59bb21b961873fe7cf2debe31bd2ee3
MD5 179d5ba88f9f06917fb8f893067fd62f
BLAKE2b-256 d6e0e0bcd4348a53834c0bd2efab7afc6d4df0e842521b423d2ab62b1e9a0918

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