Package for sending images to the printi.me API
Project description
printi pigeon
Python package to send images to the printi API
Install using:
python3 -m pip install printipigeon
Example usage:
import printipigeon as pp
pp.send_from_path("somewhere/cat.jpg")
Example sending image from memory to printi.me/gallery :
import printipigeon as pp
import io
from PIL import Image
img = Image.open("somewhere/cat.jpg")
for x in range(100):
for y in range(255):
img.putpixel((x,y), (y,y,y))
f = io.BytesIO()
img.save(f, format="PNG")
f.seek(0,0) # writing to f has moved the position
pp.send_binary_image_data("art.png", f, "gallery")
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
printipigeon-0.0.5.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for printipigeon-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf3898d5771bfdffb9a99b8b3d36373c3e4f9c4e66acd8cc1b7c346c7282aa9 |
|
MD5 | aa5798097d5e33f5dda8ac192bab6399 |
|
BLAKE2b-256 | 2b132e0e5d5982d9c8407586ee7184f6ab83f974574eccb73e62d10585fa2135 |