From 21c925f76037deddc79badd7330bdcbcfe4d5561 Mon Sep 17 00:00:00 2001 From: Fabien LOISON Date: Wed, 13 Dec 2017 11:35:47 +0100 Subject: [PATCH] main APIs --- yoga/__init__.py | 2 ++ yoga/image/__init__.py | 8 ++++++++ yoga/model/__init__.py | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/yoga/__init__.py b/yoga/__init__.py index e69de29..58b8f4a 100644 --- a/yoga/__init__.py +++ b/yoga/__init__.py @@ -0,0 +1,2 @@ +from . import image # noqa +from . import model # noqa diff --git a/yoga/image/__init__.py b/yoga/image/__init__.py index e69de29..d0b198b 100644 --- a/yoga/image/__init__.py +++ b/yoga/image/__init__.py @@ -0,0 +1,8 @@ +from .options import normalize_options + + +def optimize(input_file, output_file, options={}): + options = normalize_options(options) + # TODO input_file -> string (path), bytes, file-like + # TODO output_file -> string (path), file-like + raise NotImplementedError() # TODO diff --git a/yoga/model/__init__.py b/yoga/model/__init__.py index e69de29..05a18de 100644 --- a/yoga/model/__init__.py +++ b/yoga/model/__init__.py @@ -0,0 +1,5 @@ +def optimize(input_file, output_file, options={}): + # TODO normalize options + # TODO input_file -> string (path), bytes, file-like + # TODO output_file -> string (path), file-like + raise NotImplementedError() # TODO