Skip to main content

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.

Metadata

Release files for purequransearch 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for purequransearch 0.0.4
File Size Uploaded Provenance
purequransearch-0.0.4.tar.gz 5.0 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for purequransearch 0.0.4
File Interpreter ABI Platform
purequransearch-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 MB

Release files / purequransearch-0.0.4.tar.gz

Download URL purequransearch-0.0.4.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
c4d134f771e87788f401fe63f50d2a2df5033f61a5a1b3b9cf0979c55c4b99d9
BLAKE2b-256 checksum
How to use checksums
b47fdcd536147213e614698437d393db2289c0851ffad1fa9c94c4306acfc879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / purequransearch-0.0.4-py3-none-any.whl

Download URL purequransearch-0.0.4-py3-none-any.whl
Size 5.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
106172e8575b549cc31594690d7f5733e3be68752d26e561bcd080193bd18613
BLAKE2b-256 checksum
How to use checksums
d75881b8e8b243476bf21f1104f356b2e4e8c6f9a87bb5bf1411fe845ecf2f55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Security for purequransearch 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page