/python-curses

A cli scripture Rosary written in python using curses (Python, curses, windows-curses)

Primary LanguagePython

python-curses

A Python CLI/terminal application which cycles through a scriptural Rosary. Displayed text content is provided by a .json file.

  • Scripture quotes are taken from usccb.org. Text readings are stored within the module-version/rosaryJSON-nab.json file.

  • Visual UI/UX layout based on jq-tput-terminal.

  • Light weight (lighter and less complicated than my other rosary apps)

    • I did make a modular-version of this same app, just for jollies and compartmentalization of imported python library packages.

Libraries used:

import os		## computer control
import curses		## cli ui
import json		## json parse
import datetime		## sys clock
import textwrap		## wrapping sentence strings
import platform		## identify which python version

Install Python Platform

https://www.python.org/downloads

There are some differences between Python v2.x and Python v3.x regarding parsing .json, so I included both techniques within the code.

Debian & WLS

## Linux package
sudo apt-get install python-pip python3 python3-pip

## python package
pip install term

Arch

## Linux package
sudo pacman -S --needed python python2

## python package
pip install term

Win10

I just use Python 2.7.x from python.org, but it also works on the latest Python 3.7.x

For runtime convenience, install "with environment variables" selected.

Install curses library:

## python package
pip install --upgrade pip
python -m pip install windows-curses

Demo

Animated Demo

asciicast


Package a standalone executable