Package for sending images to the printi.me API
Python package to send images to the printi API
python3 -m pip install printipigeon
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")
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for printipigeon-0.0.5-py3-none-any.whl