Skip to main content

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

  • C128 (40 and 80 column modes)

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-2.1.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

petscii_codecs-2.1-py3-none-any.whl (80.2 kB view details)

Uploaded Python 3

File details

Details for the file petscii-codecs-2.1.tar.gz.

File metadata

  • Download URL: petscii-codecs-2.1.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

Hashes for petscii-codecs-2.1.tar.gz
Algorithm Hash digest
SHA256 94e11559d7030823764b096ac0c785637c8c9c6a529a58bc7815fcb038e0bd97
MD5 b4505e9ca507ba768c6509930214b5cc
BLAKE2b-256 6a7453ed606d82e859a5d4d10ab023f4e81edfb146f34038ad506a9728b7c604

See more details on using hashes here.

File details

Details for the file petscii_codecs-2.1-py3-none-any.whl.

File metadata

  • Download URL: petscii_codecs-2.1-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

Hashes for petscii_codecs-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a79b43311d1398e4d6172820ec416661abc39130d8701657bbfb2cb45baaa22
MD5 764883ea703e11841bbc508c4ad16b27
BLAKE2b-256 3fb5576324378f1dfdad69020c172b5a2b2b177ba586774893b11e5371aa3bd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page