File size: 347 Bytes
7288748
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from abc import ABC, abstractmethod

from video import YoutubeVideo

class Transform(ABC):
    """Interface for concrete Transform which transform a video object."""

    @abstractmethod
    def apply(self, video: YoutubeVideo) -> YoutubeVideo:
        """Apply a transform to a video. Method must be implemented by
        concrete transforms."""