-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: josh/use_actions into ginger/standardise
- Loading branch information
Showing
29 changed files
with
1,362 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from typing import Optional | ||
|
||
import abc | ||
|
||
|
||
class IIIFResourceBuilder(abc.ABC): | ||
""" | ||
Abstract base class for a IIIF resource builder. | ||
Subclasses should be registered with the IIIF plugin as builders using the | ||
register_iiif_builders function on the IIIIF interface. | ||
""" | ||
|
||
@abc.abstractmethod | ||
def match_and_build(self, identifier: str) -> Optional[dict]: | ||
... | ||
|
||
@abc.abstractmethod | ||
def build_identifier(self, *args, **kwargs) -> str: | ||
... |
Oops, something went wrong.