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.4.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for printipigeon-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aab44f8130e105744a1dec0a33e8a1d99222583898eacf4ac2c69a85e45d21a |
|
MD5 | 65908eebf831e807effdec7155cc87ec |
|
BLAKE2b-256 | 57f8d18b550da981515281a8f95062a5ec79f838117519765d36ab7884049f73 |