Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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:

Warning

This project is currently in state of active development. Features, functionality and API are unstable.

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.

Files for hat-sbs, version 0.4.0.dev20200812
Filename, size File type Python version Upload date Hashes
Filename, size hat_sbs-0.4.0.dev20200812-cp38-none-any.whl (9.4 kB) File type Wheel Python version cp38 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page