Skip to main content

Text codecs for Acorn computer character sets (BBC Micro / Electron)

Project description

oaknut-codecs

Text codecs for Acorn computer character sets, part of the oaknut family of packages for working with Acorn computer filesystems, files, and formats.

This package provides a Python codec for the Acorn/BBC Micro character set — a variant of ASCII in which &60 is the pound sign £ and &7C is the broken bar ¦. Importing the package registers the codec under the name "acorn", so it works with the standard str.encode / bytes.decode machinery:

import oaknut.codecs  # registers the "acorn" codec

"COST£100".encode("acorn")   # b'COST\x60100'
b"COST\x60100".decode("acorn")  # 'COST£100'

It is the dependency-free bottom layer of the workspace, alongside oaknut-exception, so that language and file packages can share one codec implementation without taking a dependency on each other.

Installation

uv add oaknut-codecs

Licence

MIT

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

oaknut_codecs-12.8.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

oaknut_codecs-12.8.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file oaknut_codecs-12.8.0.tar.gz.

File metadata

  • Download URL: oaknut_codecs-12.8.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for oaknut_codecs-12.8.0.tar.gz
Algorithm Hash digest
SHA256 bf41d0c7e4af8a2e58e65e7bb6bfb7cece2427603bbe7b5bd13e62b3a7d7bd2a
MD5 207987d0cf00ea41a9de0b582720229e
BLAKE2b-256 972e47c32a45526a7b68bef4f486ba7beb70e1d91339595d431921ac4afcf4ac

See more details on using hashes here.

File details

Details for the file oaknut_codecs-12.8.0-py3-none-any.whl.

File metadata

  • Download URL: oaknut_codecs-12.8.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for oaknut_codecs-12.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d20c03be03baaeb606645b48fb78d3e33e15b8c206d062eb1168fc26c34619b5
MD5 94d520c2aa21b8a9534586cbda7f8054
BLAKE2b-256 63fe558c3d0760fa0c95ac740ac5180f6e2dc29ceaae7152c0f8b2db10be2132

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