I've been able to spend some time on a project I've had on the go for a while. Images of floppy disks are essential these days for moving programs around and while there are standalone programs like c1541 they aren't very convenient to use from other programs and scripts.
I've written a Python module that allows access to an existing image, you can read and write files from a script in a couple of lines.
https://pypi.org/project/d64/
This is still in the early stages of development, feedback welcome.
Python module to read/write .d64 images
Moderator: Moderators
- chysn
- Vic 20 Scientist
- Posts: 1205
- Joined: Tue Oct 22, 2019 12:36 pm
- Website: http://www.beigemaze.com
- Location: Michigan, USA
- Occupation: Software Dev Manager
Re: Python module to read/write .d64 images
This looks useful. I’ve been using bash scripts for my build processes. These work fine, but get unwieldy when lots of files need to get moved to a d64 (see https://github.com/Chysn/wAx/blob/master/build)
It would be great to be able to populate the d64 with a python list.
It would be great to be able to populate the d64 with a python list.
VIC-20 Projects: wAx Assembler, TRBo: Turtle RescueBot, Helix Colony, Sub Med, Trolley Problem, Dungeon of Dance, ZEPTOPOLIS, MIDI KERNAL, The Archivist, Ed for Prophet-5
WIP: MIDIcast BASIC extension
he/him/his
WIP: MIDIcast BASIC extension
he/him/his
Re: Python module to read/write .d64 images
I've just released a new version that supports .d64, .d71 and .d81 (mostly). I'm going to look at handling conversion to/from PETSCII next.