I have written some code which downloads a bibliographic record as XML, and then processes the XML to turn it into MARC XML, and then pumps it into pymarc, a Python library for MARC processing, and from there I can save it as MARCXML or MARC21 binary.
This uses Python requests, rather than the catalog API as generated by swagger-codegen. Has anyone been successful in getting the swagger-codegen heavy client to also allow more low-level requests, and such?
It isn’t clear to me that the swagger generated API supports changing the media type, or getting “raw” responses. Since getting MARC is probably a common use case, I expect someone else has also experienced this and may have some insights.