Skip to main content

tamago

Multi-format game archive toolkit.

Requires Python 3.10 or later.

Supported formats

Format Engine Extract Create
XP3 KiriKiri yes yes
DET μ-GameOperationSystem yes yes
GSP AGSD yes yes
ARC AdvHD (WillPlus V2) yes yes
VF LiveMaker yes yes

Installation

pip install tamagoarc

To enable TLG image conversion, install with the images extra:

pip install tamagoarc[images]

Usage

tamago CLI

tamago auto-detects archive formats by magic bytes and, for XP3 archives, automatically identifies the correct encryption scheme.

# Identify an archive's format
tamago identify data.xp3

# Extract an archive (auto-detects format and encryption)
tamago extract data.xp3 output_dir

# Use format subcommands for format-specific options
tamago xp3 extract data.xp3 output_dir --encryption hash-xor --key 3
tamago det create source_dir output.det --index-format atm

# Create an archive (format must be specified)
tamago create --format xp3 source_dir output.xp3

Python API

from tamago.formats.xp3 import XP3File

# Extract an archive
with XP3File("data.xp3") as xp3:
    xp3.extract_all("output_dir")

# Extract with explicit encryption
from tamago.formats.xp3.encryption import HashXorEncryption

enc = HashXorEncryption(shift=3)
with XP3File("data.xp3", encryption=enc) as xp3:
    xp3.extract_all("output_dir")

# Auto-detect encryption
from tamago.formats.xp3.detect import auto_detect

enc = auto_detect("data.xp3")
with XP3File("data.xp3", encryption=enc) as xp3:
    xp3.extract_all("output_dir")

# Create an archive
from pathlib import Path

with XP3File("output.xp3", "x") as xp3:
    xp3.write_all(Path("source_dir"))

XP3 Encryption

XP3 archives used by KiriKiri games are often encrypted with a game-specific scheme implemented in a .tpm plugin. tamago supports the encryption used by several games (including automatic detection of the encryption).

If the game you are interested in is not supported, please raise an issue, including a VNDB link to the game.

Development

This project uses Hatch as the build system.

Setup

pip install hatch

Running tests

hatch run test                    # run all tests
hatch run test -k test_name       # run a single test by name
hatch run cov                     # tests + coverage report

Linting and formatting

hatch run lint:style     # check style (ruff + black)
hatch run lint:typing    # type checking (mypy)
hatch run lint:fmt       # auto-format (black + ruff --fix)
hatch run lint:all       # style + typing

License

tamago is distributed under the terms of the MIT license.

Metadata

Release files for tamagoarc 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tamagoarc 1.2.0
File Size Uploaded Provenance Actions
tamagoarc-1.2.0.tar.gz 233.5 kB With provenance Details for tamagoarc-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tamagoarc 1.2.0
File Interpreter ABI Platform Actions
tamagoarc-1.2.0-py3-none-any.whl Python 3 none any Details for tamagoarc-1.2.0-py3-none-any.whl

Total release size: 459.6 kB

Release files / tamagoarc-1.2.0.tar.gz

Download URL tamagoarc-1.2.0.tar.gz
Size 233.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1b6e802a7101570332fbfd859ed631649fe2a9f04a9d44c4a9fdb818205177bc
BLAKE2b-256 checksum
How to use checksums
ad8e11e827ce2a85d3dd4f1d3f2e6a9d165c563369a8c187a4d4e82fcb6e9f5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / tamagoarc-1.2.0-py3-none-any.whl

Download URL tamagoarc-1.2.0-py3-none-any.whl
Size 226.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fbd8e3ea5378e2d4b9c1b3f90ddb39480a0e27409abf1f4dbfb4f16c863594a
BLAKE2b-256 checksum
How to use checksums
759183478b141f1785bfa6b2f2c59bc945b4a063f812d599d5d3d0c53157ad40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for tamagoarc 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tamagoarc-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page