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

Uploaded Python 3

File details

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

File metadata

  • Download URL: imstr-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 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.2.tar.gz
Algorithm Hash digest
SHA256 c7e1ff81fcfc5721eb55b18cd525c6b5d307c42ff164729ffdd487f96ffa4d21
MD5 66846e45909775b03427b6be2cbe7fe7
BLAKE2b-256 28268aca30ae818ffeed5dcfc20395a5568f1bd039bb9faf01e9773a4a51da2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imstr-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fcdb3c31c7347c1de26a38fff96f9c32ee2601797373cedfff6877d3a57cdd1d
MD5 3853fbe94600036ef46fe0a5ab96104a
BLAKE2b-256 a341d2f4438e93753877c38c2ad9b115dd517788bfdaca02a0d11437eff20330

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