pymarcspec:在pymarc之上实现MarcSpec

时间:2021-03-04 04:15:38
【文件属性】:
文件名称:pymarcspec:在pymarc之上实现MarcSpec
文件大小:19KB
文件格式:ZIP
更新时间:2021-03-04 04:15:38
Python pymarcspec 概括 在之上的实现,用于搜索MARC记录。 用法 这个想法是轻松地使用字符串在MARC上进行搜索,而无需编写复杂的代码来处理数据。 import sys from marcspec import MarcSearchParser from pymarc import MARCReader parser = MarcSearchParser () spec = parser . parse ( '650$a{^1= \\ 2}' ) with open ( sys . argv [ 1 ], 'rb' ) as f : for record in MARCReader ( f ): mesh_subjects = spec . search ( record ) for subfield in mesh_subjects :
【文件预览】:
pymarcspec-main
----MANIFEST.in(151B)
----VERSION.txt(6B)
----requirements.txt(61B)
----requirements_dev.txt(58B)
----test()
--------test_search.py(2KB)
--------test_parser.py(7KB)
--------test_semantics.py(3KB)
--------__init__.py(0B)
--------test_ebnf.py(1KB)
--------conftest.py(659B)
--------data()
--------test_integration.py(433B)
----setup.cfg(578B)
----setup.py(3KB)
----README.md(1KB)
----marcspec()
--------marcspec.ebnf(2KB)
--------model.py(4KB)
--------parser.py(14KB)
--------__init__.py(178B)
--------search.py(2KB)
--------semantics.py(5KB)
----.gitignore(2KB)
----bin()
--------pymarcsearch.py(219B)

网友评论