Daerah Indonesia
Library Python untuk data wilayah Indonesia (Provinsi sampai Kelurahan) + Validasi NIK.
import daerah_indonesia
# list provinsi
daftar_provinsi = daerah_indonesia.provinsi()
for p in daftar_provinsi[:3]:
print(f"{p.nama} ({p.kode})")
# list kab/kota by provinsi
kabupaten = daerah_indonesia.daerah("kab_kota", 33) # 33 untuk jawa tengah
for k in kabupaten[:3]:
print(f"{k.nama} ({k.kode})")
# list kecamatan by kab/kota
kecamatan = daerah_indonesia.daerah("kecamatan", 3303) # 3303 untuk purbalingga
print(f"Purbalingga memiliki {len(kecamatan)} kecamatan.")
for kec in kecamatan[:3]:
print(f"{kec.nama} ({kec.kode})")
# list kelurahan by kecamatan
kelurahan = daerah_indonesia.daerah("kelurahan", 3303010) # 3303010 untuk kemangkon
print(f"Kemangkon memiliki {len(kecamatan)} kelurahan/desa.")
for kel in kelurahan[:3]:
print(f"{kel.nama} ({kel.kode})")
# kode pos by kecamatan, bisa juga by provinsi, kab_kota, atau kelurahan tinggal di sesuaikan
kode_pos = daerah_indonesia.kode_pos("kecamatan", 3303010) # 3303010 untuk kemangkon
for pos in kode_pos:
print(f"kode pos {pos.nama}")
print(f"{pos.nama} ({pos.kode_pos})")
# cek nik
nik = "3374081205900001" # Contoh NIK (Semarang)
data = daerah_indonesia.data_nik(nik)
print(f"Info NIK: {data.nik}")
print(f"Alamat: {data.kecamatan}, {data.kab_kota}, {data.provinsi}")
print(f"Tanggal Lahir : {data.tanggal_lahir}")
print(f"Jenis Kelamin : {data.jenis_kelamin}")
print(f"No Reg: {data.no_registrasi}")
Metadata
Release files for daerah-indonesia 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| daerah_indonesia-0.1.0.tar.gz | 10.4 MB | Without provenance | Details for daerah_indonesia-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| daerah_indonesia-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.34+ x86-64 | Details for daerah_indonesia-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl |
Total release size: 16.1 MB
Release files / daerah_indonesia-0.1.0.tar.gz
| Download URL | daerah_indonesia-0.1.0.tar.gz |
|---|---|
| Size | 10.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59e0a1bb21d090d6d5f5ea105fe4b9d99c3852a2404dbd985201eb80774b98c5
|
|
BLAKE2b-256 checksum How to use checksums |
e7d62c7d5304226f800a01a6b76fe4427aa1df53d1d2f9930f39ea32d5b52b56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.11.0
|
Release files / daerah_indonesia-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | daerah_indonesia-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
32b183f98ed933564f496315b9a7632127cbec296bb03480012f283e220dea31
|
|
BLAKE2b-256 checksum How to use checksums |
eb9ea5afccdfae644608b23ca29a47076ea457bc7125a222b6611784c533f27c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.11.0
|
Security for daerah-indonesia 0.1.0
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.