mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-08 03:10:15 +02:00
🎨 Rename modstool.py to mods4pandas.py
This commit is contained in:
parent
c48084de93
commit
1d2c5e2d10
5 changed files with 5 additions and 5 deletions
|
@ -164,7 +164,7 @@ class TagGroup:
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def merge_sub_tags_to_set(self):
|
def merge_sub_tags_to_set(self):
|
||||||
from .modstool import mods_to_dict
|
from .mods4pandas import mods_to_dict
|
||||||
value = {}
|
value = {}
|
||||||
|
|
||||||
sub_dicts = [mods_to_dict(e) for e in self.group]
|
sub_dicts = [mods_to_dict(e) for e in self.group]
|
||||||
|
@ -254,7 +254,7 @@ def sorted_groupby(iterable, key=None):
|
||||||
|
|
||||||
|
|
||||||
def _to_dict(root, raise_errors):
|
def _to_dict(root, raise_errors):
|
||||||
from .modstool import mods_to_dict, mets_to_dict
|
from .mods4pandas import mods_to_dict, mets_to_dict
|
||||||
from .alto4pandas import alto_to_dict
|
from .alto4pandas import alto_to_dict
|
||||||
|
|
||||||
root_name = ET.QName(root.tag)
|
root_name = ET.QName(root.tag)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from lxml import etree as ET
|
from lxml import etree as ET
|
||||||
|
|
||||||
|
|
||||||
from qurator.modstool.modstool import mets_to_dict
|
from qurator.modstool.mods4pandas import mets_to_dict
|
||||||
from qurator.modstool.lib import flatten
|
from qurator.modstool.lib import flatten
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ from lxml import etree as ET
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
from qurator.modstool.modstool import mods_to_dict
|
from qurator.modstool.mods4pandas import mods_to_dict
|
||||||
from qurator.modstool.lib import flatten
|
from qurator.modstool.lib import flatten
|
||||||
|
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -20,7 +20,7 @@ setup(
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'mods4pandas=qurator.modstool.modstool:main',
|
'mods4pandas=qurator.modstool.mods4pandas:main',
|
||||||
'alto4pandas=qurator.modstool.alto4pandas:main',
|
'alto4pandas=qurator.modstool.alto4pandas:main',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue