Skip to main content

Manipulate Commodore file types

Project description

cbmfiles

This Python module enables access to various types of file formats used by Commodore microcomputers.

It provides classes to translate BASIC and binary program files between their native format and standard text files.

Examples

Classes reside in the cbmfiles module, the whole module may be imported or just those definitions referenced by the user.

List the contents of a BASIC file

from cbm_files import BASICFile

with open('example.prg', 'rb') as f:
    prog = BASICFile(f)

for line in prog.to_text():
    print(line)

TODO

  • detailed documentation
  • support PET, C16, C128
  • support BASIC variants
  • more examples

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

cbmfiles-0.6.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

cbmfiles-0.6-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file cbmfiles-0.6.tar.gz.

File metadata

  • Download URL: cbmfiles-0.6.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.9

File hashes

Hashes for cbmfiles-0.6.tar.gz
Algorithm Hash digest
SHA256 c998ec6fb57d3209bfc025ae27da7d743b2d7cd4f5dc56718103ef8c80359ec9
MD5 388ee349fe17976ead8627631f9b1d07
BLAKE2b-256 0f6441cae4e79f0db6a3b947d95ea2656ce90cf67da2cea9fe91fd5b7cf3fe69

See more details on using hashes here.

Provenance

File details

Details for the file cbmfiles-0.6-py3-none-any.whl.

File metadata

  • Download URL: cbmfiles-0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.9

File hashes

Hashes for cbmfiles-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8901267184c94a5499bbe24fc831a3808110764738f200d7bb31e4d133bbcace
MD5 ec4a2653140fc1dacdd05d2251681c3d
BLAKE2b-256 39bc0595482062622a440e198d78632bd2da2b779741c745dc0f25a7297dddcf

See more details on using hashes here.

Provenance

Supported by

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