Skip to main content

ezMM: Mini-Suite for Easy Multimodal Data Processing

This lightweight Python package aims to streamline and simplify the processing of multimodal data. The core philosophy of ezMM is to treat any data (whether strings, images, audios, tables, etc.) as a multimodal sequence.

Usage

Core is the MultimodalSequence class. Here is an example:

from ezmm import MultimodalSequence, Image

img1 = Image("in/roses.jpg")
img2 = Image("in/garden.jpg")

seq = MultimodalSequence("The image", img1, "shows two beautiful roses while",
                         img2, "shows a nice garden with many flowers.")

seq comprehensively aggregates the different modalities into one handy object. It also offers some useful features:

MultimodalSequence is stringifyable

print(seq)

will return

The image <image:1> shows two beautiful roses while <image:2> shows a nice garden with many flowers.

That is, non-string items in the MultimodalSequence get replaced by their unique reference when turned into strings.

MultimodalSequence understands references

Conversely, you can do

seq2 = MultimodalSequence("The image <image:1> shows two beautiful roses while <image:2> shows a nice garden with many flowers.")

which obeys seq == seq2. That is, MultimodalSequence resolves references within the input string and loads the corresponding items under the hood.

Access MultimodalSequence like a list

You can apply list comprehension to seq. For example, seq[1] == img.

Easy modality checks

You can check for specific modalities like images quickly, e.g., with seq.has_images().

Feature Overview

  • ✅ Image support
  • ✅ Video support
  • ✅ Saving and organizing media in a database along with their origin URL
  • ✅ Rendering MultimodalSequence in a web UI
  • ⏳ Duplication management: Identify and re-use duplicates

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezmm-0.5.2.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

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

ezmm-0.5.2-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file ezmm-0.5.2.tar.gz.

File metadata

  • Download URL: ezmm-0.5.2.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for ezmm-0.5.2.tar.gz
Algorithm Hash digest
SHA256 1efc17c149f4796423e7ce9a04ef9354622e0d387654396ba428bce6f88ba33e
MD5 0189bdb0072a8b8125ce17dedbf2e2e0
BLAKE2b-256 c271c5c90bf2baf29c762dffd232211079485372315fd9ef7df0db030a595fd2

See more details on using hashes here.

File details

Details for the file ezmm-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: ezmm-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for ezmm-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd815b153c0635a7530be633e7955164d895a3a209ac4393245f9eaa7a5cd49
MD5 738873d9cdf33e8a9a70d7faa1632f9c
BLAKE2b-256 99113cd1354615fb8a5794a5ab4908978f7d76db871ec876318b20f3bbea56dc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.10

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page