Skip to main content

dcmReader

Parser for the DCM (Data Conservation format) format used by e.g. Vector, ETAS,...

Basic usage

The read function of DcmParser parses the given DCM-file and stores internally the parsed values.

Sample program: from dcmReader.dcm_reader import DcmReader

dcm = DcmReader()
dcm.read("tests/Sample.dcm")

readFunctions = dcm.get_functions()
for fnc in readFunctions:
    print(fnc)

Will return:

ParameterFunction
  Version: 1.0
  Description: Function for parameters
BlockParameterFunction
  Version: 2.0
  Description: Function for block parameters
CharacteristicLineFunction
  Version: 3.0
  Description: Function for characteristic line functions
FixedCharacteristicLineFunction
  Version: 3.1
  Description: Function for fixed characteristic line functions
GroupCharacteristicLineFunction
  Version: 3.2
  Description: Function for group characteristic line functions
CharacteristicMapFunction
  Version: 4.0
  Description: Function for characteristic map functions
FixedCharacteristicMapFunction
  Version: 4.1
  Description: Function for fixed characteristic map functions
GroupCharacteristicMapFunction
  Version: 4.2
  Description: Function for group characteristic map functions
DistributionFunction
  Version: 5.0
  Description: Function for distribution functions

You can also save a DCM object to a file with the write function. The output is sorted first by FUNKTION then by LANGNAME. This can also be used to sort a DCM file:

from dcmReader.dcm_reader import DcmReader

dcm = DcmReader()
dcm.read("tests/Sample.dcm")
dcm.write("tests/Sample_sorted.dcm")

UnitTests

The UnitTests can be run in the tests directory by running python Tests.py

Metadata

Release files for dcmReader 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcmReader 0.5.2
File Size Uploaded Provenance Actions
dcmreader-0.5.2.tar.gz 11.1 kB Without provenance Details for dcmreader-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dcmReader 0.5.2
File Interpreter ABI Platform Actions
dcmreader-0.5.2-py3-none-any.whl Python 3 none any Details for dcmreader-0.5.2-py3-none-any.whl

Total release size: 26.5 kB

Release files / dcmreader-0.5.2.tar.gz

Download URL dcmreader-0.5.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0e61b59c875b6910807725df1eff231a313bf137eb98e29ca6f68d4bc0031936
BLAKE2b-256 checksum
How to use checksums
634bde7fe43f56c47b2ce6ad1d84a641e678f6ad89fba036d92c625f725a998f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / dcmreader-0.5.2-py3-none-any.whl

Download URL dcmreader-0.5.2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
864c231171495abcff897ab310010b1bfb6129a49a08944ab4ba112b4f16ae25
BLAKE2b-256 checksum
How to use checksums
8f4a731a7f12fa0814cbfb1e8633672de88d75b8c1865947815f32a7eba97b41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for dcmReader 0.5.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page