youversion-bible-client 0.1.0__py3-none-any.whl
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.
- youversion/__init__.py +34 -0
- youversion/cli.py +2574 -0
- youversion/clients/__init__.py +6 -0
- youversion/clients/async_client.py +27 -0
- youversion/clients/sync_client.py +821 -0
- youversion/config.py +150 -0
- youversion/core/__init__.py +18 -0
- youversion/core/authenticator.py +109 -0
- youversion/core/base_client.py +908 -0
- youversion/core/data_processor.py +724 -0
- youversion/core/http_client.py +787 -0
- youversion/core/interfaces.py +259 -0
- youversion/enums.py +21 -0
- youversion/models/__init__.py +126 -0
- youversion/models/base.py +90 -0
- youversion/models/bible.py +165 -0
- youversion/models/common.py +164 -0
- youversion/models/commons.py +117 -0
- youversion/models/events.py +171 -0
- youversion/models/friends.py +145 -0
- youversion/models/moments.py +81 -0
- youversion/utils.py +361 -0
- youversion_bible_client-0.1.0.dist-info/METADATA +188 -0
- youversion_bible_client-0.1.0.dist-info/RECORD +27 -0
- youversion_bible_client-0.1.0.dist-info/WHEEL +4 -0
- youversion_bible_client-0.1.0.dist-info/entry_points.txt +58 -0
- youversion_bible_client-0.1.0.dist-info/licenses/LICENSE +21 -0
youversion/__init__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""YouVersion Bible Client Library
|
|
2
|
+
|
|
3
|
+
A Python client library for accessing the YouVersion Bible API.
|
|
4
|
+
Supports both synchronous and asynchronous operations.
|
|
5
|
+
|
|
6
|
+
Example usage:
|
|
7
|
+
|
|
8
|
+
Synchronous:
|
|
9
|
+
from youversion import SyncClient
|
|
10
|
+
|
|
11
|
+
with SyncClient() as client:
|
|
12
|
+
votd = client.verse_of_the_day()
|
|
13
|
+
print(votd)
|
|
14
|
+
|
|
15
|
+
Asynchronous:
|
|
16
|
+
import asyncio
|
|
17
|
+
from youversion import AsyncClient
|
|
18
|
+
|
|
19
|
+
async def main():
|
|
20
|
+
async with AsyncClient() as client:
|
|
21
|
+
votd = await client.verse_of_the_day()
|
|
22
|
+
print(votd)
|
|
23
|
+
|
|
24
|
+
asyncio.run(main())
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
from .clients import AsyncClient, SyncClient
|
|
28
|
+
|
|
29
|
+
# Backward compatibility aliases
|
|
30
|
+
AClient = AsyncClient
|
|
31
|
+
Client = SyncClient
|
|
32
|
+
|
|
33
|
+
__version__ = "0.3.0"
|
|
34
|
+
__all__ = ["AsyncClient", "SyncClient", "AClient", "Client"]
|