1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-07 19:05:06 +02:00

➡️ Rename modstool script to mods4pandas

This commit is contained in:
Gerber, Mike 2022-06-29 17:25:39 +02:00
parent 3121621e14
commit c48084de93
2 changed files with 4 additions and 4 deletions

View file

@ -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) [![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 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 knowledge is used to convert elements to a useful column, e.g. produce sets
@ -18,7 +18,7 @@ elements or attributes.
## Usage ## 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()`. `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 INFO:root:Scanning directory /srv/data/digisam_mets-sample-300
301it [00:00, 19579.19it/s] 301it [00:00, 19579.19it/s]
INFO:root:Processing METS files INFO:root:Processing METS files

View file

@ -20,7 +20,7 @@ setup(
install_requires=install_requires, install_requires=install_requires,
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'modstool=qurator.modstool.modstool:main', 'mods4pandas=qurator.modstool.modstool:main',
'alto4pandas=qurator.modstool.alto4pandas:main', 'alto4pandas=qurator.modstool.alto4pandas:main',
] ]
}, },