RepositoryPythonDEĐức
cnvogelg

cnvogelg/amitools

Various tools for using AmigaOS programs on other platforms

366sao
88fork
21issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: amiga

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: amigaos

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: amitools

#1 Repository của tuần

amitools - AmigaOS tools for other platforms

PyPI Python Docs Tests

amitools is a set of command line tools and Python libraries for working with classic Amiga disk images, file systems, Kickstart ROMs, icons and executables on macOS, Linux and Windows. Its centrepiece, vamos, runs AmigaOS command line programs directly on the host by emulating the 68k CPU and the AmigaOS API.

The tools target the classic 680x0 Amiga with AmigaOS 1.x to 3.x and are written for developers, so a background in Amiga programming helps.

Installation

amitools supports Python 3.11 through 3.15 and needs pip.

Tools only

pip install amitools

This installs the pure Python package: all tools except vamos work out of the box.

With vamos

vamos needs the 68k CPU emulator from the machine68k package, which the vamos extra pulls in:

pip install 'amitools[vamos]'

machine68k is a C extension published as a source package, so a C compiler has to be available (Xcode command line tools on macOS, gcc on Linux, Visual Studio Build Tools on Windows).

Latest development version

pip install -U git+https://github.com/cnvogelg/machine68k.git
pip install -U git+https://github.com/cnvogelg/amitools.git

Repeat the commands to update. The development version has the newest features but may be unstable from time to time.

Optional packages

  • lhafile lets the file scanners look inside .lha archives.
  • pypng is needed by icontool to import and export PNG images.

Tools

ToolPurposeDocs
xdftoolCreate, inspect and modify ADF and HDF disk images: format, list, read, write, delete, pack and unpack whole images, boot blocks, bitmapsxdftool
xdfscanScan single images or whole directory trees of ADF/HDF files and verify their file systemsxdfscan
rdbtoolCreate and edit hard disk images and devices with a Rigid Disk Block: partitions, file system drivers, geometryrdbtool
romtoolScan, split, patch and build Kickstart ROM images for emulators, soft kickers and flash ROMsromtool
icontoolList and batch edit Workbench .info icon files: tool types, positions, structure fields, PNG import and exporticontool
vamosRun AmigaOS command line programs on the host: the Virtual Amiga OSvamos, reference, libraries
vamospathConvert between AmigaOS and host paths using a vamos configuration
vamostoolHelpers around vamos: path conversion, type inspection, library profile dumps and state file info
hunktoolLoad and dump Amiga Hunk executables, libraries, object files and overlays
typetoolInspect the AmigaOS C structure definitions vamos uses
fdtoolRead Commodore's .fd function description files and dump them in several formats, including vamos' code structures
geotoolDetect and compute disk geometries (cylinders, heads, sectors) for image files and sizes

Every tool prints its usage with -h or help.

Quick examples

# list a floppy image, then read a file from it to the current directory
xdftool wb310.adf list
xdftool wb310.adf read c/dir

# create a new disk, format it and copy a file in, all in one command line
xdftool test.adf format "My Image" + makedir c + write myfile c

# create a 10 MiB RDB hard disk image with one partition
rdbtool work.hdf create size=10Mi + init + fill

# check a whole directory tree of disk images
xdfscan my_disks

# show what is inside a Kickstart ROM
romtool scan kick31.rom -i

# run an Amiga program; -V maps a host directory to an Amiga volume
vamos -V work:/path/to/dir myprog

Python libraries

The tools are built on packages you can use in your own code:

PackageContents
amitools.fsOFS and FFS file systems, block devices and image files, Rigid Disk Blocks and partitions
amitools.binfmtReaders for Amiga Hunk binaries (binfmt.hunk) and the ELF subset used by AROS m68k (binfmt.elf), with relocation
amitools.romKickstart ROM parsing, splitting and building
amitools.iconWorkbench .info icon files
amitools.fdParser for .fd function description files
amitools.scanScanners that walk file trees, .lha archives and disk images
amitools.vamosThe vamos runtime: machine, memory, scheduler, library and device implementations

The vamos library API is described in the library documentation.

Development

Clone the repository and set up an editable install with the development and test requirements:

git clone https://github.com/cnvogelg/amitools.git
cd amitools
make init

make init installs machine68k from its git repository, the test and documentation tools, and amitools itself in editable mode, so edits in the tree take effect immediately.

Tests

The unit tests run in a few seconds:

pytest test/unit

pytest test also runs the vamos test suite, which executes the prebuilt Amiga test programs under vamos and compares their output with recordings from real Amigas; add --full-suite for the slow tests as well. make test runs everything through tox for all supported Python versions. Rebuilding the test programs needs the cross compilers described in test/README.md.

Code style and docs

The code is formatted with black: make format. The documentation is Sphinx; make docs builds it into build/docs/html.

Contributing

Bug reports and pull requests are welcome on GitHub. Please add a unit test for a fix where possible and run black before submitting.

License and authors

amitools is written by Christian Vogelgsang chris@vogelgsang.org, with contributions from many others, and is licensed under the GNU General Public License version 2 or later.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Repository
grovdata/Amiga_Sources

A collection of of sources and hardware related to classic Commodore Amiga computers.

300
Nov 16, 2026
RepositoryC
BlitterStudio/dopus5

A modern, actively-maintained fork of Directory Opus 5 Magellan II, the legendary Amiga file manager, ported and updated for all Amiga-like platforms.

122
Nov 16, 2026
RepositoryC
jens-maus/amissl

:closed_lock_with_key: AmiSSL is the AmigaOS/MorphOS/AROS port of OpenSSL. It wraps the full functionality of OpenSSL into a full-fledged Amiga shared library that makes it possible for Amiga applications to use the full OpenSSL API through a standard Amiga shared library interface (e.g. web browsers wanting to support HTTPS, etc.)...

121
Nov 14, 2026
RepositoryC
adflib/ADFlib

A free, portable and open implementation of the Amiga filesystem

121
Nov 17, 2026
RepositoryPascal
geraldholdsworth/DiscImageManager

To manage retro floppy disc images

112
Nov 6, 2026
RepositoryE
dmcoles/AmiExpress

rewrite of the Amiga AmiExpress BBS system originally widely used by scene BBS's in the 1990s

89
Nov 23, 2026
RepositoryPython
sherlock-project/sherlock

Hunt down social media accounts by username across social networks

120.3k
Dec 2, 2026
RepositoryPython
666ghj/MiroFish

A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物

87.3k
Oct 16, 2026
RepositoryPython
Asabeneh/30-Days-Of-Python

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

80.0k
Sep 30, 2026