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.
Install
pip install dcmfile_parser
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
DCMObjectback 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dcmfile-parser-0.0.2.tar.gz.
File metadata
- Download URL: dcmfile-parser-0.0.2.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db33a92dd37bc87cd6dc6dc46391397e394e3283fb33ea9605e0b1c0a8e8843d
|
|
| MD5 |
3b9aae38588de9d62ca709147c7c8054
|
|
| BLAKE2b-256 |
5ead3c907fc43188fd53ee938bb5d7ae70683876133949e388063946c22a33d5
|
File details
Details for the file dcmfile_parser-0.0.2-py3-none-any.whl.
File metadata
- Download URL: dcmfile_parser-0.0.2-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5f0c4613e4388187206452a6e6c6bdc4d8c0a086e6641794f8dfb02f7aec385
|
|
| MD5 |
2cc153230970aee865d550686957c23f
|
|
| BLAKE2b-256 |
6b23169655c284775e66b7fc20a3dc33a35616a912ba912fb015d01cb3013594
|