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
Built Distribution
File details
Details for the file petscii-codecs-1.3.tar.gz
.
File metadata
- Download URL: petscii-codecs-1.3.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3625d437a38d64fce155a693002c174e073ed6f10d290215ce974595d14ddb64 |
|
MD5 | 47032222eaa55bdfd5baa805d7947c05 |
|
BLAKE2b-256 | eabed12a0835383f0915462ddedb7b5fb793c3308c9b224ea4c2d2b148a2ce93 |
File details
Details for the file petscii_codecs-1.3-py3-none-any.whl
.
File metadata
- Download URL: petscii_codecs-1.3-py3-none-any.whl
- Upload date:
- Size: 80.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b6227449dc5fb447a94af3f5bb23febcd5c1dc08a79a2842eda956ad181fa6 |
|
MD5 | 97b250bab1a04db9c7ce6fa93cf4d737 |
|
BLAKE2b-256 | b439ef586fc896653d5d3b2066a11a4841e4a4df79c639e69e1af779d1f049b9 |