mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-08 03:10:15 +02:00
➡️ Rename modstool script to mods4pandas
This commit is contained in:
parent
3121621e14
commit
c48084de93
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ Extract the MODS/ALTO metadata of a bunch of METS/ALTO files into pandas DataFra
|
|||
|
||||
[](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
|
||||
|
|
2
setup.py
2
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',
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue