pytauri_wheel.lib
¶
PyTauri precompiled wheels.
Usage¶
pytauri-wheel
provides precompiled pytauri.EXT_MOD for pytauri,
which means you can normally use the pytauri
API, except for the following APIs provided by pytauri-wheel
:
- pytauri.builder_factory -> pytauri_wheel.lib.builder_factory
- pytauri.context_factory -> pytauri_wheel.lib.context_factory
Functions:
Name | Description |
---|---|
builder_factory |
A factory function for creating a pytauri.Builder instance. |
context_factory |
Generate a |
builder_factory
¶
builder_factory(*, opener: bool = True, clipboard_manager: bool = True, dialog: bool = True, fs: bool = True) -> Builder
A factory function for creating a pytauri.Builder instance.
This is a type-hinted wrapper function for pytauri.builder_factory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
bool
|
Whether to enable the plugin |
True
|
|
bool
|
Whether to enable the plugin |
True
|
|
bool
|
Whether to enable the plugin |
True
|
|
bool
|
Whether to enable the plugin |
True
|
Source code in python/pytauri-wheel/python/pytauri_wheel/lib.py
context_factory
¶
context_factory(src_tauri_dir: Path, /, *, tauri_config: Optional[str] = None) -> Context
Generate a Context
based on tauri.conf.json
, capabilities/
and etc in the src_tauri_dir
directory.
This type-hinted wrapper function for pytauri.context_factory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Path
|
required | |
|
Optional[str]
|
The config JSON string to be merged with |
None
|