Skip to main content
# OZ Holiday

A simple function to check a given date a public holiday or not in Australia, really easy to use.

- Use the data from [data.gov.au](https://data.gov.au/dataset/australian-holidays-machine-readable-dataset)
- Only use Python standard libraries
- Only one function - keep it simple

## Installation
```bash
pip install ozholiday
```

Or

```bash
git clone https://github.com/zhongdai/ozholiday.git
cd ozholiday
python setup.py install
```

## Usage
```python
In [1]: from ozholiday import isholiday

In [2]: isholiday('20170101')
Out[2]: True

In [3]: isholiday('20170101',detail=True)
Out[3]:
{'Applicable To': 'NAT',
'Date': '20170101',
'Holiday Name': "New Year's Day",
'Information': "New Year's Day is the first day of the calendar year and is celebrated each January 1st",
'More Information': '',
'_id': 1}

In [5]: isholiday('20170103')
Out[5]: False

In [9]: isholiday('20190102')
ValueError: The date 20190102 is not in current list published by data.gov.au,
Check here https://data.gov.au/dataset/australian-holidays-machine-readable-dataset
```


=======
History
=======

0.1.0 (2018-03-02)
------------------

* First release on PyPI.


Metadata

Release files for ozholiday 0.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 ozholiday 0.1.1
File Size Uploaded Provenance Actions
ozholiday-0.1.1.tar.gz 9.1 kB Without provenance Details for ozholiday-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ozholiday 0.1.1
File Interpreter ABI Platform Actions
ozholiday-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for ozholiday-0.1.1-py2.py3-none-any.whl

Total release size: 14.0 kB

Release files / ozholiday-0.1.1.tar.gz

Download URL ozholiday-0.1.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
34df6b61070ad93f4227df4a488937208d34adae75793d0406220fc3d4492041
BLAKE2b-256 checksum
How to use checksums
319a43f3f98797166356e8bc52abc18947c4b5ce6c0cddea546720faad06614c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ozholiday-0.1.1-py2.py3-none-any.whl

Download URL ozholiday-0.1.1-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a7345cba298634d2765f345f0f3b50bab2efa13d3df7c90837b1af5eb8eae2ea
BLAKE2b-256 checksum
How to use checksums
397237677061962ee50f0a91e51abee6bfd273e0c9e83f10c7d4d56f4e50a0f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ozholiday 0.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

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