Dependencies, installation & importing¶
Chapisha (/ʧæpiʃɑ/) is stateless, which means you can also include it in a web application.
Requirements¶
Chapisha has a relatively short list of requirements (excl. dependencies):
- epubcheck = "^4.2.6"
- beautifulsoup4 = "^4.12.3"
- pydantic = "^1.7.3"
- pypandoc = "^1.13"
You will also need to install Pandoc and Java::
sudo apt-get update
sudo apt-get -y install pandoc default-jre
It could run on lower versions, but this hasn't been tested. If you want to work with Jupyter, then either install Jupyter only, or Anaconda.
You may find some Python dependencies fail with gcc errors, and you may need to install a few other core dependencies:
sudo apt-get -y install python3-dev libevent-dev
More information on installing Pandoc.
Installing¶
Install with pip:
pip install chapisha
Then import:
from chapisha import CreateWork
Your next steps are to convert a .docx to an .epub.