Skip to content

Commit

Permalink
Add additional imports to __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
igalshilman committed Jul 18, 2024
1 parent 0e90dd1 commit 3bc51f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@


from datetime import timedelta
from restate.service import Service
from restate.context import Context, ObjectContext, ObjectSharedContext
from restate.context import WorkflowContext, WorkflowSharedContext
from restate.object import VirtualObject
from restate.workflow import Workflow
from restate import Service, Context
from restate import VirtualObject, ObjectContext, ObjectSharedContext
from restate import Workflow, WorkflowContext, WorkflowSharedContext
import restate

greeter = Service("greeter")
Expand Down
9 changes: 9 additions & 0 deletions python/restate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@
Restate SDK for Python
"""

from .service import Service
from .object import VirtualObject
from .workflow import Workflow

# types
from .context import Context, ObjectContext, ObjectSharedContext
from .context import WorkflowContext, WorkflowSharedContext
from .context import DurablePromise

from .endpoint import app

0 comments on commit 3bc51f9

Please sign in to comment.