Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NF: Implementation of lazy_loading in fury.stream.server #919

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion fury/stream/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ __all__ = [
"Widget",
"check_port_is_available",
"server",
"client",
"tools",
]

from . import server
from . import (
client,
server,
tools,
widget as widget,
)
from .client import FuryStreamClient, FuryStreamInteraction, interaction_callback
from .tools import (
ArrayCircularQueue,
Expand Down
4 changes: 2 additions & 2 deletions fury/stream/server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from fury.stream.server.main import web_server, web_server_raw_array
import lazy_loader as lazy

__all__ = ["web_server", "web_server_raw_array"]
__getattr__, __dir__, __all__ = lazy.attach_stub(__name__, __file__)
22 changes: 22 additions & 0 deletions fury/stream/server/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
__all__ = ["async_app", "main"]
from . import (
async_app,
main,
)
from .async_app import (
get_app as get_app,
index as index,
javascript as javascript,
mjpeg_handler as mjpeg_handler,
offer as offer,
on_shutdown as on_shutdown,
set_mouse as set_mouse,
set_mouse_click as set_mouse_click,
set_weel as set_weel,
websocket_handler as websocket_handler,
)
from .main import (
RTCServer as RTCServer,
web_server as web_server,
web_server_raw_array as web_server_raw_array,
)
Loading