Skip to content

libindic/libindic-web

Repository files navigation

Libindic web

This is the web interface for libindic librarires, developed to provide an easy way to try out the features.

Installation

Clone this repository, and prepare a virtual envirorment

python -m venv ENV_DIR

And activate it using

source ENV_DIR/bin/activate

Install all the required libraries

pip install -r requirements.txt

Run the webserver

flask run

You may also run the same using gunicorn.

gunicorn libindic.web:app

System Dependencies

For the script rendered module, there is a dependecy on some system libraries. Pango and cairo can not be installed with pip and need to be installed from your platform’s packages. lxml and CFFI can, but you’d still need their own dependencies. This section lists system packages for lxml or CFFI when available, the dependencies otherwise. lxml needs libxml2 and libxslt, CFFI needs libffi. On Debian, the package names with development files are libxml2-dev, libxslt1-dev and libffi-dev.

Debian and Ubuntu

sudo apt-get install python-dev python-pip python-lxml libcairo2 \
     libpango1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info

Fedora

sudo yum install python-devel python-pip python-lxml cairo pango gdk-pixbuf2\
   libffi-devel

Archlinux

sudo pacman -S python-pip python-lxml cairo pango gdk-pixbuf2

Mac OS X

With Macports
sudo port install py27-pip py27-lxml cairo pango gdk-pixbuf2 libffi
With Homebrew
brew install python cairo pango gdk-pixbuf libxml2 libxslt libffi

Modules

The following modules are available under libindic:

Modules to be used with libindic can be configured in the app.conf file. Modules marked 'yes' should be installed before running SILPA