pytauri
BREAKING
#161 - refactor(pytauri)!: refactor BuilderArgs
to TypedDict
.
Added
#160 - feat!: integrate plugin-notification
as a gated-feature of pytauri
.
Fixed
#159 - fix(standalone): explicitly pass PyString
to multiprocessing.set_executable
.
BREAKING
#133 - fix(pytauri)!: make BuilderArgs.invoke_handler
as required parameter for #110.
Added
#80 - feat: BuilderArgs
:
add BuilderArgs::setup
to support tauri app setup hook.
BuilderArgs::context
now can be Position and Keyword
arguments.
BREAKING
#52 - refactor(standalone)!: new API for preparing python interpreter.
The pytauri::standalone
module has been completely rewritten.
Previously, you used prepare_freethreaded_python_with_executable
and append_ext_mod
. Now, you need to use PythonInterpreterBuilder
.
See the pytauri
crate rust API docs and tutorial (examples/tauri-app) main.rs
code for more information on how to migrate.
Added
#60 - feat: re-export dunce::simplified
to remove resource_dir()
UNC path prefix \\?\
for PythonInterpreterEnv::Standalone
. Fix pallets/jinja#1675 for nicegui-app
standalone example.
#51 - feat: support multiprocessing
for standalone app.
For standalone app:
set sys.executable
to the actual python interpreter executable path.
set sys.argv
to std::env::args_os()
.
set sys.frozen
to True
.
call multiprocessing.set_start_method
with
windows: spawn
unix: fork
call multiprocessing.set_executable
with std::env::current_exe()
.
Add fn is_forking
for checking if the app is spawned by multiprocessing
.
Internal
#54 - feat: export the extension module to sys.modules["__pytauri_ext_mod__"]
if on standalone mode.
#52 - feat: set sys._pytauri_standalone=True
when run on standalone app (i.e., launch from rust).
#51 - refactor: use Python::run
with locals
as arguments to execute _append_ext_mod.py
for better performance.
2025-01-15
2025-01-15
GitHub
Back to top