Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for printipigeon, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size printipigeon-0.0.5-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size printipigeon-0.0.5.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page