CLI untuk memberikan isi alquran dan hadits
Project description
Alquran CLI
CLI Sederhana untuk mengambil isi-isi surah al-Quran dan tafsirnya serta riwayat-riwayat hadits.
Instalasi
Cara 1 :
pip install alquran-cli
Cara 2 :
git clone https://github.com/anggiAnand/alquran-cli.git
cd alquran-cli
pip install .
Cara 3 :
pip install git+https://github.com/anggiAnand/alquran-cli
General Usage
Untuk menggunakan command bisa dapat dengan.
>>> import alquran.core as alquran
>>> # Cari hadith
>>> alquran.lihat_hadith("tirmidzi", 1) # Memberikan raw response
{'name': 'HR. Tirmidzi', 'id': 'tirmidzi', ...}
>>>
>>> # Atau dengan range
>>> alquran.lihat_hadith("tirmidzi", 1, "1-2")
{'name': 'HR. Tirmidzi', 'id': 'tirmidzi', 'available': 3625, 'requested': 2, 'hadiths': [{'number': 1, ...}, {'number': 2, ...}]}
>>>
>>> # Isi Surah
>>> alquran.isi_surah(1) # Memberikan tuple dimana index 0 adalah detail surah dan index 1 adalah isi surah yang terfilter (Jika memberikan argument ayat)
({'nomor': 1, 'nama': 'الفاتحة', 'namaLatin': 'Al-Fatihah', 'jumlahAyat': 7, 'tempatTurun': 'Mekah', 'arti': 'Pembukaan' ...}, [{'nomorAyat': 1, 'teksArab': 'بِسْمِ اللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ', 'teksLatin': 'bismillāhir-raḥmānir-raḥīm(i).', 'teksIndonesia': 'Dengan nama Allah Yang Maha Pengasih, Maha Penyayang.', ...}])
CLI Usage
Jika sudah install dari pip
alquran --help
Jika tidak
pip install requirements.txt
python3 alquran/alquran.py --help
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
alquran_cli-0.2.1.tar.gz
(5.3 kB
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 alquran_cli-0.2.1.tar.gz.
File metadata
- Download URL: alquran_cli-0.2.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcc1ad6cfc7de5c6992f2551dad48c5fb4515cdc10e223dfc5f71b8754412abb
|
|
| MD5 |
421d9df5e136134a112e1b5d723fb1a2
|
|
| BLAKE2b-256 |
7ce9990406382ded67ac19efa00380ddd299057eb2bab4ae94cdb410cccd2e7c
|
File details
Details for the file alquran_cli-0.2.1-py3-none-any.whl.
File metadata
- Download URL: alquran_cli-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b3d45c299ff28ddb2320f57cf5689b7defa18daf39f3f6e3dfde9c4629b34bc
|
|
| MD5 |
fa75e91a57f99933ed99b85cdb033c27
|
|
| BLAKE2b-256 |
156368383a8f3fe9c7a5bbd9f23e5e009450c80880c6efebba2a67fa3e134926
|