Nicegui

Latest version: v2.8.0

Safety actively analyzes 688323 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 11 of 44

1.3.3

Not secure
Improvements

- cleanups and refactorings made possible by having Python 3.8 as minimum version (by falkoschindler)

Bugfixes

- fixed on-air URL (by rodja)

1.3.2

Not secure
Bugfixes

- Remove NumPy dependency (1167 by dyipon, falkoschindler)
- Fix deletion of dynamically created elements (by falkoschindler)

1.3.1

Not secure
Bugfixes

- `netifaces` package is now an optional dependency (1166 by falkoschindler and rodja)
- fixed unexpected clearing of content (by falkoschindler)
- added missing `httpx` dependency (by rodja)

1.3.0

Not secure
New features and improvements

- New dependency management to reduce payload, improve load times and support ESM (658 by dclause, falkoschindler)
- Simplify API for registering [custom Vue components](https://github.com/zauberzeug/nicegui/blob/184c7f8590c19a481af47beb60d1e6393c2ce0d5/examples/custom_vue_component/counter.py#L6C1-L6C48) and [JavaScript dependencies](https://github.com/zauberzeug/nicegui/blob/184c7f8590c19a481af47beb60d1e6393c2ce0d5/examples/map/leaflet.py#L6) (1134 by rodja, falkoschindler)
- Improve [generic event registration](https://nicegui.io/documentation#generic_events) to provide access to sender and additional event arguments (583, 664, 672, 1095 by michelemoretti, bobanovo, falkoschindler)
- Provide source maps for minified dependencies (753 by aaad, falkoschindler)
- Tech-preview for [NiceGUI On Air](https://nicegui.io/documentation#nicegui_on_air): use `ui.run(on_air=True)` to get a temporary public URL through which your local app is accessible via the internet (falkoschindler, rodja)
- Reduce size of PyPI package by making pywebview, plotly and matplotlib optional (1010, 1143 by firai, rodja)
- Use snake_case style arguments for [`ui.notify()`](https://nicegui.io/documentation/notify) (#930 by CatamountJack)
- Allow using `ui.menu` for [custom context menus](https://nicegui.io/documentation/menu#custom_context_menu) (747 by falkoschindler)
- Remove `no-parent-event` prop for [`ui.menu`](https://nicegui.io/documentation/menu) (#713 by falkoschindler)
- Add `on_change` parameter for [`ui.knob`](https://nicegui.io/documentation/knob) (#1119 by rodja)
- Add [`ui.scroll_area`](https://nicegui.io/documentation/scroll_area) element (#1072 by eli-kha, falkoschindler)

Bugfixes

- Fix memory leak on client when removing elements (1089 by Kamil-Och, CrystalWindSnake, falkoschindler)
- Fix `on_shutdown` callback not being called on Windows 10 (1050 by chhinze, firai)
- Fix `ui.footer(fixed=False)` (1136 by falkoschindler)
- Find IP addresses more robustly using netifaces (1137 by falkoschindler)
- Fix two favicon issues (1139 by falkoschindler)
- Fix table selection not going away after removing selection (1115, 1122 by struffel, Trickshotblaster, falkoschindler)

Documentation

- Add demo for removing default padding with `ui.query` selector (1120 by rodja)


Breaking changes and migration guide

Generic event registration with `.on()`

The argument passed to the event handler is now of type `GenericEventArguments`. So instead of
py
grid.on('cellClicked', lambda msg: ui.label(f'{msg["args"]["data"]["name"]} has been clicked!'))

we access the event arguments like this:
py
grid.on('cellClicked', lambda e: ui.label(f'{e.args["data"]["name"]} has been clicked!'))

See https://nicegui.io/documentation/generic_events for more information.

Custom Vue components and JavaScript libraries

We radically simplified the API to register custom components and external libraries.
Now you can pass the location of the component and additional libraries as parameter to the derived class:
py
class CustomElement(ui.element, component='custom_element.js', libraries=['lib/some-library.min.js']):
super().__init__()
...

Note that you don't have to pass a `tag` to the base initializer. It will be set automatically.
Besides `libraries` you can specify `exposed_libraries` (will be added to `importmaps`) and `extra_libraries` (will be registered but not automatically requested by that element).
All library parameters support absolute and relative paths (relative to the Python file), either as `str` or as `Path`, and support globbing.

Exclude parameter

The `exclude` parameter of `ui.run` is gone.
Due to NiceGUI's new dynamic dependency management there is no need to explicitly exclude individual elements.

Python 3.7

With NiceGUI 1.3 we drop support for Python 3.7, which had its end of life on June 27, 2023.

1.2.24

Not secure
New features and improvements

- Allow [passing arguments](https://nicegui.io/documentation/refreshable#refreshable_ui_with_parameters) to `refreshable.refresh()` (1096 by CrystalWindSnake, falkoschindler)
- Allow passing an awaitable to [`ui.timer`](https://nicegui.io/documentation/timer) (#1098 by rodja)
- Improved DOM placement of [page layout elements](https://nicegui.io/documentation#page_layout) for better accessibility (1097 by ProbablyBrian, falkoschindler)

Bugfixes

- Fix `run_method()` for Quasar component wrappers like [`ui.input`](https://nicegui.io/documentation/input) and [`ui.select`](https://nicegui.io/documentation/select) (#1092, 1093 by CatamountJack, cj, rodja, falkoschindler)
- Fix warning about background tasks not being awaited as it happened sometimes with [`app.storage`](https://nicegui.io/documentation/storage) (#1099, 1104 by rodja, falkoschindler)

Documentation

- Fix URL to [Google Icons](https://nicegui.io/documentation/icon) (#1106 by frankhuurman, rodja)
- Use Tortoise ORM in the [database example](https://github.com/zauberzeug/nicegui/blob/main/examples/sqlite_database/main.py) (#1114 by rodja)

Development

- Fix Slack notification GitHub Action for missing webhook URL (1068, 1084, 1105 by michangelis)
- Update pytests to avoid deprecation warnings (1110 by falkoschindler)

1.2.23

Not secure
New features and improvements

- Support the `clearable` prop with [`ui.select`](https://nicegui.io/documentation/select) (#1069 by CrystalWindSnake, falkoschindler)
- Only create [storage](https://nicegui.io/documentation/storage) directory if needed (#1080, 1085 by rodja, falkoschindler)
- Add `toggle()` method to [`ui.menu`](https://nicegui.io/documentation/menu) (#860 by patrickwasp, falkoschindler)

Bugfixes

- Always update [`ui.input`](https://nicegui.io/documentation/input) after server-side value change (#1071, 1088 by pythonormen, eshyun, falkoschindler)
- Avoid [`ui.input`](https://nicegui.io/documentation/input) to repeat change events in a loop (#1086 by CrystalWindSnake, falkoschindler)
- Fix update of [`ui.plotly`](https://nicegui.io/documentation/plotly) (#1037, 1070 by duane-impulse, falkoschindler)
- Fix serving [media files](https://nicegui.io/documentation#media_files) from subdirectories (1076 by falkoschindler)
- Ensure move events from [joystick](https://nicegui.io/documentation/joystick) are only sent between start/end (#1082 by rodja)

Documentation

- Fix typo in [bindings docs](https://nicegui.io/documentation/bindings) (#1075 by suspiciousRaccoon)
- Add example for NiceGUI with [ROS2](https://github.com/zauberzeug/nicegui/tree/main/examples/ros2/) (#1059, 1083 by JensOgorek, rodja)
- Add documentation for [`ui.separator`](https://nicegui.io/documentation/separator) (#1081 by rodja)
- Add log [handler demo](https://nicegui.io/documentation/log#attach_to_a_logger) (1078 by BrianLandry)

Page 11 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.