Skip to content

FriedrichFroebel/python-djvulibre

 
 

Repository files navigation

Overview

djvulibre-python is a set of Python bindings for the DjVuLibre library, an open source implementation of DjVu.

Prerequisites

The following software is required to build djvulibre-python:

Additionally, the following software is needed to run the tests:

Installation

The easiest way to install djvulibre-python is from PyPI:

pip install djvulibre-python

Alternatively, you can use djvulibre-python without installing it, straight out of an unpacked source tarball or a VCS checkout.

It's also possible to install it from source for the current interpreter with:

pip install .

About this fork

This repository is a Python3-only version of the original repository.

Due to the upstream repository having been archived (Issue #23), this fork will now be maintained on its own. Please note that I do not have any plans on implementing completely new features for now. Nevertheless, I am going to try to keep this fork working for at least the parts which I actually use on a regular basis (as part of ocrodjvu).

Differences from upstream

  • Package requires Python ≥ 3.6.
  • Conform to PEP8 coding style.
  • Refactor build to not use the deprecated distutils module any more.
  • Drop support for building the package on Windows. I do not use it there and there have not been automated tests for it. If someone wants to get this back to work and help maintaining it, feel free to open an issue.
  • Add support for Cython 3.0, while dropping some old backwards-compatibility code.

Acknowledgment

Initial python-djvulibre development was supported by the Polish Ministry of Science and Higher Education's grant no. N N519 384036 (2009–2012, https://bitbucket.org/jsbien/ndt).

Languages

  • Cython 59.1%
  • Python 39.5%
  • Other 1.4%