Refactor code structure for improved readability and maintainability
This commit is contained in:
13
test.py
Normal file
13
test.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from src.bibapi import SWB
|
||||
from src.bibapi.sru import PicaSchema, QueryTransformer
|
||||
|
||||
s_title = "TITLE=Java ist auch eine Insel"
|
||||
s_author = "AUTHOR=Ullenboom,Christian"
|
||||
|
||||
arguments = ["PPN=1172719780"]
|
||||
transformed = QueryTransformer(api_schema=PicaSchema, arguments=arguments).transform()
|
||||
print(transformed)
|
||||
|
||||
result = SWB().getBooks(transformed)
|
||||
for book in result:
|
||||
print(book)
|
||||
Reference in New Issue
Block a user