plugin ====== .. py:module:: plugin Attributes ---------- .. autoapisummary:: plugin.unused plugin.json_path Classes ------- .. autoapisummary:: plugin.OpenLibraryPlugin Module Contents --------------- .. py:data:: unused .. py:class:: OpenLibraryPlugin Bases: :py:obj:`server.plugins.ome_plugin.OMEPlugin` This class represents the Open Library plugin, which is a subclass of OMEPlugin. It provides functionality to create metadata cards from URLs or JSON payloads. .. py:attribute:: mimetypes :type: tuple[str] :value: ('application/vnd.openlibrary.authors+json', 'application/vnd.openlibrary.work+json') .. py:attribute:: newsgroups :type: dict[str, str] .. py:method:: make_metadata_card_from_url(url: str) -> server.plugins.ome_plugin.EducationResource This method creates a metadata card from a given URL. It currently does not implement any functionality. .. py:method:: make_metadata_card_from_json(json_payload: str) -> server.plugins.ome_plugin.EducationResource This method creates a metadata card from a given JSON payload. It currently does not implement any functionality. .. py:data:: json_path