Skip to main content

Al-Quran, Terjemahan Indonesia dan Tafsir Jalalayn

Project description

Al-Quran ID

Al Quran, Terjemahan indonesia, dan Tafsir Jalalayn


$ pip install alquran-id

Menggunakan Al-Quran ID

from alquran_id import AlQuran as Quran

def alquran(id_surat, id_ayat):
    quran = Quran()
    nama_surat = quran.Surat(id_surat)
    ar_ayt = quran.ArNumber(id_ayat)
    ayat = quran.Ayat(id_surat, id_ayat)
    jml_ayat = quran.JumlahAyat(id_surat)
    terjemahan = quran.Terjemahan(id_surat, id_ayat)
    tafsir = quran.Tafsir(id_surat, id_ayat)
    return nama_surat[0], nama_surat[1], ayat, jml_ayat, terjemahan, tafsir, ar_ayt

quran = alquran(1, 1)
Nama Surat      = {quran[0]} / {quran[1]}
Jumlah Ayat     = {quran[3]}
Ayat [{quran[6]}]


Nama Surat      = الفاتحة / Al-Fatihah (Pembukaan)
Jumlah Ayat     = 7
Ayat [۱]
بسم ٱلله ٱلرحمـن ٱلرحيم
Dengan menyebut nama Allah Yang Maha Pemurah lagi Maha Penyayang.
(Dengan nama Allah Yang Maha Pemurah lagi Maha Penyayang)


Source file xml diambil dari Tanzil

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

alquran_id-0.0.3-py3-none-any.whl (1.5 MB view hashes)

Uploaded Python 3

Supported by

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