near / borsh-construct-py

Python implementation of Binary Object Representation Serializer for Hashing
https://borsh.io/
MIT License
26 stars 8 forks source link
binary-serialization borsh python serialization

borsh-construct

Tests Docs

borsh-construct is an implementation of the Borsh binary serialization format for Python projects.

Borsh stands for Binary Object Representation Serializer for Hashing. It is meant to be used in security-critical projects as it prioritizes consistency, safety, speed, and comes with a strict specification.

Read the Documentation.

Installation

pip install borsh-construct

Development Setup

  1. Install poetry
  2. Install dev dependencies:
    
    poetry install
3. Install [nox-poetry](https://github.com/cjolowicz/nox-poetry) (note: do not use Poetry to install this, see [here](https://medium.com/@cjolowicz/nox-is-a-part-of-your-global-developer-environment-like-poetry-pre-commit-pyenv-or-pipx-1cdeba9198bd))
4. Activate the poetry shell:
```sh
poetry shell

Quick Tests

pytest

Full Tests

nox