No project description provided
Project description
cytolk
A cython wrapper over the tolk library.
Installation
You can install cytolk with
pip install cytolk
building
make sure to clone this repository recursively, as this repository depends on the original tolk repo
git clone --recursive https://github.com/pauliyobo/cytolk
once that's done, to build use the following command
python setup.py build_ext --inplace
Note: this will build the extension using the generated c code present in the repository. By doing so you are not required to have cython installed in your machine. If you would like to build directly from the .pyx file, you will have to install cython
pip install cython
and set the environment variable BUILD_CYTOLK
set BUILD_CYTOLK=1
Usage
The API is fully compatible with the python tolk bindings, therefore, transitioning should be straight forward
import cytolk as Tolk
# load the library
Tolk.load()
# detect the screenreader in use, in my case NVDA
print(f"screenreader detected is {Tolk.detect_screen_reader()}")
# does this screenreader suport speech and braille?
if Tolk.has_speech():
print("this screenreader supports speech")
if Tolk.has_braille():
print("this screenreader supports braille")
# let's speak some text
Tolk.speak("hello")
# good, let's now output some text on the braille display, if any in use
Tolk.braille("hello")
# now that we're done with the library, we can ust unload it
Tolk.unload()
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 Distributions
Built Distributions
Hashes for cytolk-0.1.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab8b46458ea5d9edd3ab2e5e162bc11455e915c8c0e1efa0aaf52777813e5f9 |
|
MD5 | 2ed7a666079a9845db62b11f3fa70ad0 |
|
BLAKE2b-256 | 73647b7c363f1d2778fda14385b6c70e2c303fa6b929ac7dc2eda120d06aef08 |
Hashes for cytolk-0.1.2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e77950ecab8f2ebcd4fdf4fbfe8c1420e4770b1bc7c0fd0de276aa9aa969f5c |
|
MD5 | 3e6ccd178777bab17864598cb989b3d9 |
|
BLAKE2b-256 | 4ebbb29c84c33922e3cfc968300d1dbaa1cff5c289988bf824ad6a3e1c3f53ae |
Hashes for cytolk-0.1.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de431b5358cbae9f7351d2699c82ed23c32e8dc3d570451db0e39b1e90ee4a6 |
|
MD5 | 347c38f78590399964a7538383acc089 |
|
BLAKE2b-256 | a842c8ed8f7c958eab92575c20c0db6e7d86488ecc548c7e701c6aa3024db183 |
Hashes for cytolk-0.1.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85ce58bc7044f7035515ea4ae03f7ff5eb22aee074e18df2f56b44b237bddd6c |
|
MD5 | 5db9c56872ba94aee74f933ba0a0b257 |
|
BLAKE2b-256 | b03db6ab53b99ce98cd86899ef6fb7549b6c8310956217f429e468bd4ab4bb82 |