Skip to main content

NIST-ITL Python Parsing Library

Project description

Documentation Status CeCILL-C Python 3.x v?.? 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 Distribution

nistitl-0.3.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

nistitl-0.3-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file nistitl-0.3.tar.gz.

File metadata

  • Download URL: nistitl-0.3.tar.gz
  • Upload date:
  • Size: 31.1 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

Hashes for nistitl-0.3.tar.gz
Algorithm Hash digest
SHA256 6f2b961031f86cb936d283c0415147409804040e65411f721961348910681b91
MD5 581cb66fc0d862918909a88313d2f49a
BLAKE2b-256 85003d2987ac423686f7bace4836ec640f5c099b4b525267a92663016ae5250b

See more details on using hashes here.

File details

Details for the file nistitl-0.3-py3-none-any.whl.

File metadata

  • Download URL: nistitl-0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.5 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

Hashes for nistitl-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 067d3b4940b15b28678eeccfed169bf670502fe5d5ee487f649d94dbf996170d
MD5 f1e98cc17f4ac343478cc122b02db68f
BLAKE2b-256 b52166311f9e959c858c3138014d2ee6842f8a1c26adcdd5eb9244460c59b1e9

See more details on using hashes here.

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