dash-devtools-plus 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/PKG-INFO +22 -2
  2. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/README.md +16 -1
  3. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus/__init__.py +1 -1
  4. dash_devtools_plus-0.1.2/dash_devtools_plus/assets/dash_devtools_plus.js +412 -0
  5. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus/hook_inventory.py +6 -1
  6. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus/plugin.py +52 -2
  7. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus.egg-info/PKG-INFO +22 -2
  8. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus.egg-info/SOURCES.txt +1 -0
  9. dash_devtools_plus-0.1.2/dash_devtools_plus.egg-info/requires.txt +14 -0
  10. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/pyproject.toml +8 -1
  11. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/tests/test_example_app.py +3 -2
  12. dash_devtools_plus-0.1.2/tests/test_fastapi_backend.py +139 -0
  13. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/tests/test_plugin.py +21 -0
  14. dash_devtools_plus-0.1.1/dash_devtools_plus/assets/dash_devtools_plus.js +0 -412
  15. dash_devtools_plus-0.1.1/dash_devtools_plus.egg-info/requires.txt +0 -7
  16. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/LICENSE +0 -0
  17. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus/assets/dash_devtools_plus.css +0 -0
  18. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus/server_metrics.py +0 -0
  19. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus.egg-info/dependency_links.txt +0 -0
  20. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus.egg-info/entry_points.txt +0 -0
  21. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/dash_devtools_plus.egg-info/top_level.txt +0 -0
  22. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/setup.cfg +0 -0
  23. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/tests/test_hook_inventory.py +0 -0
  24. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/tests/test_i18n.py +0 -0
  25. {dash_devtools_plus-0.1.1 → dash_devtools_plus-0.1.2}/tests/test_server_metrics.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dash-devtools-plus
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A focused developer console for Dash applications, powered by Dash hooks.
5
5
  Author: dash-devtools-plus contributors
6
6
  License-Expression: MIT
@@ -14,15 +14,20 @@ Classifier: Programming Language :: Python :: 3.9
14
14
  Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
17
18
  Requires-Python: >=3.9
18
19
  Description-Content-Type: text/markdown
19
20
  License-File: LICENSE
20
21
  Requires-Dist: dash>=3.4.0
22
+ Requires-Dist: importlib-metadata>=4.0; python_version < "3.10"
21
23
  Requires-Dist: psutil>=5.9
22
24
  Provides-Extra: dev
23
25
  Requires-Dist: build>=1.2.2; extra == "dev"
26
+ Requires-Dist: httpx>=0.28; extra == "dev"
24
27
  Requires-Dist: pytest>=8.0; extra == "dev"
25
28
  Requires-Dist: ruff>=0.9; extra == "dev"
29
+ Provides-Extra: fastapi
30
+ Requires-Dist: dash[fastapi]>=4.2; extra == "fastapi"
26
31
  Dynamic: license-file
27
32
 
28
33
  <p align="center">
@@ -107,16 +112,31 @@ See [Configuration](./docs/en/configuration.md) for behavior, validation rules,
107
112
 
108
113
  ## 🧪 Example applications
109
114
 
110
- Three applications in [`examples/`](./examples/) cover increasingly complex use cases:
115
+ Four applications in [`examples/`](./examples/) cover increasingly complex use cases:
111
116
 
112
117
  | Example | Focus | Run |
113
118
  | --- | --- | --- |
114
119
  | `simple` | One server callback and one clientside callback. | `python examples/simple/app.py` |
115
120
  | `intermediate` | A travel-budget planner built with Dash core components. | `python examples/intermediate/app.py` |
116
121
  | `comprehensive` | A large callback laboratory for acceptance testing all workspaces. | `python examples/comprehensive/app.py` |
122
+ | `fastapi` | A WebSocket-powered server-time stream with FastAPI APIs. | `python examples/fastapi/app.py` |
117
123
 
118
124
  They share port `8050`; run one at a time. Read [Example applications](./docs/en/examples.md) before using the comprehensive callback laboratory.
119
125
 
126
+ ## FastAPI backend
127
+
128
+ Dash's FastAPI backend requires Dash 4.2 or later. Install the optional extra,
129
+ then construct Dash with `backend="fastapi"` or provide an existing FastAPI
130
+ server:
131
+
132
+ ```bash
133
+ pip install "dash-devtools-plus[fastapi]"
134
+ ```
135
+
136
+ See the [`fastapi` example](./examples/fastapi/app.py) for a small server-time
137
+ stream that uses `websocket_callbacks=True`, `ctx.websocket.get_prop`, and
138
+ `set_props`, alongside custom asynchronous FastAPI APIs.
139
+
120
140
  ## 🛠️ Development
121
141
 
122
142
  Use the project environments described by the repository setup, then run:
@@ -80,16 +80,31 @@ See [Configuration](./docs/en/configuration.md) for behavior, validation rules,
80
80
 
81
81
  ## 🧪 Example applications
82
82
 
83
- Three applications in [`examples/`](./examples/) cover increasingly complex use cases:
83
+ Four applications in [`examples/`](./examples/) cover increasingly complex use cases:
84
84
 
85
85
  | Example | Focus | Run |
86
86
  | --- | --- | --- |
87
87
  | `simple` | One server callback and one clientside callback. | `python examples/simple/app.py` |
88
88
  | `intermediate` | A travel-budget planner built with Dash core components. | `python examples/intermediate/app.py` |
89
89
  | `comprehensive` | A large callback laboratory for acceptance testing all workspaces. | `python examples/comprehensive/app.py` |
90
+ | `fastapi` | A WebSocket-powered server-time stream with FastAPI APIs. | `python examples/fastapi/app.py` |
90
91
 
91
92
  They share port `8050`; run one at a time. Read [Example applications](./docs/en/examples.md) before using the comprehensive callback laboratory.
92
93
 
94
+ ## FastAPI backend
95
+
96
+ Dash's FastAPI backend requires Dash 4.2 or later. Install the optional extra,
97
+ then construct Dash with `backend="fastapi"` or provide an existing FastAPI
98
+ server:
99
+
100
+ ```bash
101
+ pip install "dash-devtools-plus[fastapi]"
102
+ ```
103
+
104
+ See the [`fastapi` example](./examples/fastapi/app.py) for a small server-time
105
+ stream that uses `websocket_callbacks=True`, `ctx.websocket.get_prop`, and
106
+ `set_props`, alongside custom asynchronous FastAPI APIs.
107
+
93
108
  ## 🛠️ Development
94
109
 
95
110
  Use the project environments described by the repository setup, then run:
@@ -2,7 +2,7 @@
2
2
 
3
3
  from .plugin import configure_devtools_plus, register
4
4
 
5
- __version__ = "0.1.1"
5
+ __version__ = "0.1.2"
6
6
 
7
7
  # Loading the ``dash_hooks`` entry point imports this module. Registration is
8
8
  # idempotent, so explicit imports and automatic discovery can safely coexist.