Skip to main content

Python library for Quran and Hadith books with multi-language support

Project description

Qurango ๐Ÿ“–

Qurango is a Python library that provides easy access to Quran translations and Hadith books in multiple languages. It is designed for researchers, students, developers, and NLP practitioners who want structured Islamic textual data in JSON and Pandas DataFrame formats.

โœจ Features

๐Ÿ“˜ Access major Hadith books (e.g. Sahih Bukhari, Sahih Muslim, etc.)

๐Ÿ“– Quran with multiple translations

๐ŸŒ Multi-language support

๐Ÿ” Search Hadith by:

Hadith number

Book name

Narrator

Keywords

๐Ÿ“Š Convert Hadith and Quran data into Pandas DataFrames

๐Ÿค– Useful for NLP, Machine Learning, and Data Analysis

๐Ÿงฉ Clean and beginner-friendly API

๐Ÿ“ฆ Installation

Install directly from PyPI:

pip install qurango

๐Ÿš€ Quick Start Importing the Library from qurango import Hadith, Quran

๐Ÿ“˜ Hadith Usage Initialize Hadith Object hadith = Hadith()

Get Available Books hadith.list_books()

Search Hadith by Number result = hadith.search_by_number( book="Sahih Bukhari", hadith_number=1 )

print(result)

Search Hadith by Narrator result = hadith.search_by_narrator("Abu Huraira")

print(result)

Convert Hadith Book to DataFrame df = hadith.to_dataframe(book="Sahih Muslim") print(df.head())

๐Ÿ“– Quran Usage Initialize Quran Object quran = Quran()

Get Available Translations quran.list_translations()

Get a Specific Ayah ayah = quran.get_ayah( surah=1, ayah=1, language="en" )

print(ayah)

Convert Quran to DataFrame df = quran.to_dataframe(language="en") print(df.head())

๐Ÿ“Š Output Formats

Qurango supports:

โœ… JSON output

โœ… Pandas DataFrame

โœ… Easy integration with NLTK, spaCy, Transformers

๐Ÿง  Use Cases

Islamic research

NLP on religious texts

Machine learning datasets

Chatbots & AI assistants

Educational tools

๐Ÿ—‚ Project Structure qurango/ โ”‚ โ”œโ”€โ”€ hadith/ โ”‚ โ”œโ”€โ”€ hadith_loader.py โ”‚ โ””โ”€โ”€ hadith_search.py โ”‚ โ”œโ”€โ”€ quran/ โ”‚ โ”œโ”€โ”€ quran_loader.py โ”‚ โ””โ”€โ”€ translations.py โ”‚ โ”œโ”€โ”€ utils/ โ”‚ โ””โ”€โ”€ text_normalizer.py โ”‚ โ”œโ”€โ”€ init.py โ””โ”€โ”€ data/

๐Ÿ›  Requirements

Python 3.8+

pandas

json

๐Ÿค Contributing

Contributions are welcome! If youโ€™d like to improve this project:

Fork the repository

Create a feature branch

Commit your changes

Submit a pull request

๐Ÿ“œ License

This project is licensed under the MIT License.

๐Ÿ™ Acknowledgment

This library is developed to make Islamic knowledge more accessible for developers and researchers worldwide.

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

qurango-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qurango-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file qurango-0.1.0.tar.gz.

File metadata

  • Download URL: qurango-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0rc2

File hashes

Hashes for qurango-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f486833742eaa8274ca7b381795ba8030d214e4dcbafd571145c47a4c9dd6c19
MD5 2c132bd5b0dcfa7962c0611cf65c2c11
BLAKE2b-256 800906974eb4707edb4d15e895b0a35125cb93a897c211a5eb07fb2be4ed8f05

See more details on using hashes here.

File details

Details for the file qurango-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qurango-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0rc2

File hashes

Hashes for qurango-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00b57b721f36dbeb203153cea1da5fa8ff5462c3d3c49917972bcad89cddbfc3
MD5 e1185609d3cdfd14ffa87a33a14695ed
BLAKE2b-256 bd2642e3929f31eadb735e36f0ade788237adde8d670703b2e57ef5e8c2bcc79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page