Get metadata source plugin by name.
(name: str)
| 53 | |
| 54 | @cache |
| 55 | def get_metadata_source(name: str) -> MetadataSourcePlugin | None: |
| 56 | """Get metadata source plugin by name.""" |
| 57 | name = name.lower() |
| 58 | plugins = find_metadata_source_plugins() |
| 59 | return next((p for p in plugins if p.data_source.lower() == name), None) |
| 60 | |
| 61 | |
| 62 | @contextmanager |
no test coverage detected