Metadata-Version: 2.5
Name: gamster
Version: 0.6.6
Summary: Convert local GAMS object directories to BagitFiles.
Project-URL: Homepage, https://github.com/DHGraz/gamster
Project-URL: Documentation, https://dhgraz.github.io/gamster/
Project-URL: Issues, https://github.com/DHGraz/gamster/issues
Project-URL: Changelog, https://github.com/DHGraz/gamster/blob/main/CHANGELOG.md
Author-email: Gunter Vasold <gunter.vasold@uni-graz.at>, Fabio Tosques <fabio.tosques@uni-graz.at>
License-File: LICENSE
Keywords: GAMS
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Requires-Dist: click>=8.5.1
Requires-Dist: gamslib>=0.10.0
Description-Content-Type: text/markdown

# Gamster

## Overview

`gamster` creates bag directories from *GAMS object directories*, which can then 
be ingested into GAMS.
The program can also convert bags back into GAMS object directories.

The command for creating Bags is `gamster create <PATH>`.

The command for "unpacking" Bags into GAMS object directories is:
`gamster unpack <PATH>`


Using `unpack`, an object directory can be recreated from a bag directory at any time.

Currently, only a command-line interface (CLI) is available. A GUI is planned.


## Usage 

Currently, `gamster` only has a command line interface. The suggest way of using
gamster is to install `uv` and than use `uvx` (which comes with `uv`) to run `gamster`.
Alternatively you can install `gamster` from pypi.org as described below, but using `uvx`
is easier. 

If you want to switch to the latest version of `gamster`,
run `uv` with the `--refresh` flag: `uvx --refresh gamster --help` once.

 If you want to switch to the latest version of amste,
 run `uv` with the `--refresh` flag: `uvx --refresh gamster --help` once.The following examples show how to use `gamster` with `uvx`. If you prefer to install
gamster tradionally, use the same commands, but without the `uvx` in front of the command. 


## Create Bags from object directories

`uvx gamster create` creates Bags.

In the most simple form, this command is sufficient:

```
uvx gamster create <PATH>
```

`PATH` can be a single object directory or a
directory that contains multiple object directories.

By default, the generated bags are created in the `./bags` directory.

`uvx gamster create` supports several options to control its behavior. Details
are available via `gamster create --help` or in the
[Online-Dokumentation](https://dhgraz.github.io/gamster/)


## Convert Bags into an object directory

To create an object directory from a bag, use this command:
`gamster unpack <PATH>`. `PATH` is either the path to the bag to unpack or
to a directory that contains bags to unpack (these are also searched for in
subdirectories). `unpack` can handle both bag directories and zipped bags.
Here is a complete example that converts all bags in the `bags` directory into
object directories and creates them in the `objects` directory:

```
uvx gamster unpack -o objects bags
```

All available options are shown via `uvx gamster unpack --help` and in the
[online documentation](https://dhgraz.github.io/gamster/).

## Installation

If you use `uvx` als suggest above, there is no need to install gamster by hand.

If you prefer to install it in the traditional way, use a package manager
of your choice. `gamster` is available in pypi.org. We stronly advice to 
create and activate a virtual envirment before doing so.

Here is an example with `pip`:

```
pip install gamster
```
