Skip to main content

Hat simple binary serializer

Project description

This library is part of Hat Open project - open-source framework of tools and libraries for developing applications used for remote monitoring, control and management of intelligent electronic devices such as IoT devices, PLCs, industrial automation or home automation systems.

Development of Hat Open and associated repositories is sponsored by Končar - Power Plant and Electric Traction Engineering Inc. (Končar KET - https://www.koncar-ket.hr).

For more information see:

About

Simple binary serialization (SBS) features:

  • schema based

  • small schema language optimized for human readability

  • schema re-usability and organization into modules

  • small number of built in types

  • polymorphic data types

  • binary serialization

  • designed to enable simple and efficient implementation

  • optimized for small encoded data size

Example of SBS schema:

module Module

Entry(K, V) = Tuple {
    key: K
    value: V
}

Collection(K) = Union {
    null: None
    bool: Entry(K, Boolean)
    int: Entry(K, Integer)
    float: Entry(K, Float)
    str: Entry(K, String)
    bytes: Entry(K, Bytes)
}

IntKeyCollection = Collection(Integer)

StrKeyCollection = Collection(String)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hat_sbs-0.4.0.dev202010282029-cp38-none-any.whl (8.2 kB view details)

Uploaded CPython 3.8

File details

Details for the file hat_sbs-0.4.0.dev202010282029-cp38-none-any.whl.

File metadata

  • Download URL: hat_sbs-0.4.0.dev202010282029-cp38-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.6

File hashes

Hashes for hat_sbs-0.4.0.dev202010282029-cp38-none-any.whl
Algorithm Hash digest
SHA256 20c7a73f0a646614cdcd3dd25738aba605e997217080706a9f61c43b0f018c9a
MD5 9888c85eb36a454a6c97bd372494fd6c
BLAKE2b-256 f9f9f30949f237c63ab344d21ee681f309d2dd873b118fb5b6d67a0a271a87ff

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