Coverage for youversion/__init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-06-26 11:31 +0100

1"""YouVersion Bible Client Library 

2 

3A Python client library for accessing the YouVersion Bible API. 

4Supports both synchronous and asynchronous operations. 

5 

6Example usage: 

7 

8Synchronous: 

9 from youversion import SyncClient 

10 

11 with SyncClient() as client: 

12 votd = client.verse_of_the_day() 

13 print(votd) 

14 

15Asynchronous: 

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 

27from .clients import AsyncClient, SyncClient 

28 

29# Backward compatibility aliases 

30AClient = AsyncClient 

31Client = SyncClient 

32 

33__version__ = "0.4.0" 

34__all__ = ["AsyncClient", "SyncClient", "AClient", "Client"]