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.4 (2024-05-20)
- Fixed CLI error when searching with the
#option.
v0.0.3 (2024-05-19)
- Fixed CLI error when searching past end of Quran.
- Improved display of braces on CLI.
v0.0.2 (2024-05-19)
- Fixed CLI error that can happen with overlapping matches.
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.4.tar.gz
(5.0 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file purequransearch-0.0.4.tar.gz.
File metadata
- Download URL: purequransearch-0.0.4.tar.gz
- Upload date:
- Size: 5.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4d134f771e87788f401fe63f50d2a2df5033f61a5a1b3b9cf0979c55c4b99d9
|
|
| MD5 |
84112dab26479c61dc3f6869873c1fb7
|
|
| BLAKE2b-256 |
b47fdcd536147213e614698437d393db2289c0851ffad1fa9c94c4306acfc879
|
File details
Details for the file purequransearch-0.0.4-py3-none-any.whl.
File metadata
- Download URL: purequransearch-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106172e8575b549cc31594690d7f5733e3be68752d26e561bcd080193bd18613
|
|
| MD5 |
43dd3cfca9e8504576c46ab12a0832b0
|
|
| BLAKE2b-256 |
d75881b8e8b243476bf21f1104f356b2e4e8c6f9a87bb5bf1411fe845ecf2f55
|