create layer package and abstract class

This commit is contained in:
George Lacey 2025-07-12 12:26:41 +01:00
parent 92f9eae9e6
commit 54944244ae
2 changed files with 12 additions and 0 deletions

2
src/layers/__init__.py Normal file
View File

@ -0,0 +1,2 @@
from .layer import Layer
from .transcoder import Transcoder

10
src/layers/layer.py Normal file
View File

@ -0,0 +1,10 @@
from abc import ABC, abstractmethod
from dir import Root
class Layer(ABC):
def __init__(self):
pass
@abstractmethod
def __process(self, root: Root):
raise NotImplementedError