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
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.5.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af7655a674ded915941252a0d5f118af7d9e680578a9004e2499745c3877bf72
|
|
| MD5 |
9d1c81a3661b315730fc0689b47880d8
|
|
| BLAKE2b-256 |
e792cb3fbd9552b0cd7db0a55759ab3580b9c74cb400051b19fc315f2c17e52b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cf3898d5771bfdffb9a99b8b3d36373c3e4f9c4e66acd8cc1b7c346c7282aa9
|
|
| MD5 |
aa5798097d5e33f5dda8ac192bab6399
|
|
| BLAKE2b-256 |
2b132e0e5d5982d9c8407586ee7184f6ab83f974574eccb73e62d10585fa2135
|