Skip to main content

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

  1. Parsing the DCM file:

    from dcmfile_parser import DCMParser , DCMObject
    dcmfile_parser = DCMParser("path/to/dcm/file")
    
  2. 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

  1. Write to a File:

    dcm_obj.write()
    
  2. Update Parameters from Another DCMObject:

    updated_names, missing_names = dcm_obj.update_from(other_dcm_obj)
    
  3. Add New Parameters from Another DCMObject:

    dcm_obj.add_new_parameters_from(other_dcm_obj)
    
  4. Remove a Parameter:

    result = dcm_obj.remove_parameter_by_name("parameter_name")
    
  5. Cleanup All Parameters:

    dcm_obj.cleanup_parameters()
    

Dependencies

Specified in requirements.txt

Project details


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.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcmfile_parser-0.0.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

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

Hashes for dcmfile-parser-0.0.2.tar.gz
Algorithm Hash digest
SHA256 db33a92dd37bc87cd6dc6dc46391397e394e3283fb33ea9605e0b1c0a8e8843d
MD5 3b9aae38588de9d62ca709147c7c8054
BLAKE2b-256 5ead3c907fc43188fd53ee938bb5d7ae70683876133949e388063946c22a33d5

See more details on using hashes here.

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

Hashes for dcmfile_parser-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f0c4613e4388187206452a6e6c6bdc4d8c0a086e6641794f8dfb02f7aec385
MD5 2cc153230970aee865d550686957c23f
BLAKE2b-256 6b23169655c284775e66b7fc20a3dc33a35616a912ba912fb015d01cb3013594

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page