Skip to main content

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

Metadata

Release files for alquran-cli 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alquran-cli 0.2.6
File Size Uploaded
alquran_cli-0.2.6.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alquran-cli 0.2.6
File Interpreter ABI Platform
alquran_cli-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / alquran_cli-0.2.6.tar.gz

Download URL alquran_cli-0.2.6.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
999bb8c5c01322f53ca0b6a5784d7f5bbd1da6f0a8c7fff7037ac8b01150a5c7
BLAKE2b-256 checksum
How to use checksums
9aef6972fd62638eff304c9cbcdd27325401cb3362c1132a360b082574dde5f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / alquran_cli-0.2.6-py3-none-any.whl

Download URL alquran_cli-0.2.6-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17ab7b7e39f1a87b71dc39a1e295b656724a3a65eb958644f1406870d6f43af6
BLAKE2b-256 checksum
How to use checksums
65a65edc6d1688a8669e5e4ddf68ca52bd1cefc815e161e8f17526db285ed566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page