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.6.tar.gz
(6.6 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.6.tar.gz.
File metadata
- Download URL: alquran_cli-0.2.6.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
999bb8c5c01322f53ca0b6a5784d7f5bbd1da6f0a8c7fff7037ac8b01150a5c7
|
|
| MD5 |
a1c2419df041784ded91c4ad57de3630
|
|
| BLAKE2b-256 |
9aef6972fd62638eff304c9cbcdd27325401cb3362c1132a360b082574dde5f7
|
File details
Details for the file alquran_cli-0.2.6-py3-none-any.whl.
File metadata
- Download URL: alquran_cli-0.2.6-py3-none-any.whl
- Upload date:
- Size: 7.9 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 |
17ab7b7e39f1a87b71dc39a1e295b656724a3a65eb958644f1406870d6f43af6
|
|
| MD5 |
56bb9084b696a62396b4773f431f82bd
|
|
| BLAKE2b-256 |
65a65edc6d1688a8669e5e4ddf68ca52bd1cefc815e161e8f17526db285ed566
|