(cls)
| 35 | |
| 36 | @classmethod |
| 37 | def get_all_output_formats(cls) -> Mapping[str, OutputBase]: |
| 38 | handlers = OUTPUT_HANDLER_CACHE.setdefault(cls.entrypoint(), {}) |
| 39 | |
| 40 | if not handlers: |
| 41 | for x in pkg_resources.iter_entry_points(cls.entrypoint()): |
| 42 | handler = x.load() |
| 43 | handlers[x.name] = handler |
| 44 | |
| 45 | return handlers |
| 46 | |
| 47 | @classmethod |
| 48 | def get_format(cls, uri: str, parsed=None) -> OutputBase: |