From c48084de934a88227eedfdc4e0ca152c84e81114 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Wed, 29 Jun 2022 17:25:39 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=A1=EF=B8=8F=20Rename=20modstool=20script?= =?UTF-8?q?=20to=20mods4pandas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fb2c039..4aa8783 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Extract the MODS/ALTO metadata of a bunch of METS/ALTO files into pandas DataFra [![Build Status](https://circleci.com/gh/qurator-spk/modstool.svg?style=svg)](https://circleci.com/gh/qurator-spk/modstool) -**modstool** converts the MODS metadata from METS files into a pandas DataFrame. +**mods4pandas** converts the MODS metadata from METS files into a pandas DataFrame. Column names are derived from the corresponding MODS elements. Some domain knowledge is used to convert elements to a useful column, e.g. produce sets @@ -18,7 +18,7 @@ elements or attributes. ## Usage ~~~ -modstool /path/to/a/directory/containing/mets_files +mods4pandas /path/to/a/directory/containing/mets_files ~~~ ~~~ @@ -32,7 +32,7 @@ In this example we convert the MODS metadata contained in the METS files in `pd.read_pickle()`. ~~~ -% modstool /srv/data/digisam_mets-sample-300 +% mods4pandas /srv/data/digisam_mets-sample-300 INFO:root:Scanning directory /srv/data/digisam_mets-sample-300 301it [00:00, 19579.19it/s] INFO:root:Processing METS files diff --git a/setup.py b/setup.py index a35c92d..5d00a1b 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( install_requires=install_requires, entry_points={ 'console_scripts': [ - 'modstool=qurator.modstool.modstool:main', + 'mods4pandas=qurator.modstool.modstool:main', 'alto4pandas=qurator.modstool.alto4pandas:main', ] },