Convert local GAMS object directories to BagitFiles.
Project description
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>
graph LR
subgraph A[Object directory]
AA[Must contain files
that belong to the digital object,
plus 'DC.xml',
'object.csv', and
'datastreams.csv']
end
subgraph B[BAG]
BB[Data structure
in Bag format
that can be ingested,
i.e. one
Bag directory
per digital object]
end
A -->|gamster create| B[Bag file]
Using unpack, an object directory can be recreated from a bag directory at any time.
graph LR
subgraph A[Object directory]
AA[Must contain files
that belong to the digital object,
plus 'DC.xml',
'object.csv', and
'datastreams.csv']
end
subgraph B[BAG]
BB[Data structure
in Bag format
that can be ingested,
i.e. one
Bag directory
per digital object]
end
B[BAG] -->|gamster unpack| A[Object directory]
At the moment, only a command-line interface (CLI) is available. A GUI is planned.
Installation
Without explicit installation
If the user has uv installed, gamster can be run directly without prior
installation via uvx gamster (or uv tool install gamster).
If needed, a suitable Python installation and virtual environment are created
in the background.
Traditional installation
pip install gamster. We strongly recommend using a dedicated virtual
environment for this.
gamster and gamspreprocessing can be installed in the same virtual
environment.
Usage
Create Bags from object directories
gamster create creates Bags.
In the simplest form, this command is sufficient:
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.
gamster create supports several options that control its behavior. Details
are available via gamster create --help or in the
Online-Dokumentation
Convert Bags into an object directory
To create an object directory from a Bag, this command is sufficient:
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:
gamster unpack -o objects bags
All available options are shown via gamster unpack --help and in the
online documentation.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gamster-0.6.4.tar.gz.
File metadata
- Download URL: gamster-0.6.4.tar.gz
- Upload date:
- Size: 254.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
399b20fc76efe7d6703a28cc5bbd3440856ef3b1e8cff13e48cb471f29cc9b6f
|
|
| MD5 |
9ab2e61c1a7570407995d0b57621c0c6
|
|
| BLAKE2b-256 |
914bbc84bf6d0219dc92c884a75f50dfe130e120dfc982f4dcc092adef8965b1
|
File details
Details for the file gamster-0.6.4-py3-none-any.whl.
File metadata
- Download URL: gamster-0.6.4-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6a194f4209cc1e96b155cd36922811a1540b00161f4c9385a01ec7d4c54d1c1
|
|
| MD5 |
6125756cc6de12fe7d3dc653e304646a
|
|
| BLAKE2b-256 |
93eb4b09277cdd8854d16a8cef54cb7be7351e5008d01a1b9b576be1b4b2298d
|