pygita is a wrapper of bhagavadgita.io api for Python 3
Project description
pygita
pygita is a wrapper of bhagavadgita.io api for Python 3
Installation
Install it from pypi using pip
pip install pygita
Authentication
-
Register on bhagavadgita.io
-
Create App
-
Copy Client Id and Client Secret
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
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
pygita-2.0.0.tar.gz
(8.9 kB
view hashes)
Built Distribution
pygita-2.0.0-py3-none-any.whl
(10.4 kB
view hashes)