id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
32,000
scummvm.py
lutris_lutris/lutris/runners/scummvm.py
import os import subprocess from gettext import gettext as _ from typing import Any, Dict, List from lutris import settings from lutris.runners.runner import Runner from lutris.util import system from lutris.util.strings import split_arguments _supported_scale_factors = { "hq": ["2", "3"], "edge": ["2", "3"],...
19,548
Python
.py
541
24.166359
118
0.452155
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,001
dosbox.py
lutris_lutris/lutris/runners/commands/dosbox.py
"""DOSBox installer commands""" # Standard Library import os # Lutris Modules from lutris import runtime from lutris.runners import import_runner from lutris.util import system from lutris.util.log import logger def dosexec(config_file=None, executable=None, args=None, close_on_exit=True, working_dir=None): """...
1,761
Python
.py
44
33.704545
96
0.66803
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,002
wine.py
lutris_lutris/lutris/runners/commands/wine.py
"""Wine commands for installers""" # pylint: disable=too-many-arguments import os import shlex import time from lutris import runtime, settings from lutris.monitored_command import MonitoredCommand from lutris.runners import import_runner from lutris.util import linux, system from lutris.util.log import logger from l...
18,458
Python
.py
469
32.029851
119
0.647102
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,003
gamecontrollerdb.py
lutris_lutris/lutris/util/gamecontrollerdb.py
# Standard Library import os # Lutris Modules from lutris.settings import RUNTIME_DIR from lutris.util import system from lutris.util.log import logger class ControllerMapping: valid_keys = [ "platform", "leftx", "lefty", "rightx", "righty", "a", "b", ...
2,073
Python
.py
68
21.485294
81
0.546914
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,004
cookies.py
lutris_lutris/lutris/util/cookies.py
import time from http.cookiejar import Cookie, MozillaCookieJar class WebkitCookieJar(MozillaCookieJar): """Subclass of MozillaCookieJar for compatibility with cookies coming from Webkit2. This disables the magic_re header which is not present and adds compatibility with HttpOnly cookies (See http://b...
2,724
Python
.py
67
24.223881
107
0.468833
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,005
joypad.py
lutris_lutris/lutris/util/joypad.py
# Standard Library import binascii import struct # Lutris Modules from lutris.util.gamecontrollerdb import GameControllerDB from lutris.util.log import logger try: import evdev except ImportError: evdev = None except AttributeError as err: # 'evdev' versions 1.5 and earlier are incompatible with Python 3....
2,160
Python
.py
59
30.40678
87
0.665388
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,006
linux.py
lutris_lutris/lutris/util/linux.py
"""Linux specific platform code""" import json import os import platform import re import resource import shutil import sys from collections import Counter, defaultdict from lutris.util import flatpak, system from lutris.util.graphics import drivers, glxinfo, vkquery from lutris.util.log import logger try: from ...
19,663
Python
.py
466
33.266094
119
0.610298
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,007
resources.py
lutris_lutris/lutris/util/resources.py
"""Utility module to handle media resources""" import os from lutris import settings def get_icon_path(game_slug): """Return the absolute path for a game_slug icon""" return os.path.join(settings.ICON_PATH, "lutris_%s.png" % game_slug) def get_banner_path(game_slug): """Return the absolute path for a ...
583
Python
.py
12
44.916667
75
0.722913
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,008
urlhandler.py
lutris_lutris/lutris/util/urlhandler.py
"""Unused handler registration but since someone reports problems with URL integration once in a while, it could prove itself useful.""" # Standard Library import os import sys # Third Party Libraries from gi.repository import Gio # Lutris Modules from lutris.util.log import logger def register_url_handler(): ...
879
Python
.py
21
37.952381
93
0.749121
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,009
portals.py
lutris_lutris/lutris/util/portals.py
import os from gettext import gettext as _ from typing import Callable, Iterable from gi.repository import Gio, GLib, GObject from lutris.util.jobs import schedule_at_idle from lutris.util.log import logger PORTAL_BUS_NAME = "org.freedesktop.portal.Desktop" PORTAL_OBJECT_PATH = "/org/freedesktop/portal/desktop" cl...
3,425
Python
.py
88
27.079545
111
0.553416
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,010
settings.py
lutris_lutris/lutris/util/settings.py
import configparser import os from lutris.util.log import logger class SettingsIO: """ConfigParser abstraction.""" def __init__(self, config_file): self.config_file = config_file self.config = configparser.ConfigParser() if os.path.exists(self.config_file): try: ...
1,757
Python
.py
39
35.282051
117
0.626464
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,011
flatpak.py
lutris_lutris/lutris/util/flatpak.py
import shutil from gettext import gettext as _ from lutris.exceptions import UnavailableRunnerError from lutris.util import cache_single from lutris.util.log import logger from lutris.util.system import read_process_output @cache_single def get_executable(): """Return the executable used to access Flatpak. None ...
2,771
Python
.py
75
29.213333
108
0.630459
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,012
nvidia.py
lutris_lutris/lutris/util/nvidia.py
"""Nvidia library detection from Proton""" import os from ctypes import CDLL, POINTER, Structure, addressof, c_char_p, c_int, c_void_p, cast from lutris.util.log import logger RTLD_DI_LINKMAP = 2 class LinkMap(Structure): """ from dlinfo(3) struct link_map { ElfW(Addr) l_addr; /* Difference b...
2,970
Python
.py
71
34.098592
96
0.637626
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,013
strings.py
lutris_lutris/lutris/util/strings.py
"""String utilities""" import math import re import shlex import time import unicodedata import uuid from dataclasses import dataclass from gettext import gettext as _ from typing import List, Tuple, Union from gi.repository import GLib from lutris.util.log import logger NO_PLAYTIME = _("Never played") def get_uu...
13,777
Python
.py
334
33.520958
115
0.60756
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,014
xdgshortcuts.py
lutris_lutris/lutris/util/xdgshortcuts.py
"""XDG shortcuts handling""" import os import shlex import shutil import stat from textwrap import dedent from gi.repository import GLib from lutris.api import format_installer_url from lutris.settings import CACHE_DIR from lutris.util import system from lutris.util.linux import LINUX_SYSTEM from lutris.util.log imp...
5,226
Python
.py
113
39.787611
119
0.681747
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,015
library_sync.py
lutris_lutris/lutris/util/library_sync.py
import json import time from typing import List, Optional from lutris import settings from lutris.api import read_api_key from lutris.database.categories import ( add_category, add_game_to_category, get_all_games_categories, get_categories, remove_category_from_game, ) from lutris.database.games im...
9,475
Python
.py
212
33.334906
109
0.583505
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,016
game_finder.py
lutris_lutris/lutris/util/game_finder.py
"""Automatically detects game executables in a folder""" import os from lutris.util import magic, system from lutris.util.log import logger def is_excluded_elf(filename): excluded = ("xdg-open", "uninstall") _fn = filename.lower() return any(exclude in _fn for exclude in excluded) def find_linux_game_...
3,229
Python
.py
86
27.372093
95
0.573482
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,017
savesync.py
lutris_lutris/lutris/util/savesync.py
import json import os import platform from datetime import datetime try: from webdav4.client import Client WEBDAV_AVAILABLE = True except ImportError: WEBDAV_AVAILABLE = False from lutris import settings from lutris.game import Game from lutris.util.log import logger from lutris.util.strings import human...
12,037
Python
.py
266
35.924812
118
0.611319
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,018
moddb.py
lutris_lutris/lutris/util/moddb.py
"""Helper functions to assist downloading files from ModDB""" import importlib import re import types from lutris.util.log import logger MODDB_FQDN = "https://www.moddb.com" MODDB_URL_MATCHER = r"^https://(www\.)?moddb\.com" MODDB_MIRROR_URL_MATCHER = r"^https://(www\.)?moddb\.com/downloads/mirror" def is_moddb_ur...
3,062
Python
.py
64
39.078125
115
0.653137
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,019
path_cache.py
lutris_lutris/lutris/util/path_cache.py
"""Keep track of game executables' presence""" import json import os import time from lutris import settings from lutris.database.games import get_games from lutris.game import Game from lutris.gui.widgets import NotificationSource from lutris.util import cache_single from lutris.util.jobs import AsyncCall from lutri...
4,675
Python
.py
110
35.018182
99
0.650573
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,020
datapath.py
lutris_lutris/lutris/util/datapath.py
"""Utility to get the path of Lutris assets""" # Standard Library import os import sys # Lutris Modules from lutris.util import system def get(): """Return the path for the resources.""" launch_path = os.path.realpath(sys.path[0]) if launch_path.startswith("/usr/local"): data_path = "/usr/local/...
1,064
Python
.py
24
38.958333
97
0.668599
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,021
display.py
lutris_lutris/lutris/util/display.py
"""Module to deal with various aspects of displays""" # isort:skip_file import enum import os import subprocess from typing import Any, Dict import gi try: gi.require_version("GnomeDesktop", "3.0") from gi.repository import GnomeDesktop LIB_GNOME_DESKTOP_AVAILABLE = True except ValueError: LIB_GNOME...
15,128
Python
.py
356
34.946629
117
0.664398
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,022
i18n.py
lutris_lutris/lutris/util/i18n.py
"""Language and translation utilities""" import locale from lutris.util.log import logger def get_user_locale(): user_locale, _user_encoding = locale.getlocale() if not user_locale: logger.error("Unable to get locale") return return user_locale def get_lang(): """Return the 2 lette...
743
Python
.py
22
28.772727
73
0.670407
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,023
process.py
lutris_lutris/lutris/util/process.py
"""Class to manipulate a process""" import os from lutris.util.log import logger IGNORED_PROCESSES = ( "tracker-store", "tracker-extract", "kworker", ) class Process: """Python abstraction a Linux process""" def __init__(self, pid): try: self.pid = int(pid) except V...
4,882
Python
.py
127
29.15748
90
0.579092
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,024
__init__.py
lutris_lutris/lutris/util/__init__.py
"""Misc common functions""" from functools import wraps def selective_merge(base_obj, delta_obj): """used by write_json""" if not isinstance(base_obj, dict): return delta_obj common_keys = set(base_obj).intersection(delta_obj) new_keys = set(delta_obj).difference(common_keys) for k in com...
1,294
Python
.py
35
30.314286
79
0.658127
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,025
yaml.py
lutris_lutris/lutris/util/yaml.py
"""Utility functions for YAML handling""" # pylint: disable=no-member import yaml from lutris.util.log import logger from lutris.util.system import path_exists def read_yaml_from_file(filename: str): """Read filename and return parsed yaml""" if not path_exists(filename): return {} with open(fil...
843
Python
.py
20
36.25
68
0.687882
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,026
log.py
lutris_lutris/lutris/util/log.py
"""Utility module for creating an application wide logger.""" import logging import logging.handlers import os import sys from gi.repository import GLib # Used to store log buffers for games. LOG_BUFFERS = {} CACHE_DIR = os.path.realpath(os.path.join(GLib.get_user_cache_dir(), "lutris")) if not os.path.isdir(CACHE_...
1,467
Python
.py
35
39.571429
115
0.758621
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,027
tokenization.py
lutris_lutris/lutris/util/tokenization.py
from __future__ import annotations from typing import Callable, Iterable, List, Optional def clean_token(to_clean: Optional[str]) -> str: """Removes quotes from a token, if they are present; if they are not, this strips whitespace off the token.""" if to_clean is None: return "" if to_clean....
6,911
Python
.py
148
34.628378
118
0.580467
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,028
shell.py
lutris_lutris/lutris/util/shell.py
"""Controls execution of programs in separate shells""" import os from textwrap import dedent from lutris import settings def get_terminal_script(command, cwd, env): """Write command in a script file and run it. Running it from a file is likely the only way to set env vars only for the command (not for...
2,324
Python
.py
62
28.580645
100
0.569716
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,029
system.py
lutris_lutris/lutris/util/system.py
"""System utilities""" import hashlib import os import re import shutil import signal import stat import string import subprocess import zipfile from gettext import gettext as _ from pathlib import Path from typing import Dict, List, Optional, Tuple from gi.repository import Gio, GLib from lutris import settings fro...
22,128
Python
.py
528
35.100379
119
0.656097
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,030
gog.py
lutris_lutris/lutris/util/gog.py
import json import os from lutris.util import system from lutris.util.log import logger def get_gog_game_path(target_path): """Return the absolute path where a GOG game is installed""" gog_game_path = os.path.join(target_path, "drive_c/GOG Games/") if not os.path.exists(gog_game_path): logger.war...
2,940
Python
.py
68
36.308824
115
0.656633
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,031
downloader.py
lutris_lutris/lutris/util/downloader.py
import bisect import os import threading import time import requests from lutris import __version__ from lutris.util import jobs from lutris.util.log import logger # `time.time` can skip ahead or even go backwards if the current # system time is changed between invocations. Use `time.monotonic` # so we won't have sc...
8,361
Python
.py
194
33.474227
109
0.613709
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,032
libretro.py
lutris_lutris/lutris/util/libretro.py
import os from lutris.util.log import logger class RetroConfig: value_map = {"true": True, "false": False, "": None} def __init__(self, config_path): if not config_path: raise ValueError("Config path is mandatory") self.config_path = config_path self._config = [] @pr...
2,673
Python
.py
68
27.426471
120
0.529888
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,033
test_config.py
lutris_lutris/lutris/util/test_config.py
import os import gi gi.require_version("Gdk", "3.0") gi.require_version("Gtk", "3.0") from lutris import startup from lutris.database import schema def setup_test_environment(): """Sets up a system to be able to run tests""" os.environ["LUTRIS_SKIP_INIT"] = "1" schema.syncdb() startup.init_lutris()...
321
Python
.py
11
26.272727
50
0.714754
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,034
dolphin.py
lutris_lutris/lutris/util/dolphin.py
# Standard Library from mmap import mmap def scan_to_00(mm, start): """Read bytes from the mm mmap, beggining at the start offset and ending at the first 0x00. Return: bytes """ buff = b"" achar = None number = start while achar != 0: achar = mm[number] if acha...
1,305
Python
.py
37
28.351351
80
0.581285
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,035
timer.py
lutris_lutris/lutris/util/timer.py
"""Timer module""" # Standard Library import time class Timer: """Simple Timer class to time code""" def __init__(self): self._start = None self._end = None self.finished = False def start(self): """Starts the timer""" self._end = None self._start = time....
792
Python
.py
28
20.535714
54
0.560265
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,036
extract.py
lutris_lutris/lutris/util/extract.py
import gzip import os import shutil import subprocess import tarfile import uuid import zlib from typing import List, Tuple from lutris import settings from lutris.exceptions import MissingExecutableError from lutris.util import system from lutris.util.log import logger class ExtractError(Exception): """Exceptio...
10,618
Python
.py
271
31.295203
118
0.612368
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,037
magic.py
lutris_lutris/lutris/util/magic.py
""" magic is a wrapper around the libmagic file identification library. See https://github.com/ahupp/python-magic for more information. Usage: >>> import magic >>> magic.from_file("testdata/test.pdf") 'PDF document, version 1.2' >>> magic.from_file("testdata/test.pdf", mime=True) 'application/pdf' >>> magic.from_buf...
14,435
Python
.py
346
35.881503
101
0.686388
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,038
process_watcher.py
lutris_lutris/lutris/util/process_watcher.py
"""Process management""" import os import shlex import sys from lutris.util.process import Process # Processes that are considered sufficiently self-managing by the # monitoring system. These are not considered game processes for # the purpose of determining if a game is still running and Lutris # will never attempt...
2,509
Python
.py
65
31.769231
98
0.668722
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,039
busy.py
lutris_lutris/lutris/util/busy.py
from lutris.gui.widgets import NotificationSource from lutris.util.jobs import AsyncCall BUSY_STARTED = NotificationSource() BUSY_STOPPED = NotificationSource() _busy_count = 0 def start_busy(): """Put Lutris into the 'busy' state, which causes BUSY_STARTED to fire; LutrisWindow will display a 'progress' cur...
1,206
Python
.py
30
34.366667
88
0.664953
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,040
fileio.py
lutris_lutris/lutris/util/fileio.py
# Standard Library import re from collections import OrderedDict from configparser import RawConfigParser class EvilConfigParser(RawConfigParser): # pylint: disable=too-many-ancestors """ConfigParser with support for evil INIs using duplicate keys.""" _SECT_TMPL = r""" \[ ...
2,495
Python
.py
49
37.632653
82
0.469237
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,041
http.py
lutris_lutris/lutris/util/http.py
"""HTTP utilities""" import json import os import socket import ssl import urllib.error import urllib.parse import urllib.request from ssl import CertificateError import certifi from lutris.settings import PROJECT, SITE_URL, VERSION, read_setting from lutris.util import system from lutris.util.log import logger DEF...
6,221
Python
.py
164
28.939024
116
0.606965
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,042
jobs.py
lutris_lutris/lutris/util/jobs.py
import sys import threading import traceback from typing import Callable from gi.repository import GLib from lutris.util.log import logger class AsyncCall(threading.Thread): def __init__(self, func, callback, *args, **kwargs): """Execute `function` in a new thread then schedule `callback` for ex...
4,575
Python
.py
108
34.805556
101
0.641488
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,043
egs_launcher.py
lutris_lutris/lutris/util/egs/egs_launcher.py
"""Interact with an exiting EGS install""" import json import os from lutris.util.log import logger class EGSLauncher: manifests_paths = "ProgramData/Epic/EpicGamesLauncher/Data/Manifests" def __init__(self, prefix_path): self.prefix_path = prefix_path def iter_manifests(self): manifes...
986
Python
.py
21
37.857143
97
0.656934
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,044
cache_reader.py
lutris_lutris/lutris/util/dolphin/cache_reader.py
"""Reads the Dolphin game database, stored in a binary format""" import os from lutris.util.log import logger DOLPHIN_GAME_CACHE_FILE = os.path.expanduser("~/.cache/dolphin-emu/gamelist.cache") SUPPORTED_CACHE_VERSION = 24 def get_hex_string(string): """Return the hexadecimal representation of a string""" ...
4,680
Python
.py
120
30.1
125
0.569383
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,045
client.py
lutris_lutris/lutris/util/discord/client.py
"""THIS MODULE IS UNMAINTAINTED AND WILL BE MARKED FOR DEPRECATION UNLESS SOMEONE VOLUNTEERS TO PROPERLY MAINTAIN IT.""" from pypresence import DiscordNotFound, Presence from lutris.util.discord.base import DiscordRichPresenceBase class DiscordRichPresenceClient(DiscordRichPresenceBase): rpc = None # Presence ...
1,105
Python
.py
30
28.333333
120
0.646341
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,046
__init__.py
lutris_lutris/lutris/util/discord/__init__.py
"""THIS MODULE IS UNMAINTAINTED AND WILL BE MARKED FOR DEPRECATION UNLESS SOMEONE VOLUNTEERS TO PROPERLY MAINTAIN IT.""" __all__ = ["client"] from .rpc import client
168
Python
.py
3
54.333333
120
0.766871
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,047
rpc.py
lutris_lutris/lutris/util/discord/rpc.py
""" Discord Rich Presence Loader This will enable DiscordRichPresenceClient if pypresence is installed. Otherwise, it will provide a dummy client that does nothing THIS MODULE IS UNMAINTAINTED AND WILL BE MARKED FOR DEPRECATION UNLESS SOMEONE VOLUNTEERS TO PROPERLY MAINTAIN IT. """ from lutris.util.discord.base imp...
656
Python
.py
15
41.066667
114
0.816038
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,048
base.py
lutris_lutris/lutris/util/discord/base.py
""" Discord Rich Presence Base Objects THIS MODULE IS UNMAINTAINTED AND WILL BE MARKED FOR DEPRECATION UNLESS SOMEONE VOLUNTEERS TO PROPERLY MAINTAIN IT. """ from abc import ABCMeta class DiscordRichPresenceBase(metaclass=ABCMeta): """ Discord Rich Presence Interface """ def update(self, discord_i...
649
Python
.py
21
25.952381
114
0.709887
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,049
shortcut.py
lutris_lutris/lutris/util/steam/shortcut.py
"""Export lutris games to steam shortcuts""" import binascii import os import re import shlex import shutil from lutris.api import format_installer_url from lutris.util import resources, system from lutris.util.log import logger from lutris.util.steam import vdf from lutris.util.steam.config import convert_steamid64_...
6,427
Python
.py
151
36.139073
109
0.667361
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,050
config.py
lutris_lutris/lutris/util/steam/config.py
"""Handle Steam configuration""" import os from collections import OrderedDict import requests from lutris import settings from lutris.util import system from lutris.util.log import logger from lutris.util.steam.steamid import SteamID from lutris.util.steam.vdfutils import vdf_parse STEAM_DATA_DIRS = ( "~/.stea...
9,145
Python
.py
216
35.157407
103
0.647085
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,051
steamid.py
lutris_lutris/lutris/util/steam/steamid.py
# Copyright (C) 2013-2017 Oliver Ainsworth # Original source: https://github.com/serverstf/python-valve """Provides utilities for representing SteamIDs See: https://developer.valvesoftware.com/wiki/SteamID """ import re import urllib.parse import warnings UNIVERSE_INDIVIDUAL = 0 #: UNIVERSE_PUBLIC = 1 #: UNIVERSE_...
14,198
Python
.py
283
42.69258
109
0.573315
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,052
vdfutils.py
lutris_lutris/lutris/util/steam/vdfutils.py
"""Read and write VDF files""" # Lutris Modules from lutris.util.log import logger def vdf_parse(steam_config_file, config): """Parse a Steam config file and return the contents as a dict.""" line = " " while line: try: line = steam_config_file.readline() except UnicodeDecodeE...
1,942
Python
.py
52
27.653846
71
0.536132
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,053
log.py
lutris_lutris/lutris/util/steam/log.py
"""Steam log handling""" # Standard Library import os import time def _get_last_content_log(steam_data_dir): """Return the last block from content_log.txt""" if not steam_data_dir: return [] path = os.path.join(steam_data_dir, "logs/content_log.txt") log = [] try: with open(path, ...
1,869
Python
.py
51
28.372549
75
0.586054
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,054
watcher.py
lutris_lutris/lutris/util/steam/watcher.py
"""Steam game library watcher""" # Third Party Libraries # pylint: disable=too-few-public-methods from gi.repository import Gio, GLib # Lutris Modules from lutris.util.log import logger class SteamWatcher: """Watches a Steam library folder and notify changes""" def __init__(self, steamapps_paths, callback=...
1,144
Python
.py
26
35.076923
89
0.639388
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,055
appmanifest.py
lutris_lutris/lutris/util/steam/appmanifest.py
"""Steam appmanifest file handling""" import os import re from lutris.util.log import logger from lutris.util.steam.config import get_steamapps_dirs from lutris.util.steam.vdfutils import vdf_parse from lutris.util.strings import slugify from lutris.util.system import fix_path_case, path_exists APP_STATE_FLAGS = [ ...
4,615
Python
.py
119
31.907563
98
0.657501
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,056
__init__.py
lutris_lutris/lutris/util/steam/vdf/__init__.py
""" Module for deserializing/serializing to and from VDF https://github.com/ValvePython/vdf MIT License """ # pylint: disable=raise-missing-from __version__ = "3.2" __author__ = "Rossen Georgiev" import re import struct from binascii import crc32 from io import StringIO as unicodeIO string_type = str int_type = in...
14,686
Python
.py
375
30.170667
99
0.558004
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,057
vdict.py
lutris_lutris/lutris/util/steam/vdf/vdict.py
# pylint: disable=no-member,unnecessary-dunder-call from collections import Counter _iter_values = "values" _range = range _string_type = str import collections as _c class _kView(_c.KeysView): def __iter__(self): return self._mapping.iterkeys() class _vView(_c.ValuesView): def __iter__(self): ...
6,732
Python
.py
168
30.220238
116
0.550591
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,058
extract_icon.py
lutris_lutris/lutris/util/wine/extract_icon.py
# pylint: disable=no-member import struct from io import BytesIO try: import pefile PEFILE_AVAILABLE = True except ImportError: pefile = None PEFILE_AVAILABLE = False from PIL import Image # From https://github.com/firodj/extract-icon-py class ExtractIcon(object): GRPICONDIRENTRY_format = ( ...
4,949
Python
.py
118
31.313559
112
0.576642
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,059
d3d_extras.py
lutris_lutris/lutris/util/wine/d3d_extras.py
import os from lutris.settings import RUNTIME_DIR from lutris.util.wine.dll_manager import DLLManager class D3DExtrasManager(DLLManager): component = "D3D Extras" base_dir = os.path.join(RUNTIME_DIR, "d3d_extras") versions_path = os.path.join(base_dir, "d3d_extras_versions.json") managed_dlls = ( ...
1,429
Python
.py
57
17
76
0.516435
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,060
dgvoodoo2.py
lutris_lutris/lutris/util/wine/dgvoodoo2.py
import os from lutris.settings import RUNTIME_DIR from lutris.util.wine.dll_manager import DLLManager class dgvoodoo2Manager(DLLManager): component = "dgvoodoo2" base_dir = os.path.join(RUNTIME_DIR, "dgvoodoo2") versions_path = os.path.join(base_dir, "dgvoodoo2_versions.json") managed_dlls = ( ...
541
Python
.py
16
28.375
75
0.683908
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,061
fsync.py
lutris_lutris/lutris/util/wine/fsync.py
"""Module for detecting the availability of the Linux futex FUTEX_WAIT_MULTIPLE operation, or the Linux futex2 syscalls. Either of these is required for fsync to work in Wine. Fsync is an alternative implementation of the Windows synchronization primitives that are used to guard data from being accessed by multiple th...
13,114
Python
.py
330
33.284848
112
0.671181
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,062
dxvk_nvapi.py
lutris_lutris/lutris/util/wine/dxvk_nvapi.py
import os from lutris.settings import RUNTIME_DIR from lutris.util import system from lutris.util.linux import LINUX_SYSTEM from lutris.util.nvidia import get_nvidia_dll_path from lutris.util.wine.dll_manager import DLLManager class DXVKNVAPIManager(DLLManager): component = "DXVK-NVAPI" base_dir = os.path.jo...
1,729
Python
.py
38
38.289474
85
0.653001
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,063
vkd3d.py
lutris_lutris/lutris/util/wine/vkd3d.py
import os from lutris.settings import RUNTIME_DIR from lutris.util.linux import LINUX_SYSTEM from lutris.util.wine.dll_manager import DLLManager class VKD3DManager(DLLManager): component = "VKD3D" base_dir = os.path.join(RUNTIME_DIR, "vkd3d") versions_path = os.path.join(base_dir, "vkd3d_versions.json") ...
511
Python
.py
12
38.583333
71
0.743434
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,064
cabinstall.py
lutris_lutris/lutris/util/wine/cabinstall.py
import os import re import shutil import subprocess import tempfile import xml.etree.ElementTree from lutris.util.log import logger from lutris.util.system import execute, read_process_output class CabInstaller: """Extract and install contents of cab files Based on an implementation by tonix64: https://gith...
8,804
Python
.py
179
38.50838
112
0.579853
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,065
prefix.py
lutris_lutris/lutris/util/wine/prefix.py
"""Wine prefix management""" import os from lutris.settings import get_lutris_directory_settings, set_lutris_directory_settings from lutris.util import joypad, system from lutris.util.display import DISPLAY_MANAGER from lutris.util.log import logger from lutris.util.wine.registry import WineRegistry from lutris.util....
16,165
Python
.py
316
39.952532
120
0.613908
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,066
wine.py
lutris_lutris/lutris/util/wine/wine.py
"""Utilities for manipulating Wine""" import os from collections import OrderedDict from gettext import gettext as _ from typing import Dict, List, Tuple from lutris import settings from lutris.api import get_default_wine_runner_version_info from lutris.exceptions import MisconfigurationError, UnavailableRunnerError,...
10,324
Python
.py
211
42.341232
108
0.672332
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,067
registry.py
lutris_lutris/lutris/util/wine/registry.py
"""Manipulate Wine registry files""" import os import re from collections import OrderedDict from datetime import datetime from lutris.util import system from lutris.util.log import logger from lutris.util.wine.wine import WINE_DEFAULT_ARCH ( REG_NONE, REG_SZ, REG_EXPAND_SZ, REG_BINARY, REG_DWORD...
12,143
Python
.py
298
30.624161
107
0.568232
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,068
dll_manager.py
lutris_lutris/lutris/util/wine/dll_manager.py
"""Injects sets of DLLs into a prefix""" import json import os import shutil from gettext import gettext as _ from lutris import settings from lutris.util import system from lutris.util.extract import extract_archive from lutris.util.http import download_file from lutris.util.log import logger from lutris.util.string...
12,837
Python
.py
263
37.996198
120
0.617964
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,069
dxvk.py
lutris_lutris/lutris/util/wine/dxvk.py
"""DXVK helper module""" import os from lutris.settings import RUNTIME_DIR from lutris.util.graphics import vkquery from lutris.util.linux import LINUX_SYSTEM from lutris.util.wine.dll_manager import DLLManager REQUIRED_VULKAN_API_VERSION = vkquery.vk_make_version(1, 3, 0) class DXVKManager(DLLManager): compon...
1,942
Python
.py
46
32.043478
83
0.600742
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,070
proton.py
lutris_lutris/lutris/util/wine/proton.py
"""Utility module to deal with Proton and umu""" import json import os from gettext import gettext as _ from typing import Dict, Generator, List from lutris import settings from lutris.exceptions import MissingExecutableError from lutris.util import cache_single, system from lutris.util.steam.config import get_steama...
7,533
Python
.py
155
41.916129
119
0.677992
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,071
__init__.py
lutris_lutris/lutris/util/battlenet/__init__.py
# Code in this package from the GOG Galaxy integration for Battle.net # https://github.com/bartok765/galaxy_blizzard_plugin # All credits go to bartok765 and contributors
171
Python
.py
3
56
69
0.815476
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,072
product_db_pb2.py
lutris_lutris/lutris/util/battlenet/product_db_pb2.py
# noqa pylint: disable=too-many-lines,use-dict-literal # Generated by the protocol buffer compiler. DO NOT EDIT! # source: product_db.proto import sys _b = (lambda x: x) if sys.version_info[0] < 3 else (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import me...
53,804
Python
.py
1,638
23.225885
4,439
0.586774
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,073
definitions.py
lutris_lutris/lutris/util/battlenet/definitions.py
import dataclasses as dc import json from typing import List, Optional import requests class DataclassJSONEncoder(json.JSONEncoder): def default(self, o): if dc.is_dataclass(o): return dc.asdict(o) return super().default(o) @dc.dataclass class WebsiteAuthData(object): cookie_jar...
5,607
Python
.py
140
32.335714
120
0.62364
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,074
sds_proto2.py
lutris_lutris/lutris/util/amazon/sds_proto2.py
from lutris.util.amazon.protobuf_decoder import ( Message, type_bool, type_bytes, type_enum, type_int64, type_string, type_uint32, ) class CompressionAlgorithm: none = 0 lzma = 1 class HashAlgorithm: sha256 = 0 shake128 = 1 @staticmethod def get_name(algorithm): ...
2,614
Python
.py
85
23.905882
105
0.573317
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,075
protobuf_decoder.py
lutris_lutris/lutris/util/amazon/protobuf_decoder.py
import struct from io import BytesIO # for the record: # - int32 = signed varint # - int64 = signed varint # - enum = signed varint # - uint32 = unsigned varint # - uint64 = unsigned varint # - sint32 = zigzag signed varint # - sint64 = zigzag signed varint # https://developers.google.com/protocol-buffers/docs...
6,323
Python
.py
201
23.696517
99
0.5831
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,076
core_config.py
lutris_lutris/lutris/util/retroarch/core_config.py
RECOMMENDED_CORES = { "mesen": { "platforms": ["nes"], "extensions": [ ".nes", ".fds", ".unf", ".unif", ], }, "gambatte": { "platforms": ["gameboy", "gameboy_color"], "bios": [ { "filename": "...
3,614
Python
.py
119
17.773109
119
0.409728
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,077
database.py
lutris_lutris/lutris/util/mame/database.py
"""Utility functions for MAME""" # Standard Library import json import os from xml.etree import ElementTree # Lutris Modules from lutris import settings from lutris.util.log import logger CACHE_DIR = os.path.join(settings.CACHE_DIR, "mame") def simplify_manufacturer(manufacturer): """Give simplified names for ...
4,315
Python
.py
102
35.078431
115
0.649261
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,078
ini.py
lutris_lutris/lutris/util/mame/ini.py
"""Manipulate MAME ini files""" # Lutris Modules from lutris.util.system import path_exists class MameIni: """Looks like an ini file and yet it is not one!""" def __init__(self, ini_path): if not path_exists(ini_path): raise OSError("File %s does not exist" % ini_path) self.ini_p...
1,611
Python
.py
40
29.1
87
0.542199
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,079
xephyr.py
lutris_lutris/lutris/util/graphics/xephyr.py
"""Xephyr utilities""" def get_xephyr_command(display, config): """Return a configured Xephyr command""" xephyr_depth = "8" if config.get("xephyr") == "8bpp" else "16" xephyr_resolution = config.get("xephyr_resolution") or "640x480" xephyr_command = [ "Xephyr", display, "-ac", ...
563
Python
.py
18
24.611111
68
0.594843
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,080
xrandr.py
lutris_lutris/lutris/util/graphics/xrandr.py
"""XrandR based display management""" import re import subprocess from collections import namedtuple from lutris.settings import DEFAULT_RESOLUTION_HEIGHT, DEFAULT_RESOLUTION_WIDTH from lutris.util.linux import LINUX_SYSTEM from lutris.util.log import logger from lutris.util.system import read_process_output Output ...
6,989
Python
.py
166
30.554217
118
0.566912
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,081
drivers.py
lutris_lutris/lutris/util/graphics/drivers.py
# pylint: disable=no-member """Hardware driver related utilities Everything in this module should rely on /proc or /sys only, no executable calls """ import os import re from typing import Dict, Iterable, List from lutris.util import cache_single from lutris.util.graphics.glxinfo import GlxInfo from lutris.util.log ...
7,892
Python
.py
194
32.298969
118
0.604879
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,082
gpu.py
lutris_lutris/lutris/util/graphics/gpu.py
import glob import os import re import shutil import subprocess from typing import Dict, Optional from lutris.util import system from lutris.util.graphics import drivers from lutris.util.linux import LINUX_SYSTEM from lutris.util.log import logger VULKANINFO_AVAILABLE = shutil.which("vulkaninfo") VULKAN_DATA_DIRS = [...
7,296
Python
.py
170
33.482353
109
0.589386
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,083
vkquery.py
lutris_lutris/lutris/util/graphics/vkquery.py
# pylint: disable=wildcard-import, unused-wildcard-import, invalid-name # Shit python (?) module that will likely crash the Lutris client. # We should not be doing that we live a life of shame knowing we are shipping this code # to you. We are terribly sorry and know we should do better but right now, you get what you ...
14,674
Python
.py
340
36.508824
105
0.690782
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,084
glxinfo.py
lutris_lutris/lutris/util/graphics/glxinfo.py
"""Parser for the glxinfo utility""" from lutris.util.log import logger from lutris.util.system import read_process_output class Container: # pylint: disable=too-few-public-methods """A dummy container for data""" class GlxInfo: """Give access to the glxinfo information""" def __init__(self, output=N...
2,247
Python
.py
51
33.215686
88
0.569139
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,085
displayconfig.py
lutris_lutris/lutris/util/graphics/displayconfig.py
"""DBus backed display management for Mutter""" from collections import namedtuple import dbus from lutris.settings import DEFAULT_RESOLUTION_HEIGHT, DEFAULT_RESOLUTION_WIDTH from lutris.util.log import logger DisplayConfig = namedtuple("DisplayConfig", ("monitors", "name", "position", "transform", "primary", "scal...
23,265
Python
.py
545
32.853211
119
0.613312
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,086
client.py
lutris_lutris/lutris/util/ubisoft/client.py
# Ubisoft Connect client adapted from the Galaxy integration by Rasmus Luund. # https://github.com/FriendsOfGalaxy/galaxy-integration-uplay import json import time from datetime import datetime from gettext import gettext as _ import requests from lutris.util.log import logger from lutris.util.ubisoft.consts import ...
11,790
Python
.py
276
31.235507
119
0.560774
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,087
consts.py
lutris_lutris/lutris/util/ubisoft/consts.py
UBISOFT_REGISTRY = "SOFTWARE\\Ubisoft" STEAM_REGISTRY = "Software\\Valve\\Steam" UBISOFT_REGISTRY_LAUNCHER = "SOFTWARE\\Ubisoft\\Launcher" UBISOFT_REGISTRY_LAUNCHER_INSTALLS = "SOFTWARE\\Ubisoft\\Launcher\\Installs" UBISOFT_SETTINGS_YAML = "AppDataSomething/Ubisoft Game Launcher/settings.yml" UBISOFT_CONFIGURATIONS_B...
837
Python
.py
16
50
109
0.75
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,088
parser.py
lutris_lutris/lutris/util/ubisoft/parser.py
import logging as log import math import yaml from lutris.util.ubisoft.consts import UBISOFT_CONFIGURATIONS_BLACKLISTED_NAMES class UbisoftParser(object): def __init__(self): self.configuration_raw = None self.ownership_raw = None self.settings_raw = None self.parsed_games = None...
12,912
Python
.py
284
32.123239
120
0.533429
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,089
helpers.py
lutris_lutris/lutris/util/ubisoft/helpers.py
import os from lutris.util.log import logger from lutris.util.ubisoft.consts import UBISOFT_REGISTRY_LAUNCHER_INSTALLS from lutris.util.wine.registry import WineRegistry NOT_INSTALLED = "NOT_INSTALLED" INSTALLED = "INSTALLED" def _get_registry_value_from_path(registry_path, key): registry = WineRegistry() r...
3,360
Python
.py
74
38.432432
105
0.675858
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,090
navigation_stack.py
lutris_lutris/lutris/gui/widgets/navigation_stack.py
"""Window used for game installers""" # pylint: disable=too-many-lines from gi.repository import Gtk class NavigationStack(Gtk.Stack): """ This is a Stack widget that supports a back button and lazy-creation of pages. Pages should be set up via add_named_factory(), then displayed with present_pa...
7,407
Python
.tac
146
41.575342
114
0.665375
lutris/lutris
7,694
676
284
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,091
client.py
amscanne_huptime/test/client.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
2,633
Python
.py
79
27.468354
83
0.650906
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,092
proxy.py
amscanne_huptime/test/proxy.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
6,594
Python
.py
197
23.335025
75
0.524415
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,093
harness.py
amscanne_huptime/test/harness.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
3,464
Python
.py
100
28
72
0.645441
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,094
servers.py
amscanne_huptime/test/servers.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
6,798
Python
.py
203
24.359606
72
0.56108
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,095
modes.py
amscanne_huptime/test/modes.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
4,524
Python
.py
131
26.961832
71
0.599908
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,096
__init__.py
amscanne_huptime/test/__init__.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
731
Python
.py
18
39.611111
71
0.775596
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,097
test_meta.py
amscanne_huptime/test/test_meta.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
1,605
Python
.py
49
30.387755
71
0.747579
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,098
test_bindings.py
amscanne_huptime/test/test_bindings.py
# # Copyright 2013 Adin Scannell <adin@scannell.ca>, all rights reserved. # # This file is part of Huptime. # # Huptime is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
868
Python
.py
24
35.083333
71
0.776722
amscanne/huptime
1,853
85
5
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)
32,099
setup.py
citronneur_rdpy/setup.py
#!/usr/bin/env python import setuptools from distutils.core import setup, Extension setup(name='rdpy', version='1.3.2', description='Remote Desktop Protocol in Python', long_description=""" RDPY is a pure Python implementation of the Microsoft RDP (Remote Desktop Protocol) protocol (Client and Server side). RDPY ...
1,334
Python
.py
44
26.090909
179
0.684292
citronneur/rdpy
1,674
545
78
GPL-3.0
9/5/2024, 5:14:30 PM (Europe/Amsterdam)