Skip to content

TheShubhendra/pygita

Repository files navigation

pygita

pygita is a wrapper of bhagavadgita.io api for Python 3

PyPI - License PyPI - Downloads GitHub last commit Build Status Code quality Scrutinizer coverage Requires.io (branch) GitHub repo size PyPI - Python Version PyPI - Wheel PyPI made-with-python PyPI - Status PyPI - Format

Installation

Install it from pypi using pip

pip install pygita

Authentication

Usage

1. Create a client

from pygita import Client
client = Client(CLIENT_ID, CLIENT_SECRET)

2. Get a verse

verse = client.get_verse(verse_number, chapter_number)

3. Get a chapter

chapter = client.get_chapter(chapter_number)

Objects

Attributes of Chapter objects

1. chapter_number
2. chapter_summary
3. name
4. verses_count
5. name_meaning
6. name_translation
7. name_transliterated(in English only)
8. name_meaning(in Hindi only)

Attributes of Verse objects

1. chapter_number
2. verse_number
3. text
4. meaning
5. transliteration
6. word_meanings