Python codecs for PETSCII character sets
Project description
The petscii-codecs package provides encodings to represent data from Commodore 8-bit systems. These computers used a modified form of ASCII, commonly called PETSCII, which contains graphic symbols as well as control codes.
Codecs for the following systems are available:
PET 2001
later PETs
VIC-1001
VIC-20
C64
C16
Plus4
Each system has two codecs, typically one for uppercase and graphics, one for lowercase and uppercase. The exception is the VIC-1001 which has a katakana codec instead of the lowercase and uppercase one.
Usage
Codecs are used in the same way as other encodings:
import petscii_codecs with open('example.seq', encoding='petscii_c64en_lc') as f: for line in f: print(line)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
petscii-codecs-1.0.tar.gz
(33.5 kB
view hashes)
Built Distribution
Close
Hashes for petscii_codecs-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21ac2b463be5343f0153bc9ea4b2bb07493c5dc15b130d24cfcd288e7be15c98 |
|
MD5 | 96887eeb0ddf8f9467bd9c59e8215d9f |
|
BLAKE2b-256 | 47e0c85b2ed52c26cc7e443b97dd31bcdaa0b7f13d8d8a67d1468cd0d287ae1d |