EVAL/core/upload/base.py
ChungHwan Han 3ec0cc786c
Feature/better usability (#6)
* refactor: api, core

* feat: static uploader

* doc: update readme

* fix: mkdir static file

* doc: typo
2023-03-23 16:33:45 +09:00

16 lines
316 B
Python

from abc import ABC, abstractmethod, abstractstaticmethod
from env import DotEnv
STATIC_DIR = "static"
class AbstractUploader(ABC):
@abstractmethod
def upload(self, filepath: str) -> str:
pass
@abstractstaticmethod
def from_settings(settings: DotEnv) -> "AbstractUploader":
pass