Skip to main content

a calendar about china

Project description

china-calendar

PyPI - Python Version PyPI PyPI - Downloads PyPI - License GitHub release GitHub Stars

a calendar about china

判断某一天是否为工作日或者是法定节假日,仅适用于中国

安装

pip install china-calendar

使用示例:

import china_calendar

# 清明节
assert china_calendar.is_holiday('2024-04-04') == True

assert china_calendar.is_workday('2024-04-04') == False

类似的库:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

china-calendar-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

china_calendar-1.0.1-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file china-calendar-1.0.1.tar.gz.

File metadata

  • Download URL: china-calendar-1.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for china-calendar-1.0.1.tar.gz
Algorithm Hash digest
SHA256 76443ed5bc79f96ed847925d9a401ce17391d8f96c5068a52b28aa4da26a3be0
MD5 e6377702e692b0677bc06061060cdadc
BLAKE2b-256 860af04271102a331c64a9f57fa0b67455280470e7e4dac93e30a1c7eee6d273

See more details on using hashes here.

File details

Details for the file china_calendar-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for china_calendar-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bbaaf1d07b65b48a04bc61f79d89c1c8c3ecb8a7e86ac7f3bc95b5f6d5a7fef9
MD5 3ca4b01afc62f8c576ba1d8f17efd2a9
BLAKE2b-256 d19bed6f0f70a136e52a882b2aac4259a2a1957210fa69a2d759e8926580695e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page