My previous post concerned a little program I wrote one evening to process a bible text file and produce a database from it using Python. That evening project took on a life of its own, so I have removed the archive download from that blog post as it is now very obsolete. I now introduce and release to the public my Commandline Bible program. It is a capable bible search and study program designed for use from the Linux or Windows commandline. Both are writen in Python and require the installation of the Python 2x (currently 2.7.3) interpreter. The program should work fine for any Python 2.5 or later 2x installation. In both versions, extract the archive to folder. For Linux, run python kjv_cmdline.py at the commandline. For Windows, run the bible.bat batch file which ensures that the needed ANSI character support is loaded and then runs the Python interpreter and the program. Many thanks to my good friend Larry D. Barr for many suggestions and beta testing support. This is version 1.0. Enjoy!
- high quality KJV Pure Cambridge Edition (PCE) text is used
- case sensitive single word or words found in series search
- search can be for whole bible or limitied to Old Testament, New Testmant, or single Book of the Bible
- verse display by reference
- display of the Treasury of Scriptural Knowledge (TSK) references for verses
- a simple ANSI color text interactive command line program not requiring any graphical interface at all
- SQLite3 database and other associated datafiles made freely available
- all software distributed via the free MIT lincese and other applicable free licneses
- very low system resource usage and very fast
The programming bug bit me this evening and I did something I have wanted to do for a really long time, write my own code to create a useable bible database. So, I took an indexed bible text available in the public domain, wrote the code to parse it properly and then package the parsed bible into a Sqlite3 database file that can then be querried. Basically, the heart of any bible search program. I cannot believe how fast it runs! That is a whole lot of text, but Python excells in the text processing domain. The link is to an archive containing the bible text file that gets processed and the Python program. When run, the database is created from scratch.
The code is Python 2.x style. You may use this code in anyway you wish. NOTE: the following code is obsolete and has been removed. Please see this blog post for the fully featured program! http://wa5pb.freeshell.org/motd/?p=854
The code has good examples of:
1)reading a text file, line by line
2)text parsing and regular expressions
4)Sqlite3 database handling
To put a bow on having lost 80 pounds from a year ago this month, I ran in my first 5k race! I ran in the Faith 5k which was a fund raiser for the Faith Lutheran Church elementary school. They put on a very nice event using a professional timing company. They even emailed us our results following the race, mine are below. I really just hoped to be able to finish the race so my result greatly surpassed my expectations. Now I have a time to beat for my next race. What a fun way to spend a beautiful Saturday morning in Stephenville, Texas.
The email I received following the race:
Congratulations on finishing the Running with Faith 5K on March 31, 2012.
There were 8 finishers in the Male 40 to 44 age group and 147 finishers in the race.
Your overall finish place was 79 and your age group finish place was 6. Your overall finish percentile was 54 while your age group percentile was 75. Your time of 30:36.18 gave you a 9:52 pace per mile.
Full results, as well as upcoming races can be found at www.racedayeventservices.com. Be sure to like us on Facebook for up-to-date information about all local running events.
We hope to see you again next year.