Skip to main content

A Python client library for the Holy Bible API

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 client
  • ApiClient - Low-level HTTP client
  • Configuration - API configuration
  • ApiResponse - API response wrapper

Models

  • Bible - Bible metadata
  • BibleVerse - Bible verse data
  • AudioBible - Audio bible metadata
  • GetBiblesRes - Response for getting bibles
  • GetBibleVersesRes - Response for getting verses
  • GetBibleBooksRes - Response for getting books
  • GetBibleChaptersRes - Response for getting chapters
  • GetAudioBiblesRes - Response for getting audio bibles
  • GetAudioBooksRes - Response for getting audio books
  • GetAudioChaptersRes - Response for getting audio chapters

Exceptions

  • OpenApiException - Base exception
  • ApiTypeError - Type error
  • ApiValueError - Value error
  • ApiKeyError - Key error
  • ApiAttributeError - Attribute error
  • ApiException - 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


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-1.0.7.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

holy_bible_api-1.0.7-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file holy_bible_api-1.0.7.tar.gz.

File metadata

  • Download URL: holy_bible_api-1.0.7.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for holy_bible_api-1.0.7.tar.gz
Algorithm Hash digest
SHA256 e4c6e9437c0ea083c46521488641bd96f1356f407c74f725fa2bd4772744a329
MD5 d8a3d6c443f4a2420ab1300dec803118
BLAKE2b-256 8e2a0ba67954177ec84831688fd87aa907382f71b2a6818d063001e2398937b7

See more details on using hashes here.

File details

Details for the file holy_bible_api-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: holy_bible_api-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for holy_bible_api-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a022efd44501cb25f2be430964480fd209bc3f1382e36dba84eb0d13c9718ac0
MD5 f4c435a43c1bd65671a86bbe3f51e468
BLAKE2b-256 cb8e1b5f90ea4660799a13eafc327a705eacffd4a790940a2ee725b75736a75c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page