mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-03 01:34:54 +00:00
Add MetadataEngine and ShortsMetadataEngine classes
This commit is contained in:
16
src/engines/MetadataEngine/BaseMetadataEngine.py
Normal file
16
src/engines/MetadataEngine/BaseMetadataEngine.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from abc import abstractmethod
|
||||
from typing import TypedDict
|
||||
|
||||
from .. import BaseEngine
|
||||
|
||||
class MetadataEngineSettings(TypedDict):
|
||||
title: str
|
||||
description: str
|
||||
|
||||
class BaseMetadataEngine(BaseEngine):
|
||||
def __init__(self, **kwargs) -> None:
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
def get_metadata(self, input: str) -> MetadataEngineSettings:
|
||||
...
|
||||
Reference in New Issue
Block a user