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.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View
Filename, size printipigeon-0.0.5-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page