Skip to main content

Chapisha: docx to standards-compliant epub3 conversion

Documentation Status Build Status

What is it?

Chapisha (/ʧæpiʃɑ/) provides an intuitive method for converting a well-formatted Microsoft Word .docx file into a standards-compliant EPUB3 ebook.

There are only a small number of steps required to create your .epub, and Chapisha will provide an appropriate stylesheet and take care of document structure:

  • Set the working directory where you want to create your .epub,
  • Define and validate the metadata required for the creative work,
  • Import the docx file,
  • Import the cover image,
  • Define and add any contributors, such as cover artist,
  • Define your creative work's publication rights,
  • Add in an optional dedication,
  • Build your creative work as an EPUB3 standards-compliant ebook.

Read the docs

Why use it?

Chapisha is easy-to-use, quick, and fits into your workflow.

There are a multitude of .epub conversion tools but few that support the day-to-day workflow and tools used by most jobbing writers: Microsoft Word.

Chapisha draws on Pandoc for document conversion and ebook creation, adding a simple, stateless Python frame around it, which means you can also include it in a web application.

Installation and dependencies

You'll need at least Python 3.12, then:

pip install chapisha

You will also need to install Pandoc and Java:

sudo apt-get update
sudo apt-get -y install python3-dev libevent-dev pandoc default-jre

Changelog

The version history can be found in the changelog.

Background

Chapisha was created to serve my needs as both a formally, and self-published, author. I have written two novels - Lament for the fallen and Our memory like dust - and a number of short stories. These works are available to read online, and to download as an ebook.

Chapisha is the Swahili word for 'publish' or 'post'.

Licence

BSD 3

Other licenced elements:

Metadata

Release files for chapisha 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chapisha 0.6.0
File Size Uploaded
chapisha-0.6.0.tar.gz 2.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for chapisha 0.6.0
File Interpreter ABI Platform
chapisha-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 MB

Release files / chapisha-0.6.0.tar.gz

Download URL chapisha-0.6.0.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7a1a7fe4a538cb8f667e361a2dec2de2d9410c118693422437d4b380ac9d9827
BLAKE2b-256 checksum
How to use checksums
bed7eb28eb89b5c21966f6fcdb629243fcc764be8d2554aca6f955f48c52b65e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.11.4 Linux/5.10.102.1-microsoft-standard-WSL2

Release files / chapisha-0.6.0-py3-none-any.whl

Download URL chapisha-0.6.0-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fa2870eb756f2431212738f10241e1f9d64230f58a827a1f6d41ef8778ed766b
BLAKE2b-256 checksum
How to use checksums
4018af28b48add61498ade33f827e49ad0868746a0d3630e3dcc26a98141e7b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.11.4 Linux/5.10.102.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page