vgde is a Python tool for quickly exploring and fetching information about video games using the RAWG Video Games Database API. Enter the name of a game, and vgde provides details such as the release date, rating, description, and more—all right from your terminal.
--debug flag for detailed troubleshooting without changing environment variables.requests Python library git clone https://github.com/veddevv/vgde.git
 cd vgde
 pip install -r requirements.txt
 export RAWG_API_KEY='your_api_key_here'
Note: The API key must be between 10-100 characters and will be automatically validated.
python vgde.py
python vgde.py "The Witcher 3"
python vgde.py "Portal 2" --debug
vgde can be customized via the following environment variables:
| Variable | Required | Description | Default | Valid Range | 
|---|---|---|---|---|
RAWG_API_KEY | 
      Yes | Your RAWG API key (10-100 characters) | — | — | 
DEVELOPER_MODE | 
      No | Set to true, 1, t, yes, y, on, enable, or enabled to enable verbose debug logging | 
      false | 
      — | 
REQUEST_TIMEOUT | 
      No | Timeout in seconds for API requests | 10 | 
      1-300 | 
Example:
RAWG_API_KEY='your_key' DEVELOPER_MODE=true REQUEST_TIMEOUT=15 python vgde.py "Portal 2"
game_name (optional positional argument): The name of the game to search for--debug: Enable debug mode for the current run (overrides DEVELOPER_MODE environment variable)Example with debug flag:
python vgde.py "Cyberpunk 2077" --debug
==================================================
Game: The Witcher 3: Wild Hunt
==================================================
Released: 2015-05-18
Rating: 4.67/5
Description:
The Witcher 3: Wild Hunt is a story-driven, open world adventure set in a visually stunning fantasy universe full of meaningful choices and impactful consequences...
Background Image: https://media.rawg.io/media/games/...
vgde implements several security measures to protect your system and data:
Missing API Key:
Make sure you’ve set your RAWG_API_KEY environment variable.
Invalid API Key:
Ensure your API key is between 10-100 characters. Check for extra spaces or quotes.
Timeouts or Network Errors:
Check your internet connection, or increase REQUEST_TIMEOUT (max 300 seconds).
SSL Certificate Errors:
This may indicate a network security issue. Ensure you’re on a trusted network and your system’s SSL certificates are up to date.
Rate Limiting:
If you receive a rate limit error, wait for the specified time before making another request. The RAWG API has rate limits for free tier users.
--debug flag to see detailed error messages and diagnostic information:
    python vgde.py "Game Name" --debug