swh.deposit.parsers module#
Module in charge of defining parsers with SWORD 2.0 supported mediatypes.
- class swh.deposit.parsers.SWHFileUploadZipParser[source]#
Bases:
FileUploadParser
File upload parser limited to zip archive.
- media_type = 'application/zip'#
- class swh.deposit.parsers.SWHFileUploadTarParser[source]#
Bases:
FileUploadParser
File upload parser limited to tarball (tar, tar.gz, tar.*) archives.
- media_type = 'application/x-tar'#
- class swh.deposit.parsers.SWHXMLParser[source]#
Bases:
BaseParser
XML parser.
- media_type = 'application/xml'#
- class swh.deposit.parsers.SWHAtomEntryParser[source]#
Bases:
SWHXMLParser
Atom entry parser limited to specific mediatype
- media_type = 'application/atom+xml;type=entry'#