Skip to main content

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.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alquran_cli-0.2.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file alquran_cli-0.2.2.tar.gz.

File metadata

  • Download URL: alquran_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for alquran_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c30ffe2b377fd1dfdb9f80096b89d18abef2c2309890a2c8ba1475189a6ea619
MD5 95d72b01c916b5320484714fa6c0e504
BLAKE2b-256 668ab41983f94d516caea2979e940c5ebc3b3048f7f0c9571c8756829041d994

See more details on using hashes here.

File details

Details for the file alquran_cli-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: alquran_cli-0.2.2-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

Hashes for alquran_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 972bb7ef0386015e3cd12bbabc9889f686c12c9d9f9a7da2bd576c5f36ebca0a
MD5 128a6e0e34c9dd9bd280ae4dda645141
BLAKE2b-256 6757fb60dd28dd7288d1bf45a54514a756fa94628e8753804ce4acab9337b7bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page