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.2.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for beta_code-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f8fbb30b81c77c6005096e8c5b4cc1d9517a6f85ce244b955718ec5fc81bb7 |
|
MD5 | d0ee184f75775d7938adc3fba639085c |
|
BLAKE2b-256 | 973b39d3d102193b440d33434c34100f32d2d819bb08accc2833d0c607a312f0 |