Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidance on converting .cdxml files to .cdx from the command line #35

Open
jbacsa opened this issue Mar 11, 2024 · 1 comment
Open

Guidance on converting .cdxml files to .cdx from the command line #35

jbacsa opened this issue Mar 11, 2024 · 1 comment

Comments

@jbacsa
Copy link

jbacsa commented Mar 11, 2024

Hi, I would like to simply convert a cdxml file to a cdx file from the command line in windows (C:\pycdxml\pycdxml-master\pycdxml). Is there a command line interface that I can use?
Thanks
John

@kienerj
Copy link
Owner

kienerj commented Mar 13, 2024

Hi John,

for now it is just a python library so no CLI interface exists. So you will have to create a python environment and write python code (see readme). The code needed is very simple:

from pycdxml import cdxml_converter
doc = cdxml_converter.read_cdxml('/path/to/structure.cdxml')
cdxml_converter.write_cdx_file(doc, '/path/to/structure.cdx')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants