parser for dcm files
Project description
Introduction
Parser for DCM files Data Conversion Format. The package has two main classes DCMParser
and DCMObject
, which provide a toolkit to deal with DCM files used in automotive software development. While the DCMParser
is designed to read and interpret DCM files, the DCMObject
allows for structured representation and manipulation of the parsed data.
DCMParser
Features
- File Reading: Read and parse DCM files.
- Create DCM Object: Translate raw DCM file content into structured data and create a DCMObject.
Usage
-
Parsing the DCM file:
from dcmfile_parser import DCMParser , DCMObject dcmfile_parser = DCMParser("path/to/dcm/file")
-
Creating a DCM object:
dcm_obj = dcmfile_parser.create_dcm_object()
DCMObject
Features
- Initialization and Attribute Sorting: Auto-sorts parameters alphabetically by name upon initialization.
- Parameter Management: Remove, update (from another DcMObject), or add parameters.
- Exporter: Write the
DCMObject
back to a dcm file .
Usage
-
Write to a File:
dcm_obj.write()
-
Update Parameters from Another DCMObject:
updated_names, missing_names = dcm_obj.update_from(other_dcm_obj)
-
Add New Parameters from Another DCMObject:
dcm_obj.add_new_parameters_from(other_dcm_obj)
-
Remove a Parameter:
result = dcm_obj.remove_parameter_by_name("parameter_name")
-
Cleanup All Parameters:
dcm_obj.cleanup_parameters()
Dependencies
Specified in requirements.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dcmfile-parser-0.0.1.tar.gz
(14.3 kB
view hashes)
Built Distribution
Close
Hashes for dcmfile_parser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8292a59d85143497519f534d53d91c7ba4310df38cd7435bf570b19008ec2f48 |
|
MD5 | 97f5a66c6b808ce3b8b4fe264076076c |
|
BLAKE2b-256 | c39b0e5f6df0a95d928309a47b314bb5e9b67f3a6fd2228c7a2705e1d37d5bb1 |