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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f486833742eaa8274ca7b381795ba8030d214e4dcbafd571145c47a4c9dd6c19
|
|
| MD5 |
2c132bd5b0dcfa7962c0611cf65c2c11
|
|
| BLAKE2b-256 |
800906974eb4707edb4d15e895b0a35125cb93a897c211a5eb07fb2be4ed8f05
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00b57b721f36dbeb203153cea1da5fa8ff5462c3d3c49917972bcad89cddbfc3
|
|
| MD5 |
e1185609d3cdfd14ffa87a33a14695ed
|
|
| BLAKE2b-256 |
bd2642e3929f31eadb735e36f0ade788237adde8d670703b2e57ef5e8c2bcc79
|