NIST-ITL Python Parsing Library
Project description
A pure Python library for parsing and generating NIST-ITL binary files.
Installation
nistitl is published on PyPI and can be installed from there:
pip install -U nistitl
Quick Start
To generate a NIST-ITL binary message:
msg = nistitl.Message()
msg.TOT = 'MY_TOT'
r2 = nistitl.AsciiRecord(2)
r2 += nistitl.Field(2,3,alias='TEST')
msg += r2
buffer = msg.NIST
To parse a NIST-ITL binary message:
msg = nistitl.Message()
msg.parse(buffer)
print("The TOT is ",msg.TOT)
for record in msg.iter(2):
print("Field 2.003 is ",record._3)
See the full documentation for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nistitl-0.4.tar.gz
(31.6 kB
view details)
Built Distribution
nistitl-0.4-py3-none-any.whl
(21.8 kB
view details)
File details
Details for the file nistitl-0.4.tar.gz
.
File metadata
- Download URL: nistitl-0.4.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5286e01e99f9fb266bccef2d2b4ee0e523ed6f628e667b098027da26f1f0d2 |
|
MD5 | a4e69c427b0ef9dda68c6df20db3c0f4 |
|
BLAKE2b-256 | 60d7ca54a991df472bdb52ee08a3708e173a02b1b6e3f8395b701a0293346585 |
File details
Details for the file nistitl-0.4-py3-none-any.whl
.
File metadata
- Download URL: nistitl-0.4-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe64dfe81326dd548eafa0c7b6a6d7212b3b8d1527c8d19e22bcd9ffbe56019d |
|
MD5 | efec046fb6b67d25cc24bd3281dd6508 |
|
BLAKE2b-256 | df2b79ec6e18622dc302671f45c60e97c0f4e1515afac789f1f3110ca04e1ac5 |