Skip to main content

Compact implementation of a LiteVector serializer in pure Python

Project description

ltvpy

A small implementation of the LiteVectors serializer in Python. NumPy is used for numeric arrays.

Usage

encoded = ltvpy.dumpb({'Name': 'data', 'values': [1, 2, 3]})

decoded = ltvpy.loadb(encoded)

Notes:

Deterministic serialized field order relies on the new default behavior for dictionaries in Python 3.7+ which maintains a fields by insertion order. If you need struct fields serialized in a specific order, use Python 3.7 or higher.

Testing

This package runs the LiteVector test vectors and other unit tests with the standard Python unittest framework, which can be run from the project root:

python3 -m unittest

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

ltvpy-1.0.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

ltvpy-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ltvpy-1.0.0.tar.gz.

File metadata

  • Download URL: ltvpy-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for ltvpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 854a35ecb1b981ab7b0dba2686a05f255753c6df6842465ae582757137276413
MD5 768e91904c3310de32d80d189e84935b
BLAKE2b-256 c2523a1a470f7ee6ab9868d2a2ed4bfb169ace86901bb5d556f02642f84e64ef

See more details on using hashes here.

File details

Details for the file ltvpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ltvpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for ltvpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5a30914a6e0278417983cafdfc7c23ad5a89f323084d1ed9cf96542d4413381
MD5 673d875c157605f4626485d9d8a93115
BLAKE2b-256 44777eac9405b7e5d51b704cf9513664356149a53aa78f0c7233aff5d87f384d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page