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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oaknut_codecs-12.9.0.tar.gz.
File metadata
- Download URL: oaknut_codecs-12.9.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
891e191aae462b8c398f4c18e5349fc496f90f7f71be597db44cb989c366f2e0
|
|
| MD5 |
4dd36ab4ec3437d8b903903a0fc3eb39
|
|
| BLAKE2b-256 |
cde06121648347120a2e898fe41a500e3d7c7020cce4557c410cc3fe5cfd82b7
|
File details
Details for the file oaknut_codecs-12.9.0-py3-none-any.whl.
File metadata
- Download URL: oaknut_codecs-12.9.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ec859d3cd8a1e76a202865688f391ff7619aa2d818a5a7471639191800039ab
|
|
| MD5 |
dbde9ee83e0cc45dcbf0f953e045d954
|
|
| BLAKE2b-256 |
8e0865708a79fc0005ae56bfad4e8ece7c2d951dfaad58ddaddf9da9f35b9526
|