Find local game install paths across PC game launchers. Currently supports Steam.
Project description
game-install-finder
Find local game install paths across PC game launchers. Currently supports Steam.
game-install-finder discovers local launcher libraries, enumerates installed games, and resolves
game install paths by launcher metadata. The first supported launcher is Steam; Heroic and Lutris
support are planned future additions. The tool only reads local files and does not call any game
store or launcher web API.
Features
- Detects Steam on Windows, Linux, and macOS.
- Parses Steam
libraryfolders.vdfwith thevdfpackage instead of brittle string splitting. - Includes games from primary and secondary Steam libraries.
- Reads Steam
appmanifest_*.acffiles to report appid, name, install directory, manifest path, and resolved local game path. - Supports exact appid lookup and fuzzy installed-game name matching.
- Emits machine-readable JSON, with optional pretty printing.
- Keeps project virtualenvs and tool caches under
/tmp/game-install-finderthrough./run.sh.
Installation
Install project dependencies with uv through the repository wrapper:
./run.sh uv sync
The wrapper configures the project virtual environment and caches outside the repository:
UV_PROJECT_ENVIRONMENT=/tmp/game-install-finder/.venv
XDG_CACHE_HOME=/tmp/game-install-finder/.cache
PYTHONPYCACHEPREFIX=/tmp/game-install-finder/__pycache__
TMPDIR=/tmp/game-install-finder
Usage
Run the CLI from the repository root:
./run.sh uv run game-install-finder --help
List installed games:
./run.sh uv run game-install-finder --list-games --pretty
Print the detected Steam installation path:
./run.sh uv run game-install-finder --steam-path --pretty
Use an explicit Steam root instead of auto-detection:
./run.sh uv run game-install-finder --steam-root PATH --list-games --pretty
Find an installed Steam game by appid:
./run.sh uv run game-install-finder --app-id APPID --pretty
Fuzzy match an installed game name:
./run.sh uv run game-install-finder --appid-from-name NAME --pretty
Enable non-fatal parser and discovery warnings:
./run.sh uv run game-install-finder --list-games --debug --pretty
CLI Options
--steam-path Return detected Steam installation path
--steam-root PATH Use this Steam installation path instead of auto-detection
--list-games Enumerate installed games
--app-id APPID Lookup installed game by appid
--appid-from-name NAME Fuzzy match installed game name to appid
--pretty Pretty-print JSON output
--debug Print non-fatal parser/discovery warnings to stderr
JSON output
All successful commands include steam_path. Additional fields depend on the selected lookup.
--list-games adds games, an array of records shaped like:
{
"appid": "730",
"name": "Counter-Strike: Global Offensive",
"installdir": "Counter-Strike Global Offensive",
"path": "/home/user/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive",
"exists": true,
"library": "/home/user/.local/share/Steam",
"manifest": "/home/user/.local/share/Steam/steamapps/appmanifest_730.acf"
}
--app-id APPID adds:
{
"game": {
"appid": "730",
"name": "Counter-Strike: Global Offensive"
},
"app_path": "/home/user/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive"
}
--appid-from-name NAME adds match, candidates, and score. If no confident fuzzy match is
found, match is null and candidates still lists the closest installed game names.
Errors are emitted as JSON and return a non-zero exit code:
{
"error": "Steam installation not found"
}
Dependency requirements
- Python 3.12 or newer for this project.
uvfor dependency management, packaging, and command execution.- Runtime dependency:
vdf, used to parse Steam VDF and ACF metadata. - Development tools:
pytest,pytest-cov,ruff, andty.
Development
Run all project commands through ./run.sh:
./run.sh uv run ruff check . --fix
./run.sh uv run ruff format .
./run.sh uv run ty check src/
./run.sh uv run pytest
Build the package with uv:
./run.sh uv build --no-sources
The repository follows the local agent protocol in AGENTS.md: plans live under docs/plans/,
tests must precede implementation changes, and generated caches must stay outside the repository.
Publishing
PyPI publishing is configured for GitHub Actions Trusted Publishing. The PyPI project should be configured with:
- Project name:
game-install-finder - Owner:
beallio - Repository name:
game-install-finder - Workflow name:
workflow.yml - Environment name:
pypi
Release by pushing a version tag after the GitHub repository and PyPI Trusted Publisher are set up:
git tag -a v0.1.0 -m v0.1.0
git push origin v0.1.0
License
MIT - See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file game_install_finder-0.1.0.tar.gz.
File metadata
- Download URL: game_install_finder-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbd85a4ba0207ba8e31fcccb6a24d147d67b44cd19a34c14fd6afb1df9b8cefa
|
|
| MD5 |
2676515067e557886b15d6f80d88ca7c
|
|
| BLAKE2b-256 |
266432580f9eed44b3dead6b31f985152a06e0f29a63c14c62c78e8488d90fce
|
File details
Details for the file game_install_finder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: game_install_finder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0c51b3c7ef7a9751654d95498946419a9f3b6b948da7965d085d075be733edd
|
|
| MD5 |
ecc3c5741a8e6adea5bd9ffa5a0bf9bc
|
|
| BLAKE2b-256 |
268d040ba24567d7933cef40bd5be1ed454ff7e6d8df65c3147271150e99a582
|