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.

Source Distribution

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file printipigeon-0.0.5.tar.gz.

File metadata

  • Download URL: printipigeon-0.0.5.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0

File hashes

Hashes for printipigeon-0.0.5.tar.gz
Algorithm Hash digest
SHA256 af7655a674ded915941252a0d5f118af7d9e680578a9004e2499745c3877bf72
MD5 9d1c81a3661b315730fc0689b47880d8
BLAKE2b-256 e792cb3fbd9552b0cd7db0a55759ab3580b9c74cb400051b19fc315f2c17e52b

See more details on using hashes here.

File details

Details for the file printipigeon-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: printipigeon-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0

File hashes

Hashes for printipigeon-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0cf3898d5771bfdffb9a99b8b3d36373c3e4f9c4e66acd8cc1b7c346c7282aa9
MD5 aa5798097d5e33f5dda8ac192bab6399
BLAKE2b-256 2b132e0e5d5982d9c8407586ee7184f6ab83f974574eccb73e62d10585fa2135

See more details on using hashes here.

Supported by

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