Skip to main content

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


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.4.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

superduper_pillow-0.4.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file superduper_pillow-0.4.0.tar.gz.

File metadata

  • Download URL: superduper_pillow-0.4.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for superduper_pillow-0.4.0.tar.gz
Algorithm Hash digest
SHA256 665d0e649cf88720229502cb7f228948a21dec72c5a8ec2140bbbd141faf93a6
MD5 08ec4f12c4ae91798ea6b604ec2ff86c
BLAKE2b-256 6ac193b8dac971dc8d8ebfb060c94144f3ee7698f65525a30a281dd566a8efbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_pillow-0.4.0.tar.gz:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations:

File details

Details for the file superduper_pillow-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_pillow-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b2cec276804b8b4d5b70a4f4575985a1f967eb75f4b03bbf04e8e12c3238c0b
MD5 5789905ee3bdca72ddd77b4fcfd71867
BLAKE2b-256 617b211fe27fe217468c47e56f1ea105d0342de2afe88e74c0653317cdd50f11

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_pillow-0.4.0-py3-none-any.whl:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations:

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