Skip to main content

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

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

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

pygita-2.0.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

pygita-2.0.0-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

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