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.10.0.tar.gz (11.6 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.10.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_pillow-0.10.0.tar.gz
  • Upload date:
  • Size: 11.6 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.10.0.tar.gz
Algorithm Hash digest
SHA256 848360fd28531f56d9092f13d38a8c51e67e6a408096ac76e4e945908de939f4
MD5 1f3e627d7c3584c0a5cb86ac5167be4f
BLAKE2b-256 8a617b25bebbe4fae332761f3328463ac74b63a4a42a9ff0cffb4ed4dc6235bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_pillow-0.10.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.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_pillow-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37068c3e71e714c8c0660981d2bcc7f0ee0b33e49751c6312354de091498d7ad
MD5 833244f60f8bff0cdb0193e2a3492e30
BLAKE2b-256 b5a75ccca6de135b90bb5b77e3a24ff3c0f343c9d90310937f8aa626b7053ba3

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_pillow-0.10.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