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

Uploaded Source

Built Distribution

cbmfiles-1.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cbmfiles-1.1.tar.gz
  • Upload date:
  • Size: 12.4 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-1.1.tar.gz
Algorithm Hash digest
SHA256 35e41d263c7fa10e7c83230f8a7f5633a9f2e1e366d00d2421cb52bd4f1a38c9
MD5 a900533ebebf28f0e4806d8928bbf721
BLAKE2b-256 32b69eae8a6d22086e992ee0186b8c86f3746b118af84c918ab75341e9e6b74b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cbmfiles-1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 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-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcfb0534ec0606319de4b25d8653f1920e93abfb0f19d1b3c8e87196d2839d8b
MD5 46be234f22d7b9066413ab8011cfed9c
BLAKE2b-256 7538306c3f9f7d6e6a15ae22b8e7a9259560cf0751661713e7ddc18b00c3fc47

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