Skip to main content

Book

Book is an Enum containing all the books of the Bible as members.

Members#

NameValueTitle
GENESIS1Genesis
EXODUS2Exodus
LEVITICUS3Leviticus
NUMBERS4Numbers
DEUTERONOMY5Deuteronomy
JOSHUA6Joshua
JUDGES7Judges
RUTH8Ruth
SAMUEL_191 Samuel
SAMUEL_2102 Samuel
KINGS_1111 Kings
KINGS_2122 Kings
CHRONICLES_1131 Chronicles
CHRONICLES_2142 Chronicles
EZRA15Ezra
NEHEMIAH16Nehemiah
ESTHER17Esther
JOB18Job
PSALMS19Psalms
PROVERBS20Proverbs
ECCLESIASTES21Ecclesiastes
SONG_OF_SONGS22Song of Songs
ISAIAH23Isaiah
JEREMIAH24Jeremiah
LAMENTATIONS25Lamentations
EZEKIEL26Ezekiel
DANIEL27Daniel
HOSEA28Hosea
JOEL29Joel
AMOS30Amos
OBADIAH31Obadiah
JONAH32Jonah
MICAH33Micah
NAHUM34Nahum
HABAKKUK35Habakkuk
ZEPHANIAH36Zephaniah
HAGGAI37Haggai
ZECHARIAH38Zechariah
MALACHI39Malachi
MATTHEW40Matthew
MARK41Mark
LUKE42Luke
JOHN43John
ACTS44Acts
ROMANS45Romans
CORINTHIANS_1461 Corinthians
CORINTHIANS_2472 Corinthians
GALATIANS48Galatians
EPHESIANS49Ephesians
PHILIPPIANS50Philippians
COLOSSIANS51Colossians
THESSALONIANS_1521 Thessalonians
THESSALONIANS_2532 Thessalonians
TIMOTHY_1541 Timothy
TIMOTHY_2552 Timothy
TITUS56Titus
PHILEMON57Philemon
HEBREWS58Hebrews
JAMES59James
PETER_1601 Peter
PETER_2612 Peter
JOHN_1621 John
JOHN_2632 John
JOHN_3643 John
JUDE65Jude
REVELATION66Revelation
ESDRAS_1671 Esdras
TOBIT68Tobit
WISDOM_OF_SOLOMON69Wisdom of Solomon
ECCLESIASTICUS70Ecclesiasticus
MACCABEES_1711 Maccabees
MACCABEES_2722 Maccabees

Properties#

name#

The name property returns the string all-caps Enum name (e.g. 'GENESIS', 'EXODUS', etc.).

For example:

Code
import pythonbible as bible
book = bible.Book.SAMUEL_1
print(book.name)
Result
SAMUEL_1

value#

The value property returns the integer book id value.

For example:

Code
import pythonbible as bible
book = bible.Book.SAMUEL_1
print(book.value)
Result
9

This value matches the book id portion of a verse id. For example, the 9 in the verse id 9001001 represents the book of 1 Samuel. The verse id as a whole represents 1 Samuel 1:1.

title#

The title property returns the common English title of the given book (e.g. 'Genesis', 'Exodus', 'Leviticus', etc.).

For example:

Code
import pythonbible as bible
book = bible.Book.SAMUEL_1
print(book.title)
Result
1 Samuel

This title is not actually used when formatting a Scripture reference for print/display. In that scenario, the official titles associated with the specified version of the Bible (or the default version if none is specified) are used rather than this title property.

This title property can be used for situations when using a version's official titles is unnecessary, and a quicker/easier method is desired.

Uses#

The Book Enum is used for both the required start_book and the optional end_book attributes of the NormalizedReference class.

The value property of the Book Enum is used when converting between references and verse ids.