Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vineethsubbaraya/pybraille
https://github.com/vineethsubbaraya/pybraille
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vineethsubbaraya/pybraille
- Owner: vineethsubbaraya
- License: mit
- Created: 2020-10-02T19:27:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-26T14:28:13.000Z (12 months ago)
- Last Synced: 2024-08-02T14:08:00.272Z (5 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-polyglot - PyBraille - Text to 6-dot braille (Grade 1) (Python Packages)
README
# PyBraille
A simple library in Python to convert text to 6-dots pattern braille (Grade 1)
## Installation
Run the following to install the package
```python
pip install pybraille
```## Usage
```python
from pybraille import convertTextprint(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.