Skip to main content

Compact serialization of NumPy uint8 arrays via WebP + base64

Project description

imstr

Compact serialization of NumPy uint8 arrays via WebP lossless compression + base64 encoding.

Installation

pip install imstr

Usage

import numpy as np
from imstr import encode, decode

arr = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
encoded = encode(arr)
decoded = decode(encoded)

assert np.array_equal(arr, decoded)

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

imstr-0.1.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

imstr-0.1.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file imstr-0.1.1.tar.gz.

File metadata

  • Download URL: imstr-0.1.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for imstr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eabe6836fa2dd2530c44f6ac271a379b4e788b1b7c04be062ab6d70f055d3dad
MD5 fd3e28c42382731d27055d28d4cf4d1c
BLAKE2b-256 d8045f60f9adac5abc3b748513ad29da819835b6b88027f81d88c008c29e459f

See more details on using hashes here.

File details

Details for the file imstr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: imstr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for imstr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 855259474939c4d6ede77d64bf6981a14ffc6d3a4e210234fe4fed934d3fe3c9
MD5 883d26312885b485e5790f7fb247d003
BLAKE2b-256 86a3c7ea55de4d4aee5977ca2ff35843cb92702de1067ed4829998f2a076addb

See more details on using hashes here.

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