Python module for reading and writing UNTL metadata records.
>>> from pyuntl.untl_structure import PYUNTL_DISPATCH
>>> from pyuntl.untldoc import untlpydict2xmlstring, untlpy2dict
>>> record = PYUNTL_DISPATCH["metadata"]()
>>> title = PYUNTL_DISPATCH["title"]()
>>> title.set_qualifier("officialtitle")
>>> title.set_content("This is the title for the record")
>>> record.add_child(title)
>>> print(untlpydict2xmlstring(untlpy2dict(record)))
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<title qualifier="officialtitle">This is the title for the record</title>
</metadata>
- Python 3.6 - 3.9
This application can be installed by following the steps below:
$ git clone https://github.com/unt-libraries/pyuntl.git
$ cd pyuntl
$ python setup.py install
Install tox on your system:
$ pip install tox
To run the development tests, use the following command:
$ tox
See LICENSE.txt
pyuntl was developed at the UNT Libraries and has been worked on by a number of developers over the years including:
Brandon Fredericks
If you have questions about the project feel free to contact Mark Phillips at [email protected].