2024-03-29 10:28:05 +00:00
|
|
|
|
# coding=utf-8
|
|
|
|
|
|
"""
|
|
|
|
|
|
@project: maxkb
|
|
|
|
|
|
@Author:虎
|
|
|
|
|
|
@file: base_split_handle.py
|
|
|
|
|
|
@date:2024/3/27 18:13
|
|
|
|
|
|
@desc:
|
|
|
|
|
|
"""
|
|
|
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
from typing import List
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BaseSplitHandle(ABC):
|
|
|
|
|
|
@abstractmethod
|
|
|
|
|
|
def support(self, file, get_buffer):
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
@abstractmethod
|
2024-04-26 10:03:02 +00:00
|
|
|
|
def handle(self, file, pattern_list: List, with_filter: bool, limit: int, get_buffer, save_image):
|
2024-03-29 10:28:05 +00:00
|
|
|
|
pass
|
2024-11-14 03:11:53 +00:00
|
|
|
|
|
|
|
|
|
|
@abstractmethod
|
2024-11-28 06:34:51 +00:00
|
|
|
|
def get_content(self, file, save_image):
|
2024-11-14 03:11:53 +00:00
|
|
|
|
pass
|