Search the Quran (in English) for words and phrases.
Project description
pure-quran-search
Search the Quran (in English) for words and phrases.
Installation
purequransearch is installable from PyPI:
$ pip install --upgrade pure-quran-search
Usage
purequransearch can be imported as a Python module:
from purequransearch import Concordance
concordance = Concordance("pickthall")
query = input("Enter query: ")
results = concordance.search(query)
verses = concordance.word_indices_to_verses(results)
print(f"Found {len(results)} occurrence(s) in {len(verses)} verse(s).")
purequransearch can also be used as a command line tool:
$ purequransearch search "the test" -c pickthall
6:165 He it is Who hath placed you as viceroys of the earth and hath exalted some of you in rank above others, that He may try you by {{(the test}} of) that which He hath given you. Lo! Thy Lord is swift in prosecution, and Lo! He verily is Forgiving, Merciful.
Occurrences: 1; Verses: 1
23:30 Lo! herein verily are portents, for lo! We are ever putting (mankind) to {{the test.}}
Occurrences: 2; Verses: 2
Found 2 occurrence(s) in 2 verse(s).
Changelog
v0.0.1 (2024-05-19)
Initial release.
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
purequransearch-0.0.1.tar.gz
(5.0 MB
view hashes)
Built Distribution
Close
Hashes for purequransearch-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242e60dc7139b1647e3889e813469534195b554dc5aa1c2c231beb191ce2fc6d |
|
MD5 | 868784273b08d187821745bbfccf691b |
|
BLAKE2b-256 | 2f66ada2675c4c792073c7348943a6cba09ff25b787be8de42947dea25dbce93 |