Metadata-Version: 2.1
Name: nmrstar_xml
Version: 1.0
Summary: Bidirectional conversion of NMRSTAR to XML
Author: Gerard
Author-email: gweatherby@uchc.edu
License: MIT
Project-URL: Homepage, https://github.com/NMRbox/nmrstar_xml.git
Keywords: NMRSTAR,XML
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: lxml
Requires-Dist: pynmrstar

# nmrstar_xml
Convert NMRSTAR to XML and back again

## XML to NMRSTAR
```
usage: xmlstar [-h] [-i INPUT] [-o OUTPUT]

Translate XML file to NMR-STAR

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        XML input file (default stdin)
  -o OUTPUT, --output OUTPUT
                        NMR-STAR output file (default stdout)
```

##  NMRSTAR to XML
```
usage: starxml [-h] [-i INPUT] [-o OUTPUT]

Translate NMR-STAR file to XML

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        NMR-STAR input file (default stdin)
  -o OUTPUT, --output OUTPUT
                        XML output file (default stdout)
```

## As Python module

```
with Translator(args.input,args.output) as tr:
        tr.xml_translate()

with Translator(args.input,args.output) as tr:
        tr.star_translate()
```

