Skip to main content

betacode-parser

Introduction

betacode-parser is a Python package that allows one to convert to and from Beta Code for Greek, Coptic, and Hebrew. It is implemented according to the standard of Thesaurus Linguae Graecae (TLG) as seen in this manual. In addition, the Hebrew conversion also supports the older CCAT (Center for Computer Analysis of Text, University of Pennsylvania) standard as seen on this webpage. This project is inspired by the PyPI package betacode, which only implemented conversion for Greek.

Installation

To install, run pip install betacode-parser. Import in projects like this:

from betacode_parser import *

Alternatively, you can import the following functions separately: beta_to_coptic, coptic_to_beta, beta_to_greek, greek_to_beta, beta_to_hebrew, and hebrew_to_beta.

Usage

# Greek
print(beta_to_greek("*A)RIS1TOTE/LHS")) # Ἀριστοτέλης
print(greek_to_beta("Ἀριστοτέλης")) # *A)RIS1TOTE/LHS2

# Coptic
print(beta_to_coptic("*PTOLEMAIOS")) # Ⲡⲧⲟⲗⲉⲙⲁⲓⲟⲥ
print(coptic_to_beta("Ⲡⲧⲟⲗⲉⲙⲁⲓⲟⲥ")) # *PTOLEMAIOS

# Hebrew
# Modern (TLG) Standard
print(beta_to_hebrew("ysrAl")) # ישראל
print(hebrew_to_beta("ישראל")) # ysrAl
# Old (CCAT) Standard
print(beta_to_hebrew("Y&R)L", True)) # ישׂראל
print(hebrew_to_beta("ישראל", True)) # Y#R)L

You can see how to transcribe to and from Beta Code manually in the TLG manual and CCAT webpage.

Development

Contributions are welcome.

Metadata

Release files for betacode-parser 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for betacode-parser 1.0.1
File Size Uploaded Provenance Actions
betacode_parser-1.0.1.tar.gz 6.6 kB With provenance Details for betacode_parser-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for betacode-parser 1.0.1
File Interpreter ABI Platform Actions
betacode_parser-1.0.1-py3-none-any.whl Python 3 none any Details for betacode_parser-1.0.1-py3-none-any.whl

Total release size: 15.0 kB

Release files / betacode_parser-1.0.1.tar.gz

Download URL betacode_parser-1.0.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1f972ad5d19af7b23fd500bcf0516cd811bfd42cbbbe994f25f95e5ad8e1de9c
BLAKE2b-256 checksum
How to use checksums
acffe82388ff44070c71f8588ba7cf6aef9d4d67558a424057258a94ecf187e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 10, 2025.

Transparency log

Release files / betacode_parser-1.0.1-py3-none-any.whl

Download URL betacode_parser-1.0.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4c037425a68cb8b40e15c97f91152923c4b4aed8c0f2888068cc917279a4798
BLAKE2b-256 checksum
How to use checksums
fb4101420fd0c3c6f8639d8815368ecc357181e022771efbd48c104458626473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 10, 2025.

Transparency log

Security for betacode-parser 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for betacode_parser-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 10, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page