libwine
A python library for interacting with Wine.
Usage
from libwine.wine import Wine
my_wineprefix = Wine(
winepath="/path/to/wine", # folder
wineprefix="/path/to/wineprefix", # empty or existing
verbose=3 # +all
)
'''
Update the wineprefix directory.
'''
my_wineprefix.update()
'''
Simulate system restart for the wineprefix,
don't do normal startup operations.
'''
my_wineprefix.restart()
'''
Kill all processes running inside the wineprefix.
'''
my_wineprefix.kill()
'''
Simulate system shutdown for the wineprefix, don't reboot.
'''
my_wineprefix.shutdown()
'''
Launch the winecfg tool on the active display.
'''
my_wineprefix.winecfg()
'''
Launch the cmd tool.
'''
my_wineprefix.cmd()
my_wineprefix.cmd(terminal="gnome-terminal") # on external terminal
'''
Launch the taskmgr tool on the active display.
'''
my_wineprefix.taskmanager()
'''
Launch the control tool on the active display.
'''
my_wineprefix.controlpanel()
'''
Launch the uninstaller tool on the active display.
'''
my_wineprefix.uninstaller()
'''
Launch the regedit tool on the active display.
'''
my_wineprefix.regedit()
'''
Execute custom wine commands inside the wineprefix.
'''
my_wineprefix.command("DIR")
'''
Execute exe/msi/bat files inside the wineprefix.
'''
my_wineprefix.run_exe("path/to/file.exe")
my_wineprefix.run_msi("ath/to/file.msi")
my_wineprefix.run_bat("ath/to/file.bat")
'''
List all keys values from the wineprefix register.
'''
my_wineprefix.reg_list("HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops")
'''
Add (or erdit) key to the wineprefix register.
'''
my_wineprefix.reg_add(
key="HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
value="Default",
data="1920x1080"
)
'''
Delete key from the wineprefix register.
'''
my_wineprefix.reg_delete(
key="HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
value="Default"
)
'''
Change Windows version.
'''
my_wineprefix.set_windows("win10")
'''
Manage Virtual Desktop.
'''
my_wineprefix.set_virtual_desktop(
status=True,
res="800x600"
)
my_wineprefix.set_virtual_desktop(status=False)
'''
Enable or disable the windows manager decorations.
'''
my_wineprefix.set_decorations(True)
'''
Enable or disable the windows manager control.
'''
my_wineprefix.set_window_managed(True)
'''
Enable or disable auto mouse capture in fullscreen.
'''
my_wineprefix.set_fullscreen_mouse_capture(True)
'''
Set custom DPI value.
'''
my_wineprefix.set_dpi(120)
'''
Overriding a DLL in the wineprefix.
'''
my_wineprefix.override_dll(
name="ucrtbase",
type=2 # builtin/native
)
my_wineprefix.override_dll(
name="ucrtbase",
restore=True
)
'''
List all DLL overrides in the wineprefix
'''
my_wineprefix.override_dll_list()
'''
List running processes inside the wineprefix.
'''
my_wineprefix.processes()
'''
Kill a process
'''
process = my_wineprefix.processes()[0]
process.kill()
Metadata
Release files for libwine 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| libwine-0.7.linux-x86_64.tar.gz | 16.5 kB | Without provenance | Details for libwine-0.7.linux-x86_64.tar.gz |
Release files / libwine-0.7.linux-x86_64.tar.gz
| Download URL | libwine-0.7.linux-x86_64.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fea12192b9ab8aec640a7413ef07768a01c5a17f77edc245fb050228de200cfd
|
|
BLAKE2b-256 checksum How to use checksums |
0fe44c1bd3743e49dc842bf6fdb6f6dd940abb105609f12510a1d2f2bdb01217
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Security for libwine 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.