Skip to main content

Converts Greek beta code to Greek characters and vice versa

Project description

Beta Code Converter for Python

Overview

Converts Greek beta code to Greek characters and vice versa.

Installation

pip install beta_code

Usage

import beta_code

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

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

Tests

python -m unittest tests/test_beta_code.py

In Python 2

cd tests/ && python -m unittest test_beta_code

Packaging

python3 -m pip install --user --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel
python3 -m pip install --user --upgrade twine
twine upload dist/*

Notes

For the mappings between beta code and Unicode, see https://github.com/zfletch/beta-code-json.

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-0.0.3.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

beta_code-0.0.3-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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