spresi2udm
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Sample Python code to convert a SPRESI RD file to the UDM format Author: [email protected] Date: 18 February 2020 Introduction ------------ This package contains Python 3 code used to convert a sample SPRESI RD file to the UDM format 6.0. The code was written for this particular conversion and doesn't pretend to be generic to handle e.g. all variations of existing RD files. Contents -------- ctutils.py - utility functions to manipulate connection tables rdfutils.py - classes and functions for reading of RD files (V2000 only at the moment) udm.py - function for writing UDM XML content spresi2udm.py - the main conversion script Execution --------- The script expects two arguments - the name of an input SPRESI RD file and the name of the output XML file: python spresi2udm.py <input SPRESI RD file> <output UDM file> for example python spresi2udm.py spresi-sample.rdf spresi.xml