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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f370f071e5c11d0807046efccb4cfff562303ae4d6955f0ca551881c54844fd
|
|
| MD5 |
7065d62d786f7302f08743ea3d311b1a
|
|
| BLAKE2b-256 |
5a8e96eeb03d059f4d3578188fb77644b5413ea31a07847a0ba131327efcbbe0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
044d7445240a7c31be6d35b50da3a39ff59bb21b961873fe7cf2debe31bd2ee3
|
|
| MD5 |
179d5ba88f9f06917fb8f893067fd62f
|
|
| BLAKE2b-256 |
d6e0e0bcd4348a53834c0bd2efab7afc6d4df0e842521b423d2ab62b1e9a0918
|