SuperDuper Pillow is a plugin for SuperDuper that provides support for Pillow.
Project description
superduper_pillow
SuperDuper Pillow is a plugin for SuperDuper that provides support for Pillow.
Installation
pip install superduper_pillow
API
Class | Description |
---|
Examples
We can use the pil_image
field type to store images in a database.
from superduper import superduper
from superduper import Table, Schema
from superduper_pillow import pil_image
from PIL import Image
table = Table("image", schema=Schema(identifier="image", fields={"img": pil_image}))
db = superduper('mongomock://test')
db.apply(table)
# Inserting an image
db["image"].insert([{"img": Image.open("test/material/data/1x1.png")}]).execute()
# Selecting an image
list(db["image"].select().execute())
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
superduper_pillow-0.0.5.tar.gz
(12.2 kB
view hashes)
Built Distribution
Close
Hashes for superduper_pillow-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4fc67b7ff18168b7356fb086980804542f7b4ff630e82e7a0c0cf3b2e434e47 |
|
MD5 | 452c8ef4510a98b435063f020837b439 |
|
BLAKE2b-256 | d3e413658fe003cbf5c6aa58583f659ffc8c8466c30aaa2b0c4d6d24c7792dfe |