Small library to emulate fixed width types in Python.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simon de Vlieger 253e0dd578 __add__: add two integers together 4 months ago
test . 8 months ago
.flake8 . 1 year ago
.gitignore . 1 year ago
.pre-commit-config.yaml . 1 year ago
.travis.yml . 1 year ago
LICENSE . 1 year ago
README.md . 8 months ago
fixed_width.py __add__: add two integers together 4 months ago
mypy.ini . 1 year ago
poetry.lock . 1 year ago
pyproject.toml . 1 year ago
requirements.txt . 1 year ago

README.md

fixed-width

A small easily vendorable (you know that means copy/pastable) library to work with fixed width types in Python. This library allows you to specify your own rules for your own fixed width types or to just use a sane default.

You can either work in non-strict mode or strict mode which will raise exceptions for truncation and promotion.

Different storage types and behaviors are supported.