Skip to main content

kualitasid 🇮🇩

Profil dan pembersih kualitas data untuk DataFrame/CSV berformat Indonesia. Yang dikerjakan di level kolom dan baris, bukan hanya satu nilai:

  • mendeteksi tipe tiap kolom (NIK, NPWP, HP, tanggal, Rupiah, plat, provinsi),
  • menghitung skor kualitas 0-100 dan melaporkan nilai tidak valid, kosong, duplikat, spasi berlebih,
  • memeriksa konsistensi antar kolom: NIK vs tanggal lahir dan jenis kelamin,
  • membersihkan otomatis (Rp 1,5 jt → 1500000, 0812-3456-7890 → +6281234567890),
  • laporan teks, JSON, atau satu halaman HTML.

Semua diproses lokal. Tidak ada data yang dikirim ke mana pun.

Contoh

pip install -e .
kualitasid examples/data_kotor.csv --html laporan.html --bersihkan bersih.csv
import pandas as pd
from kualitasid import profil, bersihkan, teks

df = pd.read_csv("examples/data_kotor.csv", dtype=str)
laporan = profil(df)        # NIK/NPWP/HP pada contoh disamarkan secara bawaan
print(teks(laporan))
df_bersih = bersihkan(df)

Cuplikan keluaran:

Konsistensi antar kolom: 2 masalah di 2 baris
- baris 1: nik_jenis_kelamin (NIK 317101******0002, nilai=Laki-laki, menurut NIK=P)
- baris 2: nik_tanggal_lahir (NIK 327301******0004, nilai=16-03-1985, menurut NIK=15-03-xx85)

Batasan (penting)

  • Validasi NIK dan NPWP hanya struktur, bukan bukti orangnya ada. Kode wilayah di bawah provinsi belum diperiksa.
  • Provinsi di NIK adalah tempat pendaftaran, jadi kolom provinsi tidak dibandingkan dengan NIK.
  • Tahun di NIK hanya 2 digit, jadi abad tidak diperiksa.
  • Jangan unggah data pribadi asli ke repo publik. Contoh di examples/ fiktif.

Alternatif

Kalau yang kamu butuhkan validator/parser per-nilai, data wilayah lengkap, atau penyamaran PII untuk teks bebas, pustaka seperti lokal-id, nik-lookup, dan daerah-indonesia lebih lengkap di sisi itu. kualitasid fokus pada profil per kolom, skor, dan konsistensi antar kolom pada DataFrame.

Pengembangan

pip install -e ".[dev]"
python -m pytest tests/ -v --cov=kualitasid
ruff check src tests && mypy src

Lisensi

MIT. Lihat LICENSE.

Metadata

Release files for kualitasid 0.2.0

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

Source distribution (sdist)

Source distribution for kualitasid 0.2.0
File Size Uploaded Provenance Actions
kualitasid-0.2.0.tar.gz 14.7 kB With provenance Details for kualitasid-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kualitasid 0.2.0
File Interpreter ABI Platform Actions
kualitasid-0.2.0-py3-none-any.whl Python 3 none any Details for kualitasid-0.2.0-py3-none-any.whl

Total release size: 27.0 kB

Release files / kualitasid-0.2.0.tar.gz

Download URL kualitasid-0.2.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3cc9d1b6db0eb5b9c07699f12a9bb9981ab529981afe89044d09c224a975d2b2
BLAKE2b-256 checksum
How to use checksums
7b6cea8a9252aba17b34d7b3aeb74d1ebcda7fed747e25c157c85c0e104bdf96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / kualitasid-0.2.0-py3-none-any.whl

Download URL kualitasid-0.2.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41766a6147bb81d1f0d914b62f04adac18695d63ceda2299583ee9eec90bbfb6
BLAKE2b-256 checksum
How to use checksums
a09b320fcf3aca43bfe8e5933c2caa3ddcc7cddb57775e6bf3cf6b9ac0e6abea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for kualitasid 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kualitasid-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

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.2.0 This release

2 release files Full 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