A library for parsing and rendering Fountain screenplays.
Fountain is a plain text markup language for screenwriting. Jouvence is a Python package for parsing and rendering Fountain documents.
- Most of the Fountain specification (see limitations below).
- Rendering to HTML and terminals.
As with many Python packages, it’s recommended that you use virtualenv, but since Jouvence doesn’t have many dependencies, you should be fine.
You can install Jouvence the usual way:
pip install jouvence
If you want to test that it works, you can feed it a Fountain screenplay and see if it prints it nicely in your terminal:
You should then see the Fountain file rendered with colored and indented styles.
The Jouvence API goes pretty much like this:
from jouvence.parser import JouvenceParser from jouvence.html import HtmlDocumentRenderer parser = JouvenceParser() document = parser.parse(path_to_file) renderer = HtmlDocumentRenderer() with open(path_to_output, 'w') as fp: renderer.render_doc(document, fp)
Jouvence doesn’t support the complete Fountain syntax yet. The following things are not implemented:
- Dual dialogue
- Proper Unicode support (although Fountain’s spec greatly assumes English screenplays, sadly).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size Jouvence-0.4.1-py3-none-any.whl (24.6 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size Jouvence-0.4.1.tar.gz (1.9 MB)||File type Source||Python version None||Upload date||Hashes View hashes|