Utility from parsing Chinese holiday from official website
Install
pip install Chinese-holiday
Usage
Check if one day is a holiday (including normal weekend, not including working weekend)
is_holiday('2019-10-10')
Search url for notice of 2020 holiday
search_notice_url('2020')
Parse holiday info from url
parse_holiday_info(url)
Return holiday data from cache
get_holiday_data('2020')
Forcely return holiday data from website
get_holiday_data('2020', True)
Get latest work day (default fome today)
get_latest_workday()
Cache
The utility will cache parsed result into holiday.json, you can use
is_holiday('2019-10-10', True) to forcely refresh it.
Metadata
Release files for Chinese-holiday 0.1.6
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 | Actions |
|---|---|---|---|---|
| Chinese-holiday-0.1.6.tar.gz | 5.3 kB | Without provenance | Details for Chinese-holiday-0.1.6.tar.gz |
Release files / Chinese-holiday-0.1.6.tar.gz
| Download URL | Chinese-holiday-0.1.6.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9cc428d449f15479c14ab707344bea80aef3ef7f4510c375339b80123c75cf2
|
|
BLAKE2b-256 checksum How to use checksums |
5546a76e835d491527f25f246af06e819208ded81fc630473f1d9714c0a8c24a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2
|
Security for Chinese-holiday 0.1.6
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.