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.4.tar.gz (6.6 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.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for alquran_cli-0.2.4.tar.gz
Algorithm Hash digest
SHA256 5391ff029bd8971d65f9accbb353f5d8f15d7d8da550049d1af11c9b74b7c0f7
MD5 ad2139e289d69819be4dcdfad29aa3f7
BLAKE2b-256 3bdaa0ae794c41a3d6c2e6bd51f2cba388a0ea574b763e534c122066601d59d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alquran_cli-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ab9619e7af0c607483f090143eda5ac001017afe749ac579e55d0043a3b753fb
MD5 6b1097f1ed1e4a61df677bd289cfbf95
BLAKE2b-256 67f0979dbe08d35b2bcb7e37a5bf9dec0d8103a7dfdd26f8083bf07ef40e076a

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