Package for sending images to the printi.me API
Project description
printi pigeon
Python package to send images to the printi API
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.3.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for printipigeon-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43c2864a8138a3bc326eb27ea5079a9283cd855a3775af62255d92b64664d6a4 |
|
MD5 | 0f82697325c0a9d8a8b11fa8dbe78582 |
|
BLAKE2b-256 | aca332ca22842da482c1c2181e5d79145594ca1bfe21a58a65d6d444de18f871 |