Skip to content

ssairanen/premis

 
 

Repository files navigation

PREMIS Library

This repository contains general Python functions for PREMIS 2.x XML handling.

Installation

This software is tested with Python 2.7 with Centos 7.x / RHEL 7.x releases.

Install the required software with command:

pip install -r requirements_github.txt

Usage

Import the library with:

import premis

All the functions can now be used with calling premis.<function>.

For example, the fixity() function in object_base.py can be used with:

fix_elem = premis.fixity('MD5', '...')

This creates a PREMIS <fixity> element with <messageDigestAlgorithm> and <messgeDigest> to fix_elem as lxml.etree.

Please, see the PREMIS documentation for more information: https://www.loc.gov/standards/premis/

Copyright

Copyright (C) 2018 CSC - IT Center for Science Ltd.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

About

PREMIS Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 92.9%
  • M4 5.3%
  • Makefile 1.8%