Skip to main content

status workflow test status workflow build

Downloads Downloads Downloads

Pytanggalmerah adalah module python untuk mengecek tanggal merah berdasarkan hari minggu dan hari libur nasional.

installasi

pip install pytanggalmerah

menggunakan Pytanggalmerah

from pytanggalmerah import TanggalMerah

t = TanggalMerah(cache_path = None, cache_time = 600) # cache_path = None berarti directory cache automatis
t.check() # mengecek apakah tanggal merah, return boolean.
t.is_holiday() # mengecek apakah hari libur nasional, return  boolean.
t.is_sunday() # mengecek apakah hari minggu, return booelan.
t.get_event() # mendapatkan event, return list.

mengecek specific tanggal tertentu

t.set_date("2019", "02", "05")
t.check()

mengatur zona waktu

secara default zona waktu pytanggalmerah adalah Asia/Jakarta tapi bisa diubah, seperti

t.set_timezone("Asia/Makassar")
t.check()

menggunakan lewat terminal

$ harilibur # check harilibur
$ harilibur 2022 04 15 # check harilibur dengan spesifikasi
$ TIMEZSET = "Asia/Makasar" harilibur # mengecek harilibur dengan spesifikasi timezone

harilibur command hanya mengecek tanggal merah dan tidak termasuk hari minggu.

sumber data

pytanggalmerah menggunakan data yang bersumber dari google calendar, data yang telah lampau mungkin tidak tersedia & data yang sekarang masih bisa direvisi.

Metadata

Release files for Pytanggalmerah 3.1.1

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

Source distribution (sdist)

Source distribution for Pytanggalmerah 3.1.1
File Size Uploaded
Pytanggalmerah-3.1.1.tar.gz 3.8 kB Details

Built distribution (wheel)

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

Total release size: 8.5 kB

Release files / Pytanggalmerah-3.1.1.tar.gz

Download URL Pytanggalmerah-3.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1b112ff4a40fcfcbbdf7bafdf9c062c694c4bbdd552c53126bcc3242f62ba7d7
BLAKE2b-256 checksum
How to use checksums
26e4c458827b97aca54bcc9c31143d36b82808b08d37871e9580d4505e7b9e80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / Pytanggalmerah-3.1.1-py3-none-any.whl

Download URL Pytanggalmerah-3.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1886e02ac600aed90778b4616215d4ae79e5bb308421f43764ddffc652ed5750
BLAKE2b-256 checksum
How to use checksums
6cd876e4045ad147bb1d7d403a255e8de1d580be8c18f6924b12ed58dde79b19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

3.1.1 This release

2 release files

3.0.1

1 release file

2.0.1

1 release file

1.1.1

1 release file

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