pytauri¶
Unreleased¶
0.4.0¶
bump workspace version
0.3.0¶
Added¶
- #80 - feat:
BuilderArgs
:- add
BuilderArgs::setup
to support tauri app setup hook. BuilderArgs::context
now can bePosition and Keyword
arguments.
- add
0.2.0¶
BREAKING¶
- #52 - refactor(standalone)!: new API for preparing python interpreter.
The
pytauri::standalone
module has been completely rewritten. Previously, you usedprepare_freethreaded_python_with_executable
andappend_ext_mod
. Now, you need to usePythonInterpreterBuilder
. See thepytauri
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 removeresource_dir()
UNC path prefix\\?\
forPythonInterpreterEnv::Standalone
. Fix pallets/jinja#1675 fornicegui-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
tostd::env::args_os()
. - set
sys.frozen
toTrue
. - call
multiprocessing.set_start_method
with- windows:
spawn
- unix:
fork
- windows:
- call
multiprocessing.set_executable
withstd::env::current_exe()
.
- set
- Add
fn is_forking
for checking if the app is spawned bymultiprocessing
.
- For standalone app:
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
withlocals
as arguments to execute_append_ext_mod.py
for better performance.