Skip to main content

A parser library for the IRIG 106 Chapter 10 data format.

Project description

StatusImage CoverageImage DocsImage LicenseImage PyPiVersion PythonVersion

PyChapter10 is an open source pure Python library for reading and writing IRIG 106 Chapter 10 (now 11) files. Tested on all 3 major platforms with Python 3.6+.

Installation

Install the latest version with pip:

pip install pychapter10

To install offline from “full” zip, install the included dependencies and the library with:

pip install dependencies/* .

Note: you may also install cbitstruct for a performance improvement.

Basic Usage

PyChapter10 provides a pythonic API to read, write, and update Chapter 10 data.

from chapter10 import C10

# Find all 1553 messages in a file
for packet in C10('<filename>'):
    if packet.data_type == 0x19:
        for msg in packet:
            # do something with the message

Supported Datatypes

Type

Name

Supported

0x00

Computer-Generated F0 - User-Defined

User-Defined

0x01

Computer-Generated F1 - Setup Record (TMATS)

Yes

0x02

Computer-Generated F2 - Recording Events

Yes

0x03

Computer-Generated F3 - Recording Index

Yes

0x04

Computer-Generated F4 - Streaming Config (TMATS)

No

0x09

PCM F1

Yes

0x11

Time Data F1

Yes

0x12

Time Data F2

No

0x19

1553 F1

Yes

0x1A

1553 F2 - 16PP194

Yes

0x21

Analog F1

Yes

0x29

Discrete F1

Yes

0x30

Message F0

Yes

0x38

ARINC-429 F0

Yes

0x40

Video F0

Yes

0x41

Video F1

Yes

0x42

Video F2

Yes

0x43

Video F3

No

0x44

Video F4

No

0x48

Image F0

Yes (untested)

0x49

Image F1

Yes (untested)

0x4A

Image F2

Yes (untested)

0x50

UART F0

Yes

0x58

IEEE 1394 F0

Yes (untested)

0x59

IEEE 1394 F1

Yes (untested)

0x60

Parallel F0

Yes (untested)

0x68

Ethernet F0 - Ethernet Data

Yes

0x69

Ethernet F1 - UDP Payload

Yes

0x70

TSPI/CTS F0 - GPS NMEA-RTCM

No

0x71

TSPI/CTS F1 - EAG ACMI

No

0x72

TSPI/CTS F2 - ACTTS

No

0x78

Controller Area Network Bus

No

0x79

Fibre Channel F0

No

0x7A

Fibre Channel F1

No

Running Tests

To run the included test suite install pdm and dev dependencies with pip:

pip install pdm
pdm install --dev

Then run:

pytest

Building the Documentation

After installing dependencies (or just “pip install sphinx”) Build the docs with:

python setup.py build_docs

The generated HTML will be in docs/html

Note: “Full” zip includes built documentation already.

Contributing

See CONTRIBUTING

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

pychapter10-1.1.19.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

pychapter10-1.1.19-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file pychapter10-1.1.19.tar.gz.

File metadata

  • Download URL: pychapter10-1.1.19.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pychapter10-1.1.19.tar.gz
Algorithm Hash digest
SHA256 9313e3cb399e2315e913698b6de6d3db7785a3f9a1c30d37922f75c43f840213
MD5 8474c63e1d5a7a9d3502ed0edc68298b
BLAKE2b-256 a6274c4dfaa558ebe5d27caf3e5e817cebc0b5ff08ff8cc8fc1c30cb213d950b

See more details on using hashes here.

File details

Details for the file pychapter10-1.1.19-py3-none-any.whl.

File metadata

  • Download URL: pychapter10-1.1.19-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pychapter10-1.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 cdcbe42652c9a4efd3e416ac276463860182c08f1d077b19db489a620d3c1b55
MD5 953354f79a38103209c249b267bdbc0f
BLAKE2b-256 8173826b37c2960fb646c056bbc6fc0295b41e3ef7dd1e28d75d263bc489380e

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