vgde

vgde (Video Game Data Explorer)

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.


Features


🛠 Requirements


🚀 Installation

  1. Clone the repository
     git clone https://github.com/veddevv/vgde.git
     cd vgde
    
  2. Install dependencies
     pip install -r requirements.txt
    

⚡️ Usage

  1. Set your RAWG API key
    Obtain a free API key from RAWG and set it as an environment variable:
     export RAWG_API_KEY='your_api_key_here'
    

    Note: The API key must be between 10-100 characters and will be automatically validated.

  2. Run vgde
    • Interactive mode
      python vgde.py
      
    • Direct mode
      python vgde.py "The Witcher 3"
      
    • Debug mode (for troubleshooting)
      python vgde.py "Portal 2" --debug
      

⚙️ Configuration

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"

Command-Line Options

Example with debug flag:

python vgde.py "Cyberpunk 2077" --debug

📝 Example Output

==================================================
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/...

🔒 Security Features

vgde implements several security measures to protect your system and data:


🐞 Troubleshooting