china-calendar


Namechina-calendar JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/mouday/china-calendar
Summarya calendar about china
upload_time2024-04-03 13:03:20
maintainerNone
docs_urlNone
authorPeng Shiyu
requires_pythonNone
licenseMIT
keywords china calendar workday holiday
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # china-calendar

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/china-calendar)](https://pypi.org/project/china-calendar)
[![PyPI](https://img.shields.io/pypi/v/china-calendar.svg)](https://pypi.org/project/china-calendar)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/china-calendar?label=pypi%20downloads)](https://pypi.org/project/china-calendar)
[![PyPI - License](https://img.shields.io/pypi/l/china-calendar)](https://github.com/mouday/china-calendar/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/mouday/china-calendar)](https://github.com/mouday/china-calendar/releases)
[![GitHub Stars](https://img.shields.io/github/stars/mouday/china-calendar?color=%231890FF&style=flat-square)](https://github.com/mouday/china-calendar)

a calendar about china

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

安装

```bash
pip install china-calendar
```

使用示例:

```python
import china_calendar

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

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

类似的库:

- [https://github.com/LKI/chinese-calendar](https://github.com/LKI/chinese-calendar)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mouday/china-calendar",
    "name": "china-calendar",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "china, calendar, workday, holiday",
    "author": "Peng Shiyu",
    "author_email": "pengshiyuyx@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/86/0a/f04271102a331c64a9f57fa0b67455280470e7e4dac93e30a1c7eee6d273/china-calendar-1.0.1.tar.gz",
    "platform": "any",
    "description": "# china-calendar\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/china-calendar)](https://pypi.org/project/china-calendar)\n[![PyPI](https://img.shields.io/pypi/v/china-calendar.svg)](https://pypi.org/project/china-calendar)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/china-calendar?label=pypi%20downloads)](https://pypi.org/project/china-calendar)\n[![PyPI - License](https://img.shields.io/pypi/l/china-calendar)](https://github.com/mouday/china-calendar/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/v/release/mouday/china-calendar)](https://github.com/mouday/china-calendar/releases)\n[![GitHub Stars](https://img.shields.io/github/stars/mouday/china-calendar?color=%231890FF&style=flat-square)](https://github.com/mouday/china-calendar)\n\na calendar about china\n\n\u5224\u65ad\u67d0\u4e00\u5929\u662f\u5426\u4e3a\u5de5\u4f5c\u65e5\u6216\u8005\u662f\u6cd5\u5b9a\u8282\u5047\u65e5\uff0c\u4ec5\u9002\u7528\u4e8e\u4e2d\u56fd\n\n\u5b89\u88c5\n\n```bash\npip install china-calendar\n```\n\n\u4f7f\u7528\u793a\u4f8b\uff1a\n\n```python\nimport china_calendar\n\n# \u6e05\u660e\u8282\nassert china_calendar.is_holiday('2024-04-04') == True\n\nassert china_calendar.is_workday('2024-04-04') == False\n```\n\n\u7c7b\u4f3c\u7684\u5e93\uff1a\n\n- [https://github.com/LKI/chinese-calendar](https://github.com/LKI/chinese-calendar)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "a calendar about china",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/mouday/china-calendar"
    },
    "split_keywords": [
        "china",
        " calendar",
        " workday",
        " holiday"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d19bed6f0f70a136e52a882b2aac4259a2a1957210fa69a2d759e8926580695e",
                "md5": "3ca4b01afc62f8c576ba1d8f17efd2a9",
                "sha256": "bbaaf1d07b65b48a04bc61f79d89c1c8c3ecb8a7e86ac7f3bc95b5f6d5a7fef9"
            },
            "downloads": -1,
            "filename": "china_calendar-1.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3ca4b01afc62f8c576ba1d8f17efd2a9",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 4471,
            "upload_time": "2024-04-03T13:03:18",
            "upload_time_iso_8601": "2024-04-03T13:03:18.891463Z",
            "url": "https://files.pythonhosted.org/packages/d1/9b/ed6f0f70a136e52a882b2aac4259a2a1957210fa69a2d759e8926580695e/china_calendar-1.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "860af04271102a331c64a9f57fa0b67455280470e7e4dac93e30a1c7eee6d273",
                "md5": "e6377702e692b0677bc06061060cdadc",
                "sha256": "76443ed5bc79f96ed847925d9a401ce17391d8f96c5068a52b28aa4da26a3be0"
            },
            "downloads": -1,
            "filename": "china-calendar-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e6377702e692b0677bc06061060cdadc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3987,
            "upload_time": "2024-04-03T13:03:20",
            "upload_time_iso_8601": "2024-04-03T13:03:20.506757Z",
            "url": "https://files.pythonhosted.org/packages/86/0a/f04271102a331c64a9f57fa0b67455280470e7e4dac93e30a1c7eee6d273/china-calendar-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-03 13:03:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mouday",
    "github_project": "china-calendar",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "china-calendar"
}
        
Elapsed time: 0.43121s