Add your description here
Project description
Holy Bible API Python Client
A Python client library for accessing the Holy Bible API with full type support.
Installation
pip install holy_bible_api
Usage
Basic Usage
from holy_bible_api import create_bible_api
# Create an API client
api = create_bible_api()
# Make API calls
bibles = api.get_bibles()
With Type Hints
from holy_bible_api import (
create_bible_api,
DefaultApi,
Bible,
BibleVerse,
GetBiblesRes,
GetBibleVersesRes,
)
# Create a typed API client
api: DefaultApi = create_bible_api()
# Get bibles with type hints
bibles_response: GetBiblesRes = api.get_bibles()
bible: Bible = bibles_response.data[0]
# Get verses with type hints
verses_response: GetBibleVersesRes = api.get_bible_verses(
bible_id=bible.id,
book=1,
chapter=1
)
verse: BibleVerse = verses_response.data[0]
print(f"{verse.book}:{verse.chapter}:{verse.verse} - {verse.text}")
Custom Host
from holy_bible_api import create_bible_api
# Use a custom API host
api = create_bible_api(url="https://custom-host.com")
Available Types
The following types are exported for use:
API Classes
DefaultApi- Main API clientApiClient- Low-level HTTP clientConfiguration- API configurationApiResponse- API response wrapper
Models
Bible- Bible metadataBibleVerse- Bible verse dataAudioBible- Audio bible metadataGetBiblesRes- Response for getting biblesGetBibleVersesRes- Response for getting versesGetBibleBooksRes- Response for getting booksGetBibleChaptersRes- Response for getting chaptersGetAudioBiblesRes- Response for getting audio biblesGetAudioBooksRes- Response for getting audio booksGetAudioChaptersRes- Response for getting audio chapters
Exceptions
OpenApiException- Base exceptionApiTypeError- Type errorApiValueError- Value errorApiKeyError- Key errorApiAttributeError- Attribute errorApiException- General API exception
Type Checking
This package includes py.typed marker file for full type checking support with mypy, pyright, and other type checkers.
License
[Your License Here]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
holy_bible_api-4.0.0.tar.gz
(36.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file holy_bible_api-4.0.0.tar.gz.
File metadata
- Download URL: holy_bible_api-4.0.0.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
382239a705df421a0c76b8a8d9fb76f4cd505c967f0f69fd21675b18c3f313d7
|
|
| MD5 |
58ddfcc3de5de632ebe55c194b646c11
|
|
| BLAKE2b-256 |
220df1fdbd2af0c716810a7f2dda9d2dc440d3ca793ffe60ba5a41f87f8d42ed
|
File details
Details for the file holy_bible_api-4.0.0-py3-none-any.whl.
File metadata
- Download URL: holy_bible_api-4.0.0-py3-none-any.whl
- Upload date:
- Size: 37.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26b804f305543eb37edc56415124bb0ca3294e90760c521eebd506b0f84e2de0
|
|
| MD5 |
c63cf94a6ffd3bc87b0484734da014e9
|
|
| BLAKE2b-256 |
ef2e44fcf46bef41651a0b919076aa9af7678ed49ed9fb57bc3eed2442a1b74d
|