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

Uploaded Source

Built Distribution

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

superduper_pillow-0.6.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_pillow-0.6.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for superduper_pillow-0.6.0.tar.gz
Algorithm Hash digest
SHA256 cbc9c96fd8563c6c5e3be0a52ca69236c54d50fc1f642f16c09ab30b4821a675
MD5 2ca62ca8039bdebb093f59907fd160d3
BLAKE2b-256 95896d7ad50f33c3501dfddcac7050fd5c288dba593edb91e85e1ea560c9508a

See more details on using hashes here.

Provenance

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

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for superduper_pillow-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb1332a302e27210406724d1608d80588a1c6d4e3d5d4277dcf732425b4d9a10
MD5 5cf569cbdad01f527914db2493ff6c67
BLAKE2b-256 76c1b8b997e7673b6b9da60bf3e09f98a6c2fb811d6f2432c802005183658c87

See more details on using hashes here.

Provenance

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

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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