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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Pytanggalmerah-3.1.1.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for Pytanggalmerah 3.1.1
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.