Skip to main content

NIST-ITL Python Parsing Library

Project description

Documentation Status CeCILL-C Python 3.x Build Status (Travis CI) Code Coverage Status (Codecov)

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


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nistitl, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size nistitl-0.1-py2.py3-none-any.whl (20.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page