Metadata-Version: 2.1
Name: HadithPy
Version: 1.1.1
Summary: A simple and advanced library for searching and managing Hadiths (Prophet sayings)
Author: Ahmed Negm
Author-email: a7mednegm.x@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: Arabic
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests

# HadithPy

HadithPy is a simple and powerful Python library for searching and managing Hadiths (Prophet Muhammad's sayings) in various collections like Sahih Bukhari and Sunan Abu Dawood. This library provides an easy-to-use interface to search Hadiths by keyword and get results from different books.

## Features

- Search for Hadiths by keyword (Arabic text).
- Supports popular Hadith books like Sahih Bukhari and Sunan Abu Dawood.
- Easily extendable for more Hadith books in the future.
- Simple and clear API for integrating into Python projects.

## Installation

You can install the library using pip:

```bash
pip install HadithPy
```

## Example

```python
# Create an instance of HadithSearcher with the book name "abudawud"
hadith_searcher = HadithSearcher(["abudawud"])

# Search for hadiths using the keyword "actions are judged by intentions"
search_result = hadith_searcher.search("الأعمال بالنيات")

# Print the search result
print("This is the search result:")
print(search_result)

# Get all available books
books = hadith_searcher.get_books()

# Print the list of available books
print("Result of get_books:")
print(books)
```

## Updates

[![Telegram](https://raw.githubusercontent.com/CLorant/readme-social-icons/main/large/colored/telegram.svg)](https://t.me/i88y8)
