-
Notifications
You must be signed in to change notification settings - Fork 60
/
__init__.py
59 lines (49 loc) · 1.26 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"""A package for building reactive web applications."""
__version__ = "0.2.0.9008"
from ._shinyenv import is_pyodide as _is_pyodide
# User-facing subpackages that should be available on `from shiny import *`
from . import reactive
from . import render
from .session import *
from . import ui
# Private submodules that have some user-facing functionality
from ._app import App
from ._decorators import event
from ._validation import req
from ._deprecated import *
from . import module
if _is_pyodide:
# In pyodide, avoid importing _main because it imports packages that aren't
# available.
run_app = None
else:
from ._main import run_app
# N.B.: we intentionally don't import 'developer-facing' submodules (e.g.,
# html_dependencies) so that they aren't super visible when you `import shiny`, but
# developers who know what they're doing can import them directly.
__all__ = (
# public sub-packages
"reactive",
"render",
"session",
"ui",
# _app.py
"App",
# _decorators.py
"event",
# _main.py
"run_app",
# _modules.py
"module",
# _session.py
"Session",
"Inputs",
"Outputs",
# _validation.py
"req",
# _deprecated.py
"render_text",
"render_plot",
"render_image",
"render_ui",
)