22 lines
425 B
Python
22 lines
425 B
Python
from abc import abstractmethod
|
|
from typing import BinaryIO
|
|
|
|
|
|
class BaseImagesUploader:
|
|
|
|
@abstractmethod
|
|
def get_url(self, filename: str) -> bytes:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_abs_path(self, filename: str) -> bytes:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def delete(self, filename: str):
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def upload(self, file: BinaryIO, filename: str) -> str:
|
|
pass
|