Metadata-Version: 2.2
Name: gamesutil
Version: 1.0.0
Author-email: Carlos Florez <carlos@florez.co.uk>
Maintainer-email: Carlos Florez <carlos@florez.co.uk>
License: MIT License
        
        Copyright (c) 2025 CARLOS FLOREZ
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Repository, https://github.com/florez-carlos/gamesutil
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.11.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: alive-progress==3.1.5
Requires-Dist: pyyaml==6.0.1
Requires-Dist: toml==0.10.2
Requires-Dist: pywin32==306; sys_platform == "win32"
Requires-Dist: jsonschema==4.23.0
Requires-Dist: colorlog==6.4.0

# Gamesutil

> [!NOTE]
> Installation is supported only for the following: 
> - Windows
> - Linux

> [!NOTE]
> Development requires a fully configured [Dotfiles](https://github.com/florez-carlos/dotfiles) dev environment <br>

## Table of Contents

* [Installation](#installation)
  * [pip](#pip)
  * [manifest](#manifest) 
* [Usage](#usage)
  * [collect](#collect)
  * [inject](#inject) 
* [Development](#development)

## Installation
### Pip
```bash
python3 -m pip install gamesutil
```
### Manifest
Create the Save-Manifest.json <br ><br >
> [!NOTE]
> Any instances of {USER} are automatically replaced by the program with the current user name <br >

The Manifest contains: <br >
- backupSaveLocation: The folder where the cold saves are stored
- saves:
  - save:
    - displayName: The folder name that will be stored in the cold save location
    - location: The location of the hot save
```json
{
  "backupSaveLocation":"F:\\misc\\src\\gamesutil\\saves",
  "saves": [
    {
      "displayName":"My Game Save",
      "location": "C:\\Users\\{USER}\\AppData\\Local\\Game Company\\The Game"
    },
  ]
}
```
In the above sample:
- hot location: "C:\\Users\\{USER}\\AppData\\Local\\Game Company\\The Game" <br >
- cold location: F:\\misc\\src\\gamesutil\\saves\\My Game Save <br >
> [!NOTE]
> Hot location: should point to the directory where the game saves <br >
> Cold location: your backup

## Usage

### Collect

-sm The location of the Save Manifest<br >

```bash
gamesutil collect -sm C:\PATH\TO\SAVE-MANIFEST.JSON
```
This will copy all hot saves listed in the manifest into the cold save location

### Inject

-sm The location of the Save Manifest<br >

```bash
gamesutil inject -sm C:\PATH\TO\SAVE-MANIFEST.JSON
```

This will copy all the cold saves listed in the manifest into the hot save location

## Development

> [!NOTE]
> Development requires a fully configured [Dotfiles](https://github.com/florez-carlos/dotfiles) dev environment <br>

```bash
source init.sh
```

