PyChapter10
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
Metadata
Release files for pychapter10 1.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pychapter10-1.1.19.tar.gz | 2.4 MB | Without provenance | Details for pychapter10-1.1.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pychapter10-1.1.19-py3-none-any.whl | Python 3 | none | any | Details for pychapter10-1.1.19-py3-none-any.whl |
Total release size: 2.4 MB
Release files / pychapter10-1.1.19.tar.gz
| Download URL | pychapter10-1.1.19.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9313e3cb399e2315e913698b6de6d3db7785a3f9a1c30d37922f75c43f840213
|
|
BLAKE2b-256 checksum How to use checksums |
a6274c4dfaa558ebe5d27caf3e5e817cebc0b5ff08ff8cc8fc1c30cb213d950b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / pychapter10-1.1.19-py3-none-any.whl
| Download URL | pychapter10-1.1.19-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdcbe42652c9a4efd3e416ac276463860182c08f1d077b19db489a620d3c1b55
|
|
BLAKE2b-256 checksum How to use checksums |
8173826b37c2960fb646c056bbc6fc0295b41e3ef7dd1e28d75d263bc489380e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for pychapter10 1.1.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.