The GameDetector library allows you to detect a game within a folder, returning information like Steam AppId, game name, and version.
Project description
GameDetector
Detect games, get Steam info, profit. This program allows you to select a folder on your system (probably in your game library), that contains a game. It looks in the game folder for files that can identify what game it is, get a Steam AppId
for said game, and find a reasonable list of EXE
files that could possibly be the game executable.
The purpose of this application is so that it can be used in a much larger application, an automatic game manager for data hoarders. I'll let you know more about this as I develop it, but believe me, it'll be super rad.
Disclaimer
- Does not circumvent DRM
- Does not encourage the use of pirated software
- Uses publicly available APIs provided by Steam or others
- Makes a reasonable attempt to respect ratelimits
- Caches responses to save bandwidth and API load
- Does not download or upload game data to any server
Features
- Very fast (reading from compressed archives is limited by 7-zip)
- Folder support
- 7-zip archive support
- GOG game support
- Steam game support
- DRM-free games support
Compatibility
Currently, only Windows 10/11 are officially supported, but Debian/Linux support is planned in the future.
The project uses pathlib
so handling different paths should be trivial, its just not tested.
The only known dependency issue is pywin32
, and there's already a stub for the single function using it for Linux systems to continue using the library.
Installing
Install Python 3.10+
Clone the repository and install dependency manager (pipenv
)
git clone https://github.com/Aareon/GameDetector
cd GameDetector
py -m pip install pipenv
pipenv install
After installing dependencies, and given that their were no errors in doing so, run the application.
cd GameDetector
py ./gamedetector/game_detect.py
What to expect after running directly
After executing the program, you will be prompted to select a folder (game folder). The program will then attempt to detect what game it is based on things like folder name, as well as checking known files that are commonly available in many distributions of games. It will tell you the name of the game detected, the version, the Steam AppId (if available on Steam), as well as a game description.
This program isn't super useful to regular users, but it will be extremely handy to have as a library for other applications.
Usage as a library
from pathlib import Path
from gamedetector.game_detect import detect_folder, detect_7z, NonSteamGame, SteamGame, NoGameException, SteamApiException
game_path = detect_folder(Path("some path to a game")) # will return either NonSteamGame, or SteamGame if AppId is found
game_7z_path = detect_7z(Path("path to 7z file containing game")) # will return same as above
Reporting bugs
Please see the Issues page. Please include the full output from the program.
License
MIT (free as in free beer, free to redistribute with credit, free to use commercially with credit)
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
File details
Details for the file gamedetector-0.2.3.tar.gz
.
File metadata
- Download URL: gamedetector-0.2.3.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 567271226539ec1f5df62e0133a57d87167490e075e8136f238e95f8467fe92a |
|
MD5 | b7ba797f05117972bb684ceadbd1262c |
|
BLAKE2b-256 | 8c7983b982454393858577c1d712d6d406523961954d49a14139e011b962c1d9 |
File details
Details for the file gamedetector-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: gamedetector-0.2.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15932137703858543b607773c3c26ace449b666d857e8b313bbfcf66e6f9420e |
|
MD5 | b80274aa70f292c24c915cd6b7c0954b |
|
BLAKE2b-256 | ab39434cb9c0ee2e37254720d7a47ddc7e6ffc171a5b8b9237f32002309e2f47 |