Skip to main content

Package for sending images to the 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


Example sending image from memory to :

import printipigeon as pp
import io
from PIL import Image

img ="somewhere/cat.jpg")

for x in range(100):
  for y in range(255):
    img.putpixel((x,y), (y,y,y))

f = io.BytesIO(), format="PNG"),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.

Source Distribution

printipigeon-0.0.5.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

printipigeon-0.0.5-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page