diff --git a/examples/flask/app.py b/examples/flask/app.py index 4c728a96..629b083e 100644 --- a/examples/flask/app.py +++ b/examples/flask/app.py @@ -4,7 +4,7 @@ from pythonjsonlogger import jsonlogger from src.inngest import inngest_client -import inngest +import inngest.flask from examples.functions import functions app = Flask(__name__) diff --git a/examples/tornado/app.py b/examples/tornado/app.py index fe6916c0..8c82986f 100644 --- a/examples/tornado/app.py +++ b/examples/tornado/app.py @@ -1,10 +1,12 @@ import asyncio + import tornado -from tornado.web import Application import tornado.autoreload from src.inngest import inngest_client +from tornado.web import Application + +import inngest.tornado from examples.functions import functions -import inngest async def main() -> None: diff --git a/inngest/__init__.py b/inngest/__init__.py index 7e70c648..148fedd5 100644 --- a/inngest/__init__.py +++ b/inngest/__init__.py @@ -2,7 +2,6 @@ from ._internal.const import Duration from ._internal.errors import NonRetriableError from ._internal.event import Event -from ._internal.frameworks import flask, tornado from ._internal.function import Function, FunctionOpts, Step, create_function from ._internal.function_config import ( BatchConfig, @@ -26,6 +25,4 @@ "TriggerCron", "TriggerEvent", "create_function", - "flask", - "tornado", ] diff --git a/inngest/_internal/frameworks/__init__.py b/inngest/_internal/frameworks/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/inngest/_internal/frameworks/flask.py b/inngest/flask.py similarity index 100% rename from inngest/_internal/frameworks/flask.py rename to inngest/flask.py diff --git a/inngest/_internal/frameworks/tornado.py b/inngest/tornado.py similarity index 100% rename from inngest/_internal/frameworks/tornado.py rename to inngest/tornado.py diff --git a/tests/test_flask.py b/tests/test_flask.py index 23a3b179..9fefac0e 100644 --- a/tests/test_flask.py +++ b/tests/test_flask.py @@ -4,6 +4,7 @@ from flask.testing import FlaskClient import inngest +import inngest.flask from .base import register, set_up, tear_down from .cases import create_cases diff --git a/tests/test_tornado.py b/tests/test_tornado.py index fd976de7..5ea3b04e 100644 --- a/tests/test_tornado.py +++ b/tests/test_tornado.py @@ -3,6 +3,7 @@ from tornado.web import Application import inngest +import inngest.tornado from .base import register, set_up, tear_down from .cases import create_cases