pyuntl

read, write and modify UNTL metadata records


Keywords
untl, metadata, digital, libraries, records
License
BSD-3-Clause
Install
pip install pyuntl==1.0.1

Documentation

pyuntl

Build Status

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>

License

See LICENSE.txt

Acknowledgements

pyuntl was developed at the UNT Libraries and has been worked on by a number of developers over the years including:

Brandon Fredericks

Kurt Nordstrom

Joey Liechty

Lauren Ko

Mark Phillips

If you have questions about the project feel free to contact Mark Phillips at mark.phillips@unt.edu.