{"id":18708272,"url":"https://github.com/bottlesdevs/libwine","last_synced_at":"2025-04-12T10:34:05.832Z","repository":{"id":53907980,"uuid":"342793962","full_name":"bottlesdevs/libwine","owner":"bottlesdevs","description":"A python library for interacting with Wine.","archived":false,"fork":false,"pushed_at":"2021-08-09T09:15:53.000Z","size":208,"stargazers_count":31,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-20T07:17:34.737Z","etag":null,"topics":["python-library","windows","wine"],"latest_commit_sha":null,"homepage":"https://dev-docs.usebottles.com/libwine/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bottlesdevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-27T07:06:26.000Z","updated_at":"2024-08-27T23:59:02.000Z","dependencies_parsed_at":"2022-08-13T04:00:54.550Z","dependency_job_id":null,"html_url":"https://github.com/bottlesdevs/libwine","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlesdevs%2Flibwine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlesdevs%2Flibwine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlesdevs%2Flibwine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlesdevs%2Flibwine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bottlesdevs","download_url":"https://codeload.github.com/bottlesdevs/libwine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223511422,"owners_count":17157518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python-library","windows","wine"],"created_at":"2024-11-07T12:22:34.910Z","updated_at":"2024-11-07T12:22:35.435Z","avatar_url":"https://github.com/bottlesdevs.png","language":"Python","readme":"# libwine\nA python library for interacting with Wine.\n\n[![CodeFactor](https://www.codefactor.io/repository/github/bottlesdevs/libwine/badge)](https://www.codefactor.io/repository/github/bottlesdevs/libwine)\n[![PyPI version](https://badge.fury.io/py/libwine.svg)](https://badge.fury.io/py/libwine)\n\n## Usage\n```python\nfrom libwine.wine import Wine\n\nmy_wineprefix = Wine(\n    winepath=\"/path/to/wine\", # folder\n    wineprefix=\"/path/to/wineprefix\", # empty or existing\n    verbose=3 # +all\n)\n\n'''\nUpdate the wineprefix directory.\n'''\nmy_wineprefix.update()\n\n'''\nSimulate system restart for the wineprefix,\ndon't do normal startup operations.\n'''\nmy_wineprefix.restart()\n\n'''\nKill all processes running inside the wineprefix.\n'''\nmy_wineprefix.kill()\n\n'''\nSimulate system shutdown for the wineprefix, don't reboot.\n'''\nmy_wineprefix.shutdown()\n\n'''\nLaunch the winecfg tool on the active display.\n'''\nmy_wineprefix.winecfg()\n\n'''\nLaunch the cmd tool.\n'''\nmy_wineprefix.cmd()\nmy_wineprefix.cmd(terminal=\"gnome-terminal\") # on external terminal\n\n'''\nLaunch the taskmgr tool on the active display.\n'''\nmy_wineprefix.taskmanager()\n\n'''\nLaunch the control tool on the active display.\n'''\nmy_wineprefix.controlpanel()\n\n'''\nLaunch the uninstaller tool on the active display.\n'''\nmy_wineprefix.uninstaller()\n\n'''\nLaunch the regedit tool on the active display.\n'''\nmy_wineprefix.regedit()\n\n'''\nExecute custom wine commands inside the wineprefix.\n'''\nmy_wineprefix.command(\"DIR\")\n\n'''\nExecute exe/msi/bat files inside the wineprefix.\n'''\nmy_wineprefix.run_exe(\"path/to/file.exe\")\nmy_wineprefix.run_msi(\"ath/to/file.msi\")\nmy_wineprefix.run_bat(\"ath/to/file.bat\")\n\n'''\nList all keys values from the wineprefix register.\n'''\nmy_wineprefix.reg_list(\"HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Explorer\\\\Desktops\")\n\n'''\nAdd (or erdit) key to the wineprefix register.\n'''\nmy_wineprefix.reg_add(\n    key=\"HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Explorer\\\\Desktops\",\n    value=\"Default\",\n    data=\"1920x1080\"\n)\n\n'''\nDelete key from the wineprefix register.\n'''\nmy_wineprefix.reg_delete(\n    key=\"HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Explorer\\\\Desktops\",\n    value=\"Default\"\n)\n\n'''\nChange Windows version.\n'''\nmy_wineprefix.set_windows(\"win10\")\n\n'''\nManage Virtual Desktop.\n'''\nmy_wineprefix.set_virtual_desktop(\n    status=True,\n    res=\"800x600\"\n)\nmy_wineprefix.set_virtual_desktop(status=False)\n\n'''\nEnable or disable the windows manager decorations.\n'''\nmy_wineprefix.set_decorations(True)\n\n'''\nEnable or disable the windows manager control.\n'''\nmy_wineprefix.set_window_managed(True)\n\n'''\nEnable or disable auto mouse capture in fullscreen.\n'''\nmy_wineprefix.set_fullscreen_mouse_capture(True)\n\n'''\nSet custom DPI value.\n'''\nmy_wineprefix.set_dpi(120)\n\n'''\nOverriding a DLL in the wineprefix.\n'''\nmy_wineprefix.override_dll(\n    name=\"ucrtbase\",\n    type=2 # builtin/native\n)\n\nmy_wineprefix.override_dll(\n    name=\"ucrtbase\",\n    restore=True\n)\n\n'''\nList all DLL overrides in the wineprefix\n'''\nmy_wineprefix.override_dll_list()\n\n'''\nList running processes inside the wineprefix.\n'''\nmy_wineprefix.processes()\n\n'''\nKill a process\n'''\nprocess = my_wineprefix.processes()[0]\nprocess.kill()\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlesdevs%2Flibwine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbottlesdevs%2Flibwine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlesdevs%2Flibwine/lists"}