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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nistitl-0.1-py2.py3-none-any.whl (20.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page