A simple library in Python to convert text to 6-dots pattern braille (Grade 1)
Run the following to install the package
pip install pybraille
from pybraille import convertText
print(convertText("hello"))
>>> ⠓⠑⠇⠇⠕
print(convertText("filename.txt")) #eg: tests/sample.txt
>>> ⠠⠞⠓⠊⠎ ⠙⠊⠗⠑⠉⠞⠕⠗⠽ ⠉⠕⠝⠞⠁⠊⠝⠎ ⠞⠑⠎⠞ ⠋⠊⠇⠑⠎⠲
This library needs is tested against python 3.6 and 3.7. Both interpreters need to be available to tox
Running tests:
tox
or pytest
Any python 3.x version should work.