pytauri-core¶
Unreleased¶
0.8.0¶
Added¶
-
#265 - feat(pytauri): add
WebviewWindowBuilder
bindings.Added APIs
- Added
tauri-macos-private-api
feature - mod
tauri::
- struct
{WebviewUrl, WebviewUrlType}
mod webview::
- struct
{WebviewWindowBuilder, WebviewWindowBuilderArgs}
- fn
WebviewWindow::{__new__}
- struct
- struct
- The inner field of
ext_mod::Url
is now publicly accessible: - Added impl:
- Added
-
#259 - feat(pytauri): more
WebviewWindow
andAppHandle
bindings.Added APIs
- Added
tauri-devtools
feature - mod
tauri::
- fn
App::{run_on_main_thread}
- fn
AppHandle::{remove_plugin, restart, request_restart, set_dock_visibility, config, primary_monitor, monitor_from_point, available_monitors, cursor_position, cleanup_before_exit}
- struct
{PhysicalRect, LogicalRect, UserAttentionType, CursorIcon}
- mod
webview::
- fn
WebviewWindow::{scale_factor, inner_position, outer_position, inner_size, outer_size, is_always_on_top, current_monitor, primary_monitor, monitor_from_point, available_monitors, cursor_position, request_user_attention, set_effects, set_size, set_min_size, set_max_size, set_position, set_background_color, set_cursor_icon, set_cursor_position, set_overlay_icon, set_badge_label, set_progress_bar, set_title_bar_style, reload, open_devtools, close_devtools, is_devtools_open, cookies_for_url, cookies, set_cookie, delete_cookie}
- struct
{Color, SameSite, Cookie}
- fn
- mod
window::
- struct
{Monitor, Effect, EffectState, Effects, ProgressBarStatus, ProgressBarState, TitleBarStyle}
- struct
- fn
- Added
-
#220 - feat: support registering plugin from python.
Added APIs
- mod
tauri::
- mod
plugin
- field
BuilderArgs::plugins
- fn
AppHandle::plugin
- mod
- mod
tauri_plugin_dialog::
- fn
init
- fn
- mod
tauri_plugin_notification::
- fn
init
- fn
- mod
tauri_plugin_clipboard_manager
- mod
tauri_plugin_fs
- mod
tauri_plugin_opener
- mod
tauri_plugin_autostart
- mod
tauri_plugin_deep_link
- mod
tauri_plugin_deep_link
- mod
tauri_plugin_http
- mod
tauri_plugin_os
- mod
tauri_plugin_persisted_scope
- mod
tauri_plugin_positioner
- mod
tauri_plugin_process
- mod
tauri_plugin_shell
- mod
tauri_plugin_single_instance
- mod
tauri_plugin_updater
- mod
tauri_plugin_upload
- mod
tauri_plugin_websocket
- mod
tauri_plugin_window_state
- mod
tauri_plugin_global_shortcut
- mod
Internal¶
- #262 - refactor: use
pyo3_utils::serde
to replacepythonize
crate dependency.
0.7.0¶
Added¶
-
#208 - feat(pytauri)!: app state management and
AsyncTools
utils.tauri::Manager::{manage, state, try_state}
-
#182 - feat!: debugging tutorial.
Added
tauri::{IS_DEV, RESTART_EXIT_CODE, VERSION, webview_version}
for obtaining pytauri runtime configuration. -
#178 - feat(plugin-api)!: remove
rawPyInvoke
andChannel
.Channel.send, Invoke.resolve and InvokeResolver.resolve now can send
Union[bytes, str]
:- If
str
, it will be deserialized as JSON on the frontend. - If
bytes
, it will be sent asArrayBuffer
to the frontend.
- If
0.6.1¶
- #175 - fix(pytauri): bump
tauri-plugin-*
to fix rust docs build failures ondocs.rs
.
0.6.0¶
BREAKING¶
- #163 - refactor:
ext_mod::Url
->ext_mod::Url<'a'>
and removed the implementations ofDeref
andDerefMut
. - #157 - feat!:
Position.Physical(x, y)
->Position.Physical((x, y))
. See home/CHANGELOG
for more details.
Added¶
- #163 - feat(plugin): implement
tauri-plugin-dialog
bindings. -
#160 - feat!: integrate
plugin-notification
as a gated-feature ofpytauri
.Added:
pytauri_plugins::notification::NotificationBuilderArgs
. -
#157 - feat: fully implement
tauri::RunEvent
bindings.
Internal¶
- #155 - refactor: modularize
ext_mod_impl::self
.
0.5.0¶
BREAKING¶
- #141 - feat!:
pytauri.path.PathResolver
now returns apathlib.Path
object instead of astr
.
Added¶
- #136 - feat(pytauri): accessing the request headers in
Commands
. - #124 - feat: introduce
App::run_return
.
Deprecated¶
- #124 - fix: deprecate
App::run_iteration
.
0.4.0¶
Added¶
- #62 - feat: add
path::PathResolver
,Manager::path
. - #61 - feat: add
Emitter
,EventTarget
,EventTargetType
,ImplEmitter
for Event System. - #63 - feat: add
Url
andwebview::WebviewWindow::navigate
.
0.3.0¶
BREAKING¶
- #80 - refactor:
trait PyAppHandleExt
is now sealed and no longer has generic parameters. - #79 - pref: the fields of
enum RunEvent
struct
variants becomePy<T>
types from rust types.
Added¶
- #83 - feat: add
Context::set_assets
to allow using custom assets (e.g, loading from memory/disk). - #80 - feat: add
PyAppHandleExt::get_or_init_py_app_handle
, and the methods return&Py<AppHandle>
instead ofimpl Deref<Target = Py<AppHandle>>
now. - #79 - feat: implement tauri
tray
feature: enabletauri/tray-icon
featuremod tauri::
Rect
Size
enum RunEvent::{MenuEvent, TrayIconEvent}
AppHandle::{run_on_main_thread, exit, restart, on_tray_icon_event, tray_by_id, remove_tray_by_id, default_window_icon, invoke_key}
mod tauri::tray
mod webview::
WebviewWindow::{run_on_main_thread, set_icon}
- #75 - feat: implement tauri
menu
feature:mod tauri::
AppHandle::{on_menu_event, menu, set_menu, remove_menu, hide_menu, show_menu}
Position
PositionType
mod tauri::menu
mod tauri::image
mod tauri::window
mod tauri::webview
WebviewWindow::{on_menu_event, menu, set_menu, remove_menu, hide_menu, show_menu, is_menu_visible, popup_menu, popup_menu_at}
Webview::window
Changed¶
- #86 - pref: use
Cow<'_, [u8]>
instead ofVec<u8>
aspymehtods
/pyfunction
andextract
parameters to improve performance. see PyO3/pyo3#3310 and PyO3/pyo3#2888 for more details. - #79 - perf: almost all of pyo3
pymethods
will release theGIL
now. - #76 - perf: use
pyo3::intern!
inInvoke::bind_to
for commandsIPC
performance. - #75 - perf: all methods of
WebviewWindow
will release theGIL
now. - #75 - perf:
App::{run, run_iteration}
will use a singletonPy<AppHandle>
as an argument instead of fetching it fromtauri::State
each loop.
Internal¶
- #83 - refactor: add trait
utils::PyResultExt
to handle unraisablePyErr
.
0.2.0¶
BREAKING¶
- #57 - refactor: remove
RunEventEnum
, use matchedRunEvent
directly. - #56 - perf:
Invoke::bind_to
now returns[Self::BODY_KEY]
:PyBytes
instead ofPyByteArray
.
Added¶
- #50 - feat: add
ipc::Channel
,ipc::JavaScriptChannelId
,webview::Webview
,webview::WebviewWindow::as_ref::<webview>
for channels ipc. - #46 - feat: add
webview::WebviewWindow
,Manager
,ImplManager
,App::handle
. - #48 - feat: accessing the
WebviewWindow
inCommands
. - #49 - feat: add
Event
,EventId
,Listener
,ImplListener
for Event System.