Python Bible

wsbones

Beta Tester
Messages
3,192
I have been learning Python programming (trying anyway). I decided to write a simple Bible program as a learning exercise. If you have any interest, you can get the zip file containing the program in plain text and an input Bible text file (same version as SS - KJV) at http://wsbones.googlepages.com/PythonBible.zip . Unzip both files to the same location. Feel free to modify the program.

You need Python on your computer to run the program. Get it at http://www.python.org/download/

Type in an input reference range in specified format and the program displays the verses on the screen. It also writes them to a verse list for later use. That's it. Hitting the enter key displays the next verse, h for help, q to quit.

Python runs on PC, Linux, and Mac and probably a lot of other platforms.

This will never compete with SS :). I have been just having fun with it. It gives me awe to think about how complicated SS must be to have all the features it has. It hard enough just to parse a valid Bible reference.
 
This will be my last update on this topic since it's not really about SS.

I added a couple more things to the Python Bible program.
1. Compiled for a PC so you don't need Python installed
2. Case insensitive search for a word or phrase (it searches the Bible text not an index so punctuation and spaces will be found exactly. So to search for Jesus, the Christ you would enter Jesus, the Christ). It will also find the text you enter as a part of a word. For example, searching for void will also find avoid, avoiding... If you just want to find void you would put a space before and after the word.
3. Puts displayed verses in verselist.txt
4. Puts found verses in searchlist.txt

I am amazed at how fast this runs. Each search goes through 31102 verses looking for the search string. The Python "list" capability is very efficient.

http://wsbones.googlepages.com/pyBible.zip. Unzip all the files to a folder and run Bible.exe

If anyone downloads the program, let me know if it works for you without having Python installed. Thanks.
 
Back
Top