wideholy 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .pytest_cache/
8
+ .mypy_cache/
9
+ .ruff_cache/
wideholy-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 WideHoly
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,379 @@
1
+ Metadata-Version: 2.4
2
+ Name: wideholy
3
+ Version: 0.1.0
4
+ Summary: Python SDK for WideHoly — cross-religion scripture search, verse comparison, verse of the day, religious calendar, and commentary across 5 world religions.
5
+ Project-URL: Homepage, https://wideholy.com
6
+ Project-URL: Compare Verses, https://wideholy.com/compare/
7
+ Project-URL: Religious Calendar, https://wideholy.com/calendar/
8
+ Project-URL: Documentation, https://wideholy.com/developers/
9
+ Project-URL: Repository, https://github.com/wideholy/wideholy
10
+ Project-URL: Issues, https://github.com/wideholy/wideholy/issues
11
+ Project-URL: Changelog, https://github.com/wideholy/wideholy/releases
12
+ Author: WideHoly
13
+ License-Expression: MIT
14
+ License-File: LICENSE
15
+ Keywords: bible,calendar,commentary,comparison,cross-religion,gita,quran,religion,scripture,sutra,torah,verse
16
+ Classifier: Development Status :: 4 - Beta
17
+ Classifier: Environment :: Console
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: License :: OSI Approved :: MIT License
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Religion
27
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
+ Classifier: Typing :: Typed
29
+ Requires-Python: >=3.10
30
+ Provides-Extra: all
31
+ Requires-Dist: httpx>=0.27; extra == 'all'
32
+ Requires-Dist: mcp>=1.0; extra == 'all'
33
+ Requires-Dist: rich>=13.0; extra == 'all'
34
+ Requires-Dist: typer>=0.15; extra == 'all'
35
+ Provides-Extra: api
36
+ Requires-Dist: httpx>=0.27; extra == 'api'
37
+ Provides-Extra: cli
38
+ Requires-Dist: rich>=13.0; extra == 'cli'
39
+ Requires-Dist: typer>=0.15; extra == 'cli'
40
+ Provides-Extra: mcp
41
+ Requires-Dist: mcp>=1.0; extra == 'mcp'
42
+ Description-Content-Type: text/markdown
43
+
44
+ # wideholy
45
+
46
+ [![PyPI](https://img.shields.io/pypi/v/wideholy)](https://pypi.org/project/wideholy/)
47
+ [![Python](https://img.shields.io/pypi/pyversions/wideholy)](https://pypi.org/project/wideholy/)
48
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
49
+
50
+ Python SDK for **WideHoly** — cross-religion scripture search, verse comparison, verse of the day, religious calendar, and commentary across 5 world religions. Access 236,866 scripture records spanning Christianity (124K verses), Islam (31K ayahs), Judaism (69K verses), Hinduism (6K verses), and Buddhism (5K texts) through a unified API.
51
+
52
+ Built on the [WideHoly](https://wideholy.com) platform, which aggregates scripture data from 5 religion-specific sites — [WideBible](https://widebible.com), [WideQuran](https://widequran.com), [WideTorah](https://widetorah.com), [WideGita](https://widegita.com), and [WideSutra](https://widesutra.com) — into a single cross-religion hub with comparison tools, shared topics, and a unified religious calendar.
53
+
54
+ > **Explore the interactive tools at [wideholy.com](https://wideholy.com)** — [Compare Verses](https://wideholy.com/compare/), [Religious Calendar](https://wideholy.com/calendar/), [Cross-Religion Topics](https://wideholy.com/topics/)
55
+
56
+ ## Table of Contents
57
+
58
+ - [Install](#install)
59
+ - [Quick Start](#quick-start)
60
+ - [What You'll Find on WideHoly](#what-youll-find-on-wideholy)
61
+ - [Five World Scriptures](#five-world-scriptures)
62
+ - [Cross-Religion Comparison](#cross-religion-comparison)
63
+ - [Religious Calendar](#religious-calendar)
64
+ - [Command-Line Interface](#command-line-interface)
65
+ - [MCP Server (Claude, Cursor, Windsurf)](#mcp-server-claude-cursor-windsurf)
66
+ - [REST API Client](#rest-api-client)
67
+ - [API Reference](#api-reference)
68
+ - [Learn More About World Scriptures](#learn-more-about-world-scriptures)
69
+ - [WideHoly Family](#wideholy-family)
70
+ - [License](#license)
71
+
72
+ ## Install
73
+
74
+ ```bash
75
+ # Core (no dependencies)
76
+ pip install wideholy
77
+
78
+ # With API client
79
+ pip install "wideholy[api]"
80
+
81
+ # With CLI
82
+ pip install "wideholy[cli]"
83
+
84
+ # With MCP server for AI assistants
85
+ pip install "wideholy[mcp]"
86
+
87
+ # Everything
88
+ pip install "wideholy[all]"
89
+ ```
90
+
91
+ ## Quick Start
92
+
93
+ ```python
94
+ from wideholy.api import WideHoly
95
+
96
+ with WideHoly() as client:
97
+ # Get today's verse of the day from the Bible
98
+ votd = client.verse_of_the_day("bible")
99
+ print(votd["reference"]) # e.g. "Psalm 23:1"
100
+ print(votd["text"]) # "The LORD is my shepherd; I shall not want."
101
+
102
+ # Compare Genesis 1:1 with Quran Al-Fatihah 1
103
+ result = client.compare("bible:genesis.1.1", "quran:al-fatihah.1")
104
+ print(result["verse_a"]["text"]) # "In the beginning God created..."
105
+ print(result["verse_b"]["text"]) # "In the name of Allah..."
106
+
107
+ # Search across all religions
108
+ suggestions = client.search_suggest("love")
109
+ for s in suggestions["suggestions"]:
110
+ print(f" {s['religion']}: {s['text']} ({s['type']})")
111
+ ```
112
+
113
+ ## What You'll Find on WideHoly
114
+
115
+ ### Five World Scriptures
116
+
117
+ WideHoly aggregates scripture data from 5 major world religions, each with its own dedicated site for deep exploration. The hub API provides unified cross-religion access to all 236,866 records.
118
+
119
+ | Religion | Scripture | Books | Records | Translations | Native Script |
120
+ |----------|-----------|-------|---------|-------------|---------------|
121
+ | Christianity | Holy Bible | 66 books (OT + NT) | 124,425 verses | KJV, NIV, ESV, NASB, NLT, ASV | English (Greek/Hebrew source) |
122
+ | Islam | Holy Quran | 114 surahs | 31,102 ayahs | Sahih International, Pickthall, Yusuf Ali | Arabic |
123
+ | Judaism | Tanakh + Talmud | 24 books + 63 tractates | 69,213 verses + 2,121 dapim | JPS, Koren, Artscroll | Hebrew / Aramaic |
124
+ | Hinduism | Bhagavad Gita | 18 chapters | 6,800 verses | Swami Mukundananda, Eknath Easwaran | Sanskrit / Devanagari |
125
+ | Buddhism | Tripitaka + Mahayana | 5 collections | 5,326 texts | Thanissaro Bhikkhu, Bhikkhu Bodhi | Pali / Sanskrit |
126
+
127
+ Each religion's data includes structured metadata: book/surah/chapter hierarchy, verse references, multiple translation editions, original language text, and cross-referenced topics for thematic exploration.
128
+
129
+ ```python
130
+ # Get a random verse from any religion
131
+ verse = client.random_verse()
132
+ print(f"[{verse['religion']}] {verse['reference']}: {verse['text']}")
133
+
134
+ # Get today's Quran verse
135
+ quran_votd = client.verse_of_the_day("quran")
136
+ print(quran_votd["text"]) # Today's selected ayah in English
137
+ ```
138
+
139
+ Learn more: [WideBible](https://widebible.com) · [WideQuran](https://widequran.com) · [WideTorah](https://widetorah.com)
140
+
141
+ ### Cross-Religion Comparison
142
+
143
+ WideHoly provides 10 universal spiritual themes for cross-religion comparison, showing how different traditions address the same fundamental questions of human existence. Each theme includes curated verses and scholarly summaries from all 5 religions.
144
+
145
+ | Topic | Description | Religions |
146
+ |-------|-------------|-----------|
147
+ | Creation | Origin of the universe and humanity | Bible, Quran, Torah, Gita, Sutra |
148
+ | Prayer | Communication with the divine | Bible, Quran, Torah, Gita, Sutra |
149
+ | Love | Divine and human love | Bible, Quran, Torah, Gita, Sutra |
150
+ | Afterlife | Death, judgment, and eternal life | Bible, Quran, Torah, Gita, Sutra |
151
+ | Compassion | Mercy, kindness, and empathy | Bible, Quran, Torah, Gita, Sutra |
152
+ | Fasting | Spiritual discipline and abstinence | Bible, Quran, Torah, Gita, Sutra |
153
+ | Forgiveness | Repentance and divine pardon | Bible, Quran, Torah, Gita, Sutra |
154
+ | Gratitude | Thankfulness and praise | Bible, Quran, Torah, Gita, Sutra |
155
+ | Justice | Righteousness and moral law | Bible, Quran, Torah, Gita, Sutra |
156
+ | Wisdom | Knowledge, understanding, and truth | Bible, Quran, Torah, Gita, Sutra |
157
+
158
+ ```python
159
+ # Compare how religions discuss creation
160
+ creation = client.cross_religion("creation")
161
+ for religion, data in creation["religions"].items():
162
+ print(f"{religion}: {data['summary']}")
163
+ for verse in data["verses"]:
164
+ print(f" [{verse['reference']}] {verse['text'][:80]}...")
165
+
166
+ # Compare specific verses side by side
167
+ result = client.compare("bible:genesis.1.1", "quran:al-fatihah.1")
168
+ print(f"Bible: {result['verse_a']['text']}")
169
+ print(f"Quran: {result['verse_b']['text']}")
170
+ print(f"Cross-religion: {not result['same_religion']}") # True
171
+ ```
172
+
173
+ Learn more: [Compare Verses](https://wideholy.com/compare/) · [Cross-Religion Topics](https://wideholy.com/topics/)
174
+
175
+ ### Religious Calendar
176
+
177
+ WideHoly tracks 50 major religious events across all 5 traditions for 2026, including holidays, fasts, festivals, and observances. Events are sourced from each religion's liturgical calendar.
178
+
179
+ | Religion | Events | Examples |
180
+ |----------|--------|---------|
181
+ | Christianity | Easter, Christmas, Lent, Pentecost, Advent | Easter: April 5, 2026 |
182
+ | Islam | Ramadan, Eid al-Fitr, Eid al-Adha, Mawlid | Ramadan begins: February 18, 2026 |
183
+ | Judaism | Passover, Rosh Hashanah, Yom Kippur, Sukkot | Passover: April 2-9, 2026 |
184
+ | Hinduism | Diwali, Holi, Navratri, Maha Shivaratri | Diwali: October 20, 2026 |
185
+ | Buddhism | Vesak, Asalha Puja, Kathina, Magha Puja | Vesak: May 12, 2026 |
186
+
187
+ ```python
188
+ # Get all religious events for March 2026
189
+ events = client.calendar(month=3)
190
+ for e in events["events"]:
191
+ print(f" {e['date']} {e['religion']:10s} {e['name']}")
192
+
193
+ # Get only Torah/Jewish holidays
194
+ torah_events = client.calendar(religion="torah")
195
+ for e in torah_events["events"]:
196
+ print(f" {e['date']} {e['name']}")
197
+ ```
198
+
199
+ Learn more: [Religious Calendar](https://wideholy.com/calendar/)
200
+
201
+ ## Command-Line Interface
202
+
203
+ ```bash
204
+ # Verse of the day
205
+ wideholy votd # Bible (default)
206
+ wideholy votd --religion quran # Quran
207
+
208
+ # Random verse
209
+ wideholy random # Any religion
210
+ wideholy random --religion torah # Torah only
211
+
212
+ # Compare two verses
213
+ wideholy compare genesis.1.1 john.1.1 # Same religion
214
+ wideholy compare bible:genesis.1.1 quran:al-fatihah.1 # Cross-religion
215
+
216
+ # Search across all religions
217
+ wideholy search love
218
+ wideholy search prayer --religion bible
219
+
220
+ # Topic verses across religions
221
+ wideholy topic creation
222
+ wideholy topic wisdom
223
+
224
+ # Cross-religion thematic comparison
225
+ wideholy cross-religion prayer
226
+ wideholy cross-religion afterlife
227
+
228
+ # Religious calendar
229
+ wideholy calendar # All events, all religions
230
+ wideholy calendar --religion torah --month 3 # Torah events in March
231
+ wideholy calendar --month 12 # December events
232
+
233
+ # Commentary (Quran tafsir, Torah Rashi, Gita commentaries)
234
+ wideholy commentary quran:al-fatihah.1
235
+ wideholy commentary torah:genesis.1.1
236
+
237
+ # Raw JSON output (for scripting)
238
+ wideholy json verse-of-the-day
239
+ ```
240
+
241
+ ## MCP Server (Claude, Cursor, Windsurf)
242
+
243
+ ### Claude Desktop
244
+
245
+ Add to `claude_desktop_config.json`:
246
+
247
+ ```json
248
+ {
249
+ "mcpServers": {
250
+ "wideholy": {
251
+ "command": "uvx",
252
+ "args": ["--from", "wideholy[mcp]", "python", "-m", "wideholy.mcp_server"]
253
+ }
254
+ }
255
+ }
256
+ ```
257
+
258
+ ### Cursor
259
+
260
+ Add to `.cursor/mcp.json`:
261
+
262
+ ```json
263
+ {
264
+ "mcpServers": {
265
+ "wideholy": {
266
+ "command": "uvx",
267
+ "args": ["--from", "wideholy[mcp]", "python", "-m", "wideholy.mcp_server"]
268
+ }
269
+ }
270
+ }
271
+ ```
272
+
273
+ ### Windsurf
274
+
275
+ Add to `~/.windsurf/mcp.json`:
276
+
277
+ ```json
278
+ {
279
+ "mcpServers": {
280
+ "wideholy": {
281
+ "command": "uvx",
282
+ "args": ["--from", "wideholy[mcp]", "python", "-m", "wideholy.mcp_server"]
283
+ }
284
+ }
285
+ }
286
+ ```
287
+
288
+ ### Available MCP Tools
289
+
290
+ | Tool | Description |
291
+ |------|-------------|
292
+ | `verse_of_the_day` | Get curated daily verse for any religion |
293
+ | `random_verse` | Random verse from one or all religions |
294
+ | `compare_verses` | Side-by-side verse comparison (same or cross-religion) |
295
+ | `search_suggest` | Autocomplete search across topics, people, glossary |
296
+ | `topic_verses` | Verses for a topic across all religions |
297
+ | `cross_religion_topic` | Thematic comparison (creation, love, prayer, etc.) |
298
+ | `religious_calendar` | Religious holidays and observances |
299
+ | `verse_commentary` | Commentary (Quran tafsir, Torah Rashi, Gita) |
300
+
301
+ ## REST API Client
302
+
303
+ ```python
304
+ from wideholy.api import WideHoly
305
+
306
+ client = WideHoly()
307
+
308
+ # 1. Verse of the day — curated daily selection
309
+ votd = client.verse_of_the_day("bible")
310
+ # {"religion": "bible", "reference": "Psalm 23:1", "text": "...", "date": "2026-03-24"}
311
+
312
+ # 2. Random verse — serendipitous discovery
313
+ verse = client.random_verse("gita")
314
+ # {"religion": "gita", "reference": "Gita 2:47", "text": "...", "book": "gita"}
315
+
316
+ # 3. Compare — cross-religion or same-religion side-by-side
317
+ cmp = client.compare("bible:genesis.1.1", "quran:al-fatihah.1")
318
+ # {"verse_a": {...}, "verse_b": {...}, "same_religion": false}
319
+
320
+ # 4. Search suggest — topics, people, glossary terms
321
+ results = client.search_suggest("moses")
322
+ # {"suggestions": [{"text": "Moses", "type": "person", "religion": "bible"}, ...]}
323
+
324
+ # 5. Topic verses — aggregated across religions
325
+ topic = client.topic_verses("love")
326
+ # {"topic": "love", "religions_found": ["bible", "quran", ...], "verses": {...}}
327
+
328
+ # 6. Cross-religion — thematic comparison with summaries
329
+ cross = client.cross_religion("creation")
330
+ # {"topic": "creation", "title": "Creation", "religions": {"bible": {...}, "quran": {...}}}
331
+
332
+ # 7. Calendar — religious holidays and observances
333
+ cal = client.calendar(religion="torah", month=4)
334
+ # {"year": 2026, "month": 4, "religion": "torah", "events": [...]}
335
+
336
+ # 8. Commentary — scholarly annotations
337
+ comm = client.commentary("quran:al-fatihah.1")
338
+ # {"verse_ref": "quran:al-fatihah.1", "religion": "quran", "commentaries": [...]}
339
+
340
+ client.close()
341
+ ```
342
+
343
+ ## API Reference
344
+
345
+ | Method | Endpoint | Description |
346
+ |--------|----------|-------------|
347
+ | `verse_of_the_day(religion, date)` | `GET /api/v1/verse-of-the-day/` | Curated verse of the day, deterministic per date |
348
+ | `random_verse(religion)` | `GET /api/v1/random/` | Random verse, optionally filtered by religion |
349
+ | `compare(ref_a, ref_b)` | `GET /api/v1/compare/` | Side-by-side verse comparison |
350
+ | `search_suggest(query, religion)` | `GET /api/v1/search/suggest/` | Autocomplete across topics, people, glossary |
351
+ | `topic_verses(topic)` | `GET /api/v1/topics/{slug}/verses/` | Verses for a topic across religions |
352
+ | `cross_religion(topic)` | `GET /api/v1/cross-religion/{topic}/` | Thematic comparison with summaries |
353
+ | `calendar(religion, year, month)` | `GET /api/v1/calendar/` | Religious holidays and observances |
354
+ | `commentary(verse_ref)` | `GET /api/v1/commentary/{verse_ref}/` | Scholarly commentary (tafsir, Rashi, Gita) |
355
+
356
+ Full API documentation at [wideholy.com/developers/](https://wideholy.com/developers/).
357
+ OpenAPI 3.1.0 spec: [wideholy.com/api/schema/](https://wideholy.com/api/schema/).
358
+
359
+ ## Learn More About World Scriptures
360
+
361
+ - **Compare**: [Verse Comparison Tool](https://wideholy.com/compare/) · [Cross-Religion Topics](https://wideholy.com/topics/)
362
+ - **Calendar**: [Religious Calendar 2026](https://wideholy.com/calendar/)
363
+ - **Browse**: [Bible Books](https://widebible.com) · [Quran Surahs](https://widequran.com) · [Torah Books](https://widetorah.com) · [Gita Chapters](https://widegita.com) · [Buddhist Sutras](https://widesutra.com)
364
+ - **API**: [REST API Docs](https://wideholy.com/developers/) · [OpenAPI Spec](https://wideholy.com/api/schema/)
365
+
366
+ ## WideHoly Family
367
+
368
+ | Site | Domain | Focus |
369
+ |------|--------|-------|
370
+ | WideBible | [widebible.com](https://widebible.com) | 66 books, 124K verses, 6 translations, commentaries |
371
+ | WideQuran | [widequran.com](https://widequran.com) | 114 surahs, 31K ayahs, tafsir, hadith collections |
372
+ | WideTorah | [widetorah.com](https://widetorah.com) | 24 Tanakh books, 63 Talmud tractates, Rashi commentary |
373
+ | WideGita | [widegita.com](https://widegita.com) | 18 chapters, 6,800 verses, Sanskrit, multiple commentaries |
374
+ | WideSutra | [widesutra.com](https://widesutra.com) | 5 collections, 5,326 texts, Pali/Sanskrit traditions |
375
+ | **WideHoly** | [**wideholy.com**](https://wideholy.com) | **Cross-religion hub — comparison, calendar, unified search** |
376
+
377
+ ## License
378
+
379
+ MIT License. See [LICENSE](LICENSE) for details.