Skip to content

dipp/dipp.tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Various tools relevant for the DiPP platform (dipp.tools)

Various python tools for use with the DiPP Publishing Platform

  • Creation of OpenURLs
  • Validation of URNs
  • Indentation and prettyprinting of XML strings

Installation

The module is installed by running:

$ easy_install -f http://alkyoneus.hbz-nrw.de/dist -U dipp.tools

The command adds the module to your site-package directory and installs a commandline program.

This package depends on lxml, which needs libxml2 (2.7.8) and libxslt (1.1.26 or 1.1.26) to compile.

Usage

Commandline

The command urnvalidator can be used to check the validity of an URN:

$ urnvalidator -h
usage: urnvalidator [-h] [-l] [-n]

check if the URN is registered with the DNB

optional arguments:
  -h, --help  show this help message and exit
  -l, --url   the objects actual URL
  -n, --urn   the objects URN

Example:

$ urnvalidator -u http://www.dipp.nrw.de/lizenzen/dppl/fdppl/f-DPPL_v3_en_11-2008.html urn:nbn:de:0009-fdppl-v3-en3
urn:nbn:de:0009-fdppl-v3-en3 registered and valid url

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published