Skip to main content

Converts Greek Beta Code to Greek characters and vice versa

Project description

Beta Code Converter for Python

Converts Greek Beta Code to Greek characters and vice versa.


pip install beta-code

(See project on PyPI)


import beta_code

beta_code.greek_to_beta_code(u'χαῖρε ὦ κόσμε')
# => 'xai=re w)= ko/sme'

beta_code.beta_code_to_greek(u'mh=nin a)/eide qea\\ *phlhi+a/dew *)axilh=os')
# => 'μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος'

With additional mappings

beta_code.beta_code_to_greek(u'f2a/nac', custom_map={ u'f2': u'ϝ' })
# => 'ϝάναξ'


python -m unittest tests/

In Python 2

cd tests/ && python -m unittest test_beta_code

Updating JSON

git subtree pull --prefix beta_code/vendor/beta-code-json/ master --squash

In the case of a merge conflict:

git checkout --theirs vendor/beta-code-json/
git add vendor/beta-code-json
git commit


  • Install dependencies:
python3 -m venv venv
. ./venv/bin/activate
pip3 install -r requirements.txt
  • Bump version in
  • Commit and push to GitHub
  • On GitHub, create a new release
  • Run python3 sdist bdist_wheel
  • Run python3 -m twine upload dist/*


For the mappings between Beta Code and Unicode, see

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

beta_code-1.0.0.tar.gz (7.3 kB view hashes)

Uploaded source

Built Distribution

beta_code-1.0.0-py3-none-any.whl (8.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page