A library to convert text to 6-dot braille pattern(Grade 1)
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybraille-1.0.0.tar.gz
(3.1 kB
view details)
File details
Details for the file pybraille-1.0.0.tar.gz
.
File metadata
- Download URL: pybraille-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a864d8bcc1a94db73d4087a3f0c5e8303945ce4635ac3388c02c8be22fa53f |
|
MD5 | 8b4d702fec4d44b6230c3e4e02d8c2f1 |
|
BLAKE2b-256 | 5c6cc9a2e6abfdf792c8a5757b8e134e4df3d6d1bfa2479a140d1b87ee32acf7 |