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.0.tar.gz (40.3 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.0-py3-none-any.whl (80.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: petscii-codecs-2.0.tar.gz
  • Upload date:
  • Size: 40.3 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.0.tar.gz
Algorithm Hash digest
SHA256 cab4086c952e3ab50cb45a52a5a2cd28b1b23eade3cc31cf13f1dd6a8feb66c0
MD5 e40553b0f391706811d98a4b0ae924c3
BLAKE2b-256 4c86f9c965675cbf7155b4c921a6027393109a817150e0252281d03745df0c66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: petscii_codecs-2.0-py3-none-any.whl
  • Upload date:
  • Size: 80.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd58d33bd47935533c1f73367f7f48ffcf6008ac2729af70b7b4ffadef124e9b
MD5 036f0a4d7655fe5c062891cc0c2dcb33
BLAKE2b-256 9db9a3c4cc4e3188171fef835938c90d94a9cda11d05bb4c7d53a9caf8aef0c4

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