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 details)
Built Distribution
pygita-2.0.0-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file pygita-2.0.0.tar.gz
.
File metadata
- Download URL: pygita-2.0.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed783aea6aa657cb88711b75bf3b931027f023ab5a7632269b4962779b4c689e |
|
MD5 | 2a3c580db22fc205c4f1a6fc214f9ee5 |
|
BLAKE2b-256 | f97f9c586fc1136d1ef651eaaea3a129b0b5fb759a2b635c3b57cea0853c9cd5 |
File details
Details for the file pygita-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: pygita-2.0.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87d44e471f264ee5c30c08621874adcd0170807b0951752cef92415a63ef83d8 |
|
MD5 | 7a907e20ece5f693e2b01c37bf3e5467 |
|
BLAKE2b-256 | 3d2f51f21205362a7045d8cebf7a96c13af276d23b584c0ef321d2bb95fc84a8 |