LucidMinds3ye commited on
Commit
c05d6d2
·
verified ·
1 Parent(s): cbc5e26

Create scripture_data.py

Browse files
Files changed (1) hide show
  1. scripture_data.py +140 -0
scripture_data.py ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # scripture_data.py
2
+ """
3
+ Module containing Bible verses and sample simplified versions.
4
+ This can be expanded without modifying the main app.py file.
5
+ """
6
+
7
+ SAMPLE_VERSES = {
8
+ "Genesis": {
9
+ 1: {
10
+ 1: "In the beginning, God created the heavens and the earth.",
11
+ 26: "Then God said, 'Let us make man in our image, after our likeness.'"
12
+ }
13
+ },
14
+ "Exodus": {
15
+ 20: {
16
+ 1: "And God spoke all these words, saying,",
17
+ 12: "Honor your father and your mother, that your days may be long in the land that the Lord your God is giving you."
18
+ }
19
+ },
20
+ "Psalm": {
21
+ 23: {
22
+ 1: "The Lord is my shepherd; I shall not want.",
23
+ 4: "Even though I walk through the valley of the shadow of death, I will fear no evil, for you are with me; your rod and your staff, they comfort me."
24
+ },
25
+ 119: {
26
+ 105: "Your word is a lamp to my feet and a light to my path."
27
+ }
28
+ },
29
+ "Proverbs": {
30
+ 3: {
31
+ 5: "Trust in the Lord with all your heart, and do not lean on your own understanding.",
32
+ 6: "In all your ways acknowledge him, and he will make straight your paths."
33
+ }
34
+ },
35
+ "Isaiah": {
36
+ 40: {
37
+ 31: "But they who wait for the Lord shall renew their strength; they shall mount up with wings like eagles; they shall run and not be weary; they shall walk and not faint."
38
+ }
39
+ },
40
+ "Matthew": {
41
+ 5: {
42
+ 3: "Blessed are the poor in spirit, for theirs is the kingdom of heaven.",
43
+ 4: "Blessed are those who mourn, for they shall be comforted.",
44
+ 5: "Blessed are the meek, for they shall inherit the earth.",
45
+ 6: "Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.",
46
+ 9: "Blessed are the peacemakers, for they shall be called sons of God."
47
+ },
48
+ 6: {
49
+ 33: "But seek first the kingdom of God and his righteousness, and all these things will be added to you."
50
+ },
51
+ 11: {
52
+ 28: "Come to me, all who labor and are heavy laden, and I will give you rest."
53
+ }
54
+ },
55
+ "John": {
56
+ 3: {
57
+ 16: "For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life."
58
+ },
59
+ 14: {
60
+ 6: "Jesus said to him, 'I am the way, and the truth, and the life. No one comes to the Father except through me.'"
61
+ }
62
+ },
63
+ "Romans": {
64
+ 8: {
65
+ 28: "And we know that for those who love God all things work together for good, for those who are called according to his purpose."
66
+ }
67
+ },
68
+ "Philippians": {
69
+ 4: {
70
+ 6: "Do not be anxious about anything, but in everything by prayer and supplication with thanksgiving let your requests be made known to God.",
71
+ 13: "I can do all things through him who strengthens me."
72
+ }
73
+ },
74
+ "Hebrews": {
75
+ 11: {
76
+ 1: "Now faith is the assurance of things hoped for, the conviction of things not seen."
77
+ }
78
+ },
79
+ "James": {
80
+ 1: {
81
+ 5: "If any of you lacks wisdom, let him ask God, who gives generously to all without reproach, and it will be given him."
82
+ }
83
+ },
84
+ "1 John": {
85
+ 4: {
86
+ 19: "We love because he first loved us."
87
+ }
88
+ }
89
+ }
90
+
91
+ SAMPLE_SIMPLIFICATIONS = {
92
+ "Genesis 1:1": "Before anything else existed, God made the entire universe—the sky, stars, planets, and earth.",
93
+ "Genesis 1:26": "God decided to create humans to be like Him, to reflect His character and nature.",
94
+ "Exodus 20:12": "Show respect and care for your parents, and God will bless you with a long, good life.",
95
+ "Psalm 23:1": "The Lord takes care of all my needs, just like a shepherd cares for his sheep.",
96
+ "Psalm 23:4": "Even when I go through really hard and scary times, I won't be afraid because I know God is with me protecting and comforting me.",
97
+ "Psalm 119:105": "The Bible shows me how to live my life and make good decisions, like a flashlight helps me see where to walk in the dark.",
98
+ "Proverbs 3:5-6": "Trust God completely instead of relying only on your own thinking. Include Him in every part of your life, and He will guide you in the right direction.",
99
+ "Isaiah 40:31": "People who trust in God and wait for His timing will receive new energy and strength. They won't get tired but will keep going with God's power.",
100
+ "Matthew 5:3-9": "God blesses people who: realize they need Him, are sad about wrong things, are gentle, want to do what's right, show mercy to others, have pure hearts, and work to make peace.",
101
+ "Matthew 6:33": "Make knowing God and living His way your top priority, and He will take care of everything else you need.",
102
+ "Matthew 11:28": "If you're tired and carrying heavy burdens, come to Jesus and He will give you rest and peace.",
103
+ "John 3:16": "God loved people so much that He sent His only Son Jesus. Anyone who believes in Him will live forever with God instead of dying separated from Him.",
104
+ "John 14:6": "Jesus is the only way to know God, the only source of real truth, and the only one who can give us eternal life.",
105
+ "Romans 8:28": "God works through every situation in the lives of those who love Him, bringing about good results according to His plans.",
106
+ "Philippians 4:6": "Don't worry about anything. Instead, pray about everything, telling God what you need and thanking Him for what He's done.",
107
+ "Philippians 4:13": "I can handle anything life throws at me because Jesus gives me the strength to do it.",
108
+ "Hebrews 11:1": "Faith means being sure about what we hope for and certain about what we can't see yet.",
109
+ "James 1:5": "If you need wisdom or don't know what to do, ask God, and He will gladly give you the understanding you need.",
110
+ "1 John 4:19": "We're able to love others because God loved us first and showed us what real love looks like."
111
+ }
112
+
113
+ def get_books():
114
+ """Return sorted list of available books"""
115
+ return sorted(SAMPLE_VERSES.keys())
116
+
117
+ def get_chapters(book):
118
+ """Return sorted list of available chapters for a given book"""
119
+ if book in SAMPLE_VERSES:
120
+ return sorted(SAMPLE_VERSES[book].keys())
121
+ return []
122
+
123
+ def get_verses(book, chapter):
124
+ """Return sorted list of available verses for a given book and chapter"""
125
+ if book in SAMPLE_VERSES and chapter in SAMPLE_VERSES[book]:
126
+ return sorted(SAMPLE_VERSES[book][chapter].keys())
127
+ return []
128
+
129
+ def get_verse_text(book, chapter, verse):
130
+ """Return the original text for a specific verse"""
131
+ if (book in SAMPLE_VERSES and
132
+ chapter in SAMPLE_VERSES[book] and
133
+ verse in SAMPLE_VERSES[book][chapter]):
134
+ return SAMPLE_VERSES[book][chapter][verse]
135
+ return None
136
+
137
+ def get_simplified_example(book, chapter, verse):
138
+ """Return a sample simplification for a verse if available"""
139
+ ref = f"{book} {chapter}:{verse}"
140
+ return SAMPLE_SIMPLIFICATIONS.get(ref)