Skip to main content

An example Python package

Project description

Python Simple Binary Encoding Library

Simple Binary Encoding is an ultra fast binary encoding protocol use commonly in high-frequency trading. While code generators from schema are publicly available, the protocol lacks Python support and basic tooling. This project aims to solve those issues.

Submodules

  • schema - Python object model of a parsed schema file.
  • xmlparser - parses a schema file into a Python object model.
  • linter - (TODO) - analyses the schema looking for common mistakes.
  • backcheck - (TODO) - check if the given change applied to the schema is backward compatible, This check added to CI solves the most common issue of breaking the protocol on the binary level while extending it.
  • pygen - (TODO) generates Python code for parsing and encoding messages.
  • pyruntime - (TODO) since Python is a dynamic language, it is possible to generate types in the runtime. This skips the common code-generation part characteristic to all strongly typed languages.

This module can also be used to create support for non-standard programming languages or for creating a non-standard input format (as the standard XML format is one of common complains).

Example

python3``` from sbe2.xmlparser import parse_schema schema = parse_schema('schema.xml')

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

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

sbe2-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file sbe2-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sbe2-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for sbe2-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c065d429740616004190faaeb8d4b58cdf709adf2aa15198aafb38cc4a13c13b
MD5 e20991572f8b786653e2022d081be6b6
BLAKE2b-256 f7a1d19608830e6f4b626d1574608b45f16f6e60fe0075d0bdded135092d508f

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