tree: 0b405993f8cb5060f3c8732cf610d58cc30d3a8f [path history] [tgz]
  1. examples/
  2. louis/
  3. tests/
  4. .gitignore
  5. Makefile.am
  6. README.md
  7. setup.py.in
python/README.md

Liblouis Python ctypes bindings

These bindings allow you to use liblouis from within Python. The package is called “louis”. See the documentation included in the module for usage instructions.

These bindings use ctypes to access the liblouis shared library. The liblouis shared library needs to be located in the library search path. In most cases, if liblouis has been installed in a standard location on your system, this is already the case and the bindings will work without any additional steps.

A standard distutils setup.py script is provided for installation tasks. To install this package for system wide use, after installing liblouis itself, switch to the python directory and run (as root):

sudo python3 setup.py install

Some tests are located in tests. Note that these require that you have compiled liblouis with support for 32-bit Unicode characters. See the top-level README for instructions on this option.

Remain in the python directory and run the tests with the following command. If successful, output will be brief, and note that some tests are designed to have “expected failures”.

sudo python3 tests/test_louis.py