A Python module to get Quran verses using GlobalQuran API, with different translations

FarooqKZ df1f4688ea updated email address 5 years ago
.gitignore 379b7c098c Initial commit 6 years ago
CHANGELOG.md de5a6379c3 added a changelog 5 years ago
CREDITS.md 65694d7942 Created CREDITS.md 5 years ago
ISC b980956569 Updated my email 5 years ago
README.md d2c31f4fbb added credits section 5 years ago
pygq.py df1f4688ea updated email address 5 years ago

README.md

PyGQ

A python module to get Quran verses using GlobalQuran API

PyGQ uses GlobalQuran API to get Quran verses in multiple translations. It was a part of KoranFinder after I decided to re-write this part and now it can be used as an independent module.

Usage

This is a sample code with PyGQ which gets the first ayah of the first surah:

import pygq
Q = pygq.PyGQ()
print(Q.getAyah(1, 1, "en.sahih")["verse"])

You could use it as a command line tool, too:

pygq.py surah:ayah [language code]

language code is en.sahih by default.

Note that getAyah() returns a dictionary containing the ayah text, number, surah number and id.

Credits

See CREDITS.md

Licence

See ISC.