ihs29x
A simple spec-driven streaming ("SAX-style") parser for IHS 297 and 298 files, based on the specifications provided by twoninetyex. It handles 297 and 298 files in either fixed or comma delimited format. In accordance with my reading of the spec, it even handles intermixed formats within a single file, based on (sub-)file headers.
The only interesting function is ihs29x.stream_records, which may be called on an open file-like object in text mode.
Live documentation is available at https://derrickturk.github.io/ihs29x-python/docs/ihs29x.html.
Available under the MIT license.
Usage
For example, try:
import sys
from ihs29x import stream_records
def main(argv: list[str]) -> int:
if len(argv) != 2:
print(f'Usage {argv[0]} <298-or-297-file>', file=sys.stderr)
return 2
with open(argv[1]) as f:
for r in stream_records(f):
print(r)
return 0
if __name__ == '__main__':
sys.exit(main(sys.argv))
(c) 2023 terminus, LLC
Metadata
Release files for ihs29x 0.1.0
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 |
|---|---|---|---|---|
| ihs29x-0.1.0.tar.gz | 15.0 kB | Without provenance | Details for ihs29x-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ihs29x-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ihs29x-0.1.0-py3-none-any.whl |
Total release size: 31.0 kB
Release files / ihs29x-0.1.0.tar.gz
| Download URL | ihs29x-0.1.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b5e385b3ec616f89ec062cb07ac28f43016edd4f1544adca811df4a1dc60022
|
|
BLAKE2b-256 checksum How to use checksums |
e9cbe98850c3d0cac1a1af9b1ad4038fdd2e217d90bbd9b2e411b08f3da31bc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / ihs29x-0.1.0-py3-none-any.whl
| Download URL | ihs29x-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73778612a8a7c06d746298e8b108d7b2113a510a5f3961e1f26b55983115fac9
|
|
BLAKE2b-256 checksum How to use checksums |
e26b88edd1000ec3bd030e40e159628ac2883264009465879dab92b87530d0cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for ihs29x 0.1.0
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.