PyBraille
A simple library in Python to convert text to 6-dots pattern braille (Grade 1)
Installation
Run the following to install the package
pip install pybraille
Usage
from pybraille import convertText
print(convertText("hello"))
>>> ⠓⠑⠇⠇⠕
print(convertText("filename.txt")) #eg: tests/sample.txt
>>> ⠠⠞⠓⠊⠎ ⠙⠊⠗⠑⠉⠞⠕⠗⠽ ⠉⠕⠝⠞⠁⠊⠝⠎ ⠞⠑⠎⠞ ⠋⠊⠇⠑⠎⠲
Testing
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
Support
Any python 3.x version should work.
Release files for pybraille 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pybraille-1.0.0.tar.gz | 3.1 kB | Details |
Release files / pybraille-1.0.0.tar.gz
| Download URL | pybraille-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1a864d8bcc1a94db73d4087a3f0c5e8303945ce4635ac3388c02c8be22fa53f
|
|
BLAKE2b-256 checksum How to use checksums |
5c6cc9a2e6abfdf792c8a5757b8e134e4df3d6d1bfa2479a140d1b87ee32acf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.0
|