Simple Binary Encoding (SBE) 2.0 library for Python with linter
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sbe2-0.1.1.tar.gz.
File metadata
- Download URL: sbe2-0.1.1.tar.gz
- Upload date:
- Size: 98.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c21fec0b13a43d516d2f05a3311fb5243d41257de07e50c2b56fac51aa3801
|
|
| MD5 |
a0e168427dfdf23fab849c5c0e5d6b59
|
|
| BLAKE2b-256 |
9caf3eee327746b71d522b0ceb08e5dbedebff79afffc285eb84f7bb6cbe8b06
|
File details
Details for the file sbe2-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sbe2-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7eef4a9703765612fd18a213b6b0c250e470bd87c5c449282d8caeed9811bbb
|
|
| MD5 |
b999b401730269e1ab8381d188ef94ff
|
|
| BLAKE2b-256 |
924f9e30164a5ff7fc62f234a3d9244bb36917b06b7ed0570dcee695c2710c22
|