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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 665d0e649cf88720229502cb7f228948a21dec72c5a8ec2140bbbd141faf93a6 |
|
MD5 | 08ec4f12c4ae91798ea6b604ec2ff86c |
|
BLAKE2b-256 | 6ac193b8dac971dc8d8ebfb060c94144f3ee7698f65525a30a281dd566a8efbe |
Provenance
The following attestation bundles were made for superduper_pillow-0.4.0.tar.gz
:
Publisher:
release_plugins.yaml
on superduper-io/superduper
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_pillow-0.4.0.tar.gz
- Subject digest:
665d0e649cf88720229502cb7f228948a21dec72c5a8ec2140bbbd141faf93a6
- Sigstore transparency entry: 146081648
- Sigstore integration time:
- Predicate type:
File details
Details for the file superduper_pillow-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: superduper_pillow-0.4.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b2cec276804b8b4d5b70a4f4575985a1f967eb75f4b03bbf04e8e12c3238c0b |
|
MD5 | 5789905ee3bdca72ddd77b4fcfd71867 |
|
BLAKE2b-256 | 617b211fe27fe217468c47e56f1ea105d0342de2afe88e74c0653317cdd50f11 |
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
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_pillow-0.4.0-py3-none-any.whl
- Subject digest:
0b2cec276804b8b4d5b70a4f4575985a1f967eb75f4b03bbf04e8e12c3238c0b
- Sigstore transparency entry: 146081651
- Sigstore integration time:
- Predicate type: