nama-hari
Utilitas konversi dan analisis nama hari Indonesia, Jawa, Sunda, dan Inggris.
Instalasi
pip install nama-hari
Penggunaan Cepat
from nama_hari import ke_jawa, pasaran, hari_lengkap
ke_jawa("Senin") # "Senen"
ke_jawa("Minggu") # "Ahad"
pasaran("2026-10-21") # "Wage" (contoh, verifikasi kalender Jawa)
hari_lengkap("2026-10-21") # "Rabu Wage"
Fitur
- Konversi nama hari: Indonesia, Jawa, Sunda, Inggris (dua arah)
- Normalisasi variasi ejaan: Jum'at, Jumaah, Senen, Rebo, Kemis, Ahad, dll.
- Hari pasaran Jawa: Legi, Pahing, Pon, Wage, Kliwon
- Utilitas tanggal: hari dari tanggal, selisih hari, hari ini, besok
Contoh Lengkap
from nama_hari import (
ke_jawa, ke_sunda, ke_inggris, ke_indonesia,
pasaran, hari_lengkap, hari_dari_tanggal, selisih,
)
# Konversi antar bahasa
ke_jawa("Rabu") # "Rebo"
ke_sunda("Jumat") # "Jumaah"
ke_inggris("Senin") # "Monday"
ke_indonesia("Ahad") # "Minggu"
# Hari dari tanggal
hari_dari_tanggal("2026-10-21") # "Rabu"
# Hari pasaran Jawa
pasaran("2026-10-21") # "Wage"
hari_lengkap("2026-10-21") # "Rabu Wage"
# Selisih hari (0-6)
selisih("Senin", "Jumat") # 4
selisih("Jumat", "Senin") # 3
Daftar Bahasa yang Didukung
| Kode | Contoh "Senin" | Contoh "Minggu" |
|---|---|---|
indonesia |
Senin | Minggu |
jawa |
Senen | Ahad |
sunda |
Senén | Minggu |
inggris |
Monday | Sunday |
Catatan tentang Hari Pasaran
Hari pasaran Jawa (Legi, Pahing, Pon, Wage, Kliwon) berputar dengan siklus 5 hari, berjalan bersamaan dengan siklus 7 hari (minggu) sehingga membentuk siklus 35 hari (selapan). Perhitungan menggunakan anchor date yang wajib diverifikasi dengan kalender Jawa resmi sebelum digunakan untuk keperluan serius.
Development
git clone https://github.com/username/nama-hari.git
cd nama-hari
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytest -v
Build & Rilis
python -m build
twine upload --repository testpypi dist/* # uji di TestPyPI dulu
twine upload dist/* # rilis ke PyPI
Lisensi
MIT
Metadata
Release files for nama-hari 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 | |
|---|---|---|---|---|
| nama_hari-0.1.0.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nama_hari-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / nama_hari-0.1.0.tar.gz
| Download URL | nama_hari-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9931aecb519f8becc89000c6630171ad26d57213ac266fe77a580f8fd5862623
|
|
BLAKE2b-256 checksum How to use checksums |
ac76129507a9f5c426b826c6dd4c76b13ce5211ecf26ad004eb5685fa7cd7b21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / nama_hari-0.1.0-py3-none-any.whl
| Download URL | nama_hari-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cda0a5d2660361f8fb35204b603ea64913c28ef6af8a20bbc58f600dfd4ee571
|
|
BLAKE2b-256 checksum How to use checksums |
4424136bf63a886cf8eae3f8f470b80cfd013b743dfa98359016b2c22a5151e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for nama-hari 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.