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.7.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.7.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_pillow-0.7.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.7.0.tar.gz
Algorithm Hash digest
SHA256 240147b962dfc92f60bf5d5c285e6d56570b90b6010b747629dcc3dc17a243b1
MD5 7925cf203de552287cc5a40cca45dbed
BLAKE2b-256 3a78d41f21ed1846dcfa7c90caa40ac1710bbea809c4f42e531e36c42c6eb69a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for superduper_pillow-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f301402641730ad9981681fe945cf18a153223a379008eff1e3a9d6a58e1496f
MD5 fafd93dbae8e1182bf209066ed1a567d
BLAKE2b-256 b83d525c61190091fd196f216a334648ddf96ee2aa5f737df38c19242d3d8e49

See more details on using hashes here.

Provenance

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