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.3.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.3.tar.gz.
File metadata
- Download URL: alquran_cli-0.2.3.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 |
d57137f764410b3c23731a1858c9317ee7544450f368682ae6416e6596854655
|
|
| MD5 |
8c694ef217cf6d0b0abfb4dbe8e37669
|
|
| BLAKE2b-256 |
17c84261ca52fdce6f24f560fd6905653a4f53d019c04e4dc1b94b5dd807bde1
|
File details
Details for the file alquran_cli-0.2.3-py3-none-any.whl.
File metadata
- Download URL: alquran_cli-0.2.3-py3-none-any.whl
- Upload date:
- Size: 7.8 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 |
820c9b7068f3e794c4930bf8e2bde0408276835800c2bd7e2dc8f0a0209d9905
|
|
| MD5 |
1ed98a2291dd08369c7f63e396862548
|
|
| BLAKE2b-256 |
7988d168472c4aafe4f68315086877dd7ccc453d50389d593fa81852481fb35b
|