Nicegui

Latest version: v1.4.25

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

Scan your dependencies

Page 5 of 41

1.4.1

Not secure
Bugfixes

- Fix startup and shutdown handlers with existing FastAPI app (1870, 1874, 1877 by ProbablyBrian, zilch42, falkoschindler)
- Fix component name clashes (1887 by valgarf, falkoschindler)

Documentation

- Add missing `label` documentation for [`ui.select`](https://nicegui.io/documentation/select) (#1851 by gavinpotter, falkoschindler)
- Improve robustness and documentation for `AwaitableResponse` (1880 by falkoschindler)
- Add hint about styling [`ui.input`](https://nicegui.io/documentation/input) (#1884 by adarshpunj, falkoschindler)

1.4.0

Not secure
New features and enhancements

- Make [JavaScript](https://nicegui.io/documentation#run_javascript) calls optionally awaitable (1471, 1709, 1797 by falkoschindler)
- Introduce [react-like `ui.state`](https://nicegui.io/documentation/refreshable#refreshable_ui_with_reactive_state) to be used with `ui.refreshable` (1410, 1438, 1447, 1489 by qingant, falkoschindler)
- Move [Highcharts](https://nicegui.io/documentation/highcharts) dependency into a separate [nicegui-highcharts](https://github.com/zauberzeug/nicegui-highcharts) package to avoid the need for a license for commercial projects (#1850, 1863 by rodja, falkoschindler)
- Refactor `globals` module (1708, 1847 by falkoschindler)
- Use FastAPI's new `lifespan` API (1849 by rj-vera, rodja, falkoschindler)
- Use flex layout per default for layout elements (1614, 1796 by youyou015, natankeddem, falkoschindler)
- Replace netifaces with much simpler (and better) ifaddr (1856 by retsyo, rodja)
- Convert [`ui.timer`](https://nicegui.io/documentation/timer) into an element (#1710, 1829 by falkoschindler)
- Update httpx dependency (1820 by tscheburaschka, falkoschindler)
- Consistently mark methods private if not part of the public API (1326 by falkoschindler)
- Remove deprecated APIs (1711 by falkoschindler)

Bugfixes

- Fix [AG Grid](https://nicegui.io/documentation/aggrid) bug with hidden cells by upgrading to new version (#1860 by rhkarls, natankeddem, falkoschindler)

Documentation

- Add LangChain handler to the ["Chat with AI" example](https://github.com/zauberzeug/nicegui/blob/main/examples/chat_with_ai/main.py) (#1832 by cam-barts)

Breaking changes and migration guide

No need to await JavaScript calls

When using `run_javascript`, `run_method`, `call_api_method` and `call_column_api_method`,
you can decide whether the client should respond with a return value or not by awaiting the method call or not.
The method will automatically inform the client.
The `respond` parameter of `run_javascript` is not used anymore. See https://nicegui.io/documentation/run_javascript

`ui.chart` is now `ui.highchart` and requires the package "nicegui-highchart"

[Highcharts](https://nicegui.io/documentation/highcharts) requires you to buy a license for commercial products if the code is installed on your machine.
That's why we made it an optional package.
Install with `pip install nicegui[highcharts]`.

The `globals` module is gone

We removed the ugly `globals` module, which was never intended to be public API,
but might have been used nonetheless.

- If you need the app configuration, use `app.config` instead (using `from nicegui import app` to get the app object).
- If you need the current client or slot, use the `context` module instead.
- If you need the client dictionary, use `Client.instances` instead.

FastAPI's new lifespan API

Since FastAPI's `on_event("startup")` and `on_event("shutdown")` are deprecated,
NiceGUI switched to the new lifespan API.
You can still use `app.on_startup()` and `app.on_shutdown()`.

Layout elements use flex layout by default

Before you needed to use `ui.column` inside, e.g., `ui.tab_panel` and other elements to get proper alignment, padding and spacing.
Now most UI elements provide reasonable default so that the content looks like in a `ui.row` or `ui.column`.

Upgraded third-party dependencies

- vue: 3.3.4 → 3.3.6
- quasar: 2.12.2 → 2.13.0
- tailwindcss: 3.3.2 (unchanged)
- socket.io: 4.7.1 → 4.7.2
- es-module-shims: 1.7.3 → 1.8.0
- aggrid: 30.0.3 → 30.2.0
- echarts: 5.4.3 (unchanged)
- mermaid: 10.2.4 → 10.5.1
- nipplejs: 0.10.1 (unchanged)
- plotly: 2.24.3 → 2.27.0
- three: 0.154.0 → 0.157.0
- tween: 21.0.0 (unchanged)
- vanilla-jsoneditor: 0.18.0 → 0.18.10

1.3.18

Not secure
New features and enhancements

- Support single _and_ double quotes in [element props](https://nicegui.io/documentation#styling) (1800 by Dronakurl)
- Improve client and slot pruning (1826, 1838 by rodja, falkoschindler)

Bugfixes

- Fix incorrect python-socketio requirement (1842, 1843 by zilch42, falkoschindler)
- Fix click handler of `ui.menu_item` in `ui.context_menu` (1827 by rodja, falkoschindler)

Documentation

- Increased JavaScript timeout for search commands (1823 by rodja)

Development

- Fixed development docker container (1824 by rodja)

1.3.17

Not secure
New features and enhancements

- Introduce [`ui.context_menu`](https://nicegui.io/documentation/context_menu) (#1738, 1801 by gavinpotter, natankeddem, falkoschindler)
- Introduce `validate()` method for validation elements (1781 by falkoschindler)
- Improve recovery after reconnecting (1761, 1762, 1763 by s2terminal, rodja)
- Adapt socket.io heartbeat depending on the provided reconnect_timeout (1812 by rodja)

Bugfixes

- Fix "coroutine 'AsyncServer.enter_room' was never awaited" (1809 by FlynV, Barriradio, nghia-vo, falkoschindler)
- Refresh binding before page delivery (1561, 1775 by laserir, falkoschindler)

Documentation

- Improve Fly replay middleware to only replay if the target instance is still available (1814 by rodja)
- Fix typo: change "styles" to "style" (1799 by frankhuurman)
- Fix script ["Script Executor" example](https://github.com/zauberzeug/nicegui/blob/main/examples/script_executor/main.py) on Windows (#1767 by dotnfc, rodja)
- Clarify usage of [`ui.open`](https://nicegui.io/documentation/open) on auto-index pages (#1760 by rodja)
- Simplify [tree example](https://nicegui.io/documentation/tree#expand_and_collapse_programmatically) and showing disable feature (1759 by rodja)

1.3.16

Not secure
New features and enhancements

- Simplify row updates in [`ui.table`](https://nicegui.io/documentation/table) (#1753, 1755 by nghia-vo, falkoschindler)
- Warn if [`ui.notify`](https://nicegui.io/documentation/notify) has no connected client to display the message (#1754 by rodja)
- Add play, pause and seek methods to [`ui.audio`](https://nicegui.io/documentation/audio) and [`ui.video`](https://nicegui.io/documentation/video) (#1636, 1741 by Squigglez2, wgong, falkoschindler)
- Make name of [`ui.icon`](https://nicegui.io/documentation/icon) a bindable property (#1690, 1725 by thetableman, wgong, falkoschindler)
- Improve [`ui.aggrid.from_pandas`](https://nicegui.io/documentation/aggrid#create_grid_from_pandas_dataframe) to support datatypes like `DatetimeIndex` (1698 by johancj, bapowell, falkoschindler)
- Introduce default [style](https://nicegui.io/documentation/element#default_style), [classes](https://nicegui.io/documentation/element#default_classes) and [props](https://nicegui.io/documentation/element#default_props) for UI elements (1683, 1689 by natankeddem, falkoschindler)
- Add [expand and collapse methods](https://nicegui.io/documentation/tree#expand_and_collapse_programmatically) to `ui.tree` (1385, 1704 by frwkl, signup2k, falkoschindler, rodja)

Bugfixes

- Fix evaluation of empty [Tailwind class](https://nicegui.io/documentation#tailwind_css) values (1736 by natankeddem, falkoschindler)
- Fix Ctrl-C not closing the pywebview window (604, 1732 by miningmanna, ItsCubeTime, al-eax, rodja, falkoschindler)
- Connection lost popup drawer interaction (1729 by natankeddem, falkoschindler)

Documentation

- Add licenses of third-party libraries to [Dependencies.md](https://github.com/zauberzeug/nicegui/blob/main/DEPENDENCIES.md) (#1286, 1747 by firai, rodja, falkoschindler)

Development

- Fix type hint for `value` in [`ui.tab_panels`](https://nicegui.io/documentation/tabs) (#1728 by s2terminal)
- Fix race condition in pytests (1734 by miningmanna, rodja)

1.3.15

Not secure
New features and enhancements

- Introduce [`ui.code`](https://nicegui.io/documentation/code) for displaying code blocks (#592, 1567, 1653 by yipeng-jiang, angel0614563, falkoschindler)
- Introduce [`ui.editor`](https://nicegui.io/documentation/editor) (#1124, 1651 by DelScipio, falkoschindler)
- Introduce [`ui.timeline`](https://nicegui.io/documentation/timeline) (#1639 by alikalik9, falkoschindler)
- Introduce [`run.cpu_bound`](https://nicegui.io/documentation#running_cpu-bound_tasks) and [`run.io_bound`](https://nicegui.io/documentation#running_i_o-bound_tasks) (1609, 1656 by WolfgangFahl, falkoschindler)
- Improve `ui.echart` with [click events](https://nicegui.io/documentation/echart#echart_with_clickable_points) and [dynamic options](https://nicegui.io/documentation/echart#echart_with_dynamic_properties) (1562, 1579 by thetableman)
- Support non-string column names for [AG Grid from pandas](https://nicegui.io/documentation/aggrid#create_grid_from_pandas_dataframe) (1665 by CrystalWindSnake, falkoschindler)

On Air

- Correctly propagate the storage session ID to the app (1603 by Smug246, rodja)
- Support multiple identical header fields in HTTP responses (1661 by rodja)

Documentation

- Add an [example for authentication and user management](https://github.com/zauberzeug/nicegui/blob/main/examples/descope_auth/main.py) with [Descope](https://descope.com) (#1676 by rodja)
- Improve [demo for `ui.menu`](https://nicegui.io/documentation/menu) (#1657 by natankeddem, rodja)
- Keep header height unchanged when [opening a dialog](https://nicegui.io/documentation/dialog) (#1678 by natankeddem, falkoschindler)
- New [ROS2 tutorial](https://github.com/zauberzeug/nicegui/wiki/ROS2-image-display) which explains step-by-step how NiceGUI can be used with ROS2 (by JensOgorek)

Development

- Add a [basic dev container](https://github.com/zauberzeug/nicegui/blob/main/CONTRIBUTING.md#dev-container) to simplify contributing to the project (1057, 1532 by xec-abailey, jacoverster, natankeddem, rodja)
- Add NO_NETIFACES [environment variable](https://nicegui.io/documentation#environment_variables) for Docker releases (1662 by rodja)

Page 5 of 41

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.