Skip to main content

Al-Quran ID

Al Quran, Terjemahan indonesia, dan Tafsir Jalalayn

Installasi

$ 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)
print(f"""
Nama Surat      = {quran[0]} / {quran[1]}
Jumlah Ayat     = {quran[3]}
Ayat [{quran[6]}]
{quran[2]}
Terjemahan
{quran[4]}
Tafsir
{quran[5]}
""")

Output

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

Source

Source file xml diambil dari Tanzil

Metadata

Release files for alquran-id 0.0.3

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

Built distribution (wheel)

Table of built distributions (wheels) for alquran-id 0.0.3
File Interpreter ABI Platform Actions
alquran_id-0.0.3-py3-none-any.whl Python 3 none any Details for alquran_id-0.0.3-py3-none-any.whl

Release files / alquran_id-0.0.3-py3-none-any.whl

Download URL alquran_id-0.0.3-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e16f9add280c44f20013697cdef1347865e0d7bc2e865b51b05cdf31a4e89c10
BLAKE2b-256 checksum
How to use checksums
9521ed2f51fa1f115b318ea8b002a6bd0f01be8b253b8cebbd378b6eb72d8ba8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Security for alquran-id 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

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