korean-lunar-calendar


Namekorean-lunar-calendar JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/usingsky/korean_lunar_calendar_py
SummaryKorean Lunar Calendar
upload_time2022-09-16 10:53:25
maintainerJinil Lee
docs_urlNone
authorJinil Lee
requires_python
licenseMIT
keywords calendar korean lunar
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            korean\_lunar\_calendar\_py

===========================



한국 양음력 변환



Overview

^^^^^^^^



Here is a library to convert Korean lunar-calendar to Gregorian

calendar.



Korean calendar and Chinese calendar is same lunar calendar but have

different date.



This follow the KARI(Korea Astronomy and Space Science Institute)



한국 양음력 변환 (한국천문연구원 기준) - 네트워크 연결 불필요



음력 변환은 1000년 01월 01일 부터 2050년 11월 18일까지 지원

양력 변환은 1000년 02월 13일 부터 2050년 12월 31일까지 지원



::



    Gregorian calendar (1000-02-13 ~ 2050-12-31) <--> Korean lunar-calendar (1000-01-01 ~ 2050-11-18)



Install

^^^^^^^



pip install korean\_lunar\_calendar



To use

^^^^^^



(0) import module



    .. code:: python



        from korean_lunar_calendar import KoreanLunarCalendar



(1) Korean Solar Date -> Korean Lunar Date (양력 -> 음력)



    .. code:: python



        calendar = KoreanLunarCalendar()

        # params : year(년), month(월), day(일)

        calendar.setSolarDate(2017, 6, 24)

        # Lunar Date (ISO Format)

        print(calendar.LunarIsoFormat())

        # Korean GapJa String

        print(calendar.getGapJaString())

        # Chinese GapJa String

        print(calendar.getChineseGapJaString())



::



    [Result]

    2017-05-01 Intercalation

    정유년 병오월 임오일 (윤월)

    丁酉年 丙午月 壬午日 (閏月)



(2) Korean Lunar Date -> Korean Solar Date (음력 -> 양력)



    .. code:: python



        # params : year(년), month(월), day(일), intercalation(윤달여부)

        calendar.setLunarDate(1956, 1, 21, False)

        # Solar Date (ISO Format)

        print(calendar.SolarIsoFormat())

        # Korean GapJa String

        print(calendar.getGapJaString())

        # Chinese GapJa String

        print(calendar.getChineseGapJaString())



::



    [Result]

    1956-03-03

    병신년 경인월 기사일

    丙申年 庚寅月 己巳日




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/usingsky/korean_lunar_calendar_py",
    "name": "korean-lunar-calendar",
    "maintainer": "Jinil Lee",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "usingsky@gmail.com",
    "keywords": "calendar,korean,lunar",
    "author": "Jinil Lee",
    "author_email": "usingsky@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5a/93/a0bd2bd53ab19330e83ecc5652b7774ae86fd2fee19bc05ad220cf9db08b/korean_lunar_calendar-0.3.1.tar.gz",
    "platform": null,
    "description": "korean\\_lunar\\_calendar\\_py\n\n===========================\n\n\n\n\ud55c\uad6d \uc591\uc74c\ub825 \ubcc0\ud658\n\n\n\nOverview\n\n^^^^^^^^\n\n\n\nHere is a library to convert Korean lunar-calendar to Gregorian\n\ncalendar.\n\n\n\nKorean calendar and Chinese calendar is same lunar calendar but have\n\ndifferent date.\n\n\n\nThis follow the KARI(Korea Astronomy and Space Science Institute)\n\n\n\n\ud55c\uad6d \uc591\uc74c\ub825 \ubcc0\ud658 (\ud55c\uad6d\ucc9c\ubb38\uc5f0\uad6c\uc6d0 \uae30\uc900) - \ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0 \ubd88\ud544\uc694\n\n\n\n\uc74c\ub825 \ubcc0\ud658\uc740 1000\ub144 01\uc6d4 01\uc77c \ubd80\ud130 2050\ub144 11\uc6d4 18\uc77c\uae4c\uc9c0 \uc9c0\uc6d0\n\n\uc591\ub825 \ubcc0\ud658\uc740 1000\ub144 02\uc6d4 13\uc77c \ubd80\ud130 2050\ub144 12\uc6d4 31\uc77c\uae4c\uc9c0 \uc9c0\uc6d0\n\n\n\n::\n\n\n\n    Gregorian calendar (1000-02-13 ~ 2050-12-31) <--> Korean lunar-calendar (1000-01-01 ~ 2050-11-18)\n\n\n\nInstall\n\n^^^^^^^\n\n\n\npip install korean\\_lunar\\_calendar\n\n\n\nTo use\n\n^^^^^^\n\n\n\n(0) import module\n\n\n\n    .. code:: python\n\n\n\n        from korean_lunar_calendar import KoreanLunarCalendar\n\n\n\n(1) Korean Solar Date -> Korean Lunar Date (\uc591\ub825\u00a0-> \uc74c\ub825)\n\n\n\n    .. code:: python\n\n\n\n        calendar = KoreanLunarCalendar()\n\n        # params : year(\ub144), month(\uc6d4), day(\uc77c)\n\n        calendar.setSolarDate(2017, 6, 24)\n\n        # Lunar Date (ISO Format)\n\n        print(calendar.LunarIsoFormat())\n\n        # Korean GapJa String\n\n        print(calendar.getGapJaString())\n\n        # Chinese GapJa String\n\n        print(calendar.getChineseGapJaString())\n\n\n\n::\n\n\n\n    [Result]\n\n    2017-05-01 Intercalation\n\n    \uc815\uc720\ub144 \ubcd1\uc624\uc6d4 \uc784\uc624\uc77c (\uc724\uc6d4)\n\n    \u4e01\u9149\u5e74 \u4e19\u5348\u6708 \u58ec\u5348\u65e5 (\u958f\u6708)\n\n\n\n(2) Korean Lunar Date -> Korean Solar Date (\uc74c\ub825\u00a0-> \uc591\ub825)\n\n\n\n    .. code:: python\n\n\n\n        # params : year(\ub144), month(\uc6d4), day(\uc77c), intercalation(\uc724\ub2ec\uc5ec\ubd80)\n\n        calendar.setLunarDate(1956, 1, 21, False)\n\n        # Solar Date (ISO Format)\n\n        print(calendar.SolarIsoFormat())\n\n        # Korean GapJa String\n\n        print(calendar.getGapJaString())\n\n        # Chinese GapJa String\n\n        print(calendar.getChineseGapJaString())\n\n\n\n::\n\n\n\n    [Result]\n\n    1956-03-03\n\n    \ubcd1\uc2e0\ub144 \uacbd\uc778\uc6d4 \uae30\uc0ac\uc77c\n\n    \u4e19\u7533\u5e74 \u5e9a\u5bc5\u6708 \u5df1\u5df3\u65e5\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Korean Lunar Calendar",
    "version": "0.3.1",
    "project_urls": {
        "Homepage": "https://github.com/usingsky/korean_lunar_calendar_py"
    },
    "split_keywords": [
        "calendar",
        "korean",
        "lunar"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9c9630f3fe51b336bb6da4714f4fdad7bbdce8f13af79af2eb75e22908f3f9f4",
                "md5": "96c3be40482dcd926cbf2a88f4949bc9",
                "sha256": "392757135c492c4f42a604e6038042953c35c6f449dda5f27e3f86a7f9c943e5"
            },
            "downloads": -1,
            "filename": "korean_lunar_calendar-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96c3be40482dcd926cbf2a88f4949bc9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9033,
            "upload_time": "2022-09-16T10:53:23",
            "upload_time_iso_8601": "2022-09-16T10:53:23.771038Z",
            "url": "https://files.pythonhosted.org/packages/9c/96/30f3fe51b336bb6da4714f4fdad7bbdce8f13af79af2eb75e22908f3f9f4/korean_lunar_calendar-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a93a0bd2bd53ab19330e83ecc5652b7774ae86fd2fee19bc05ad220cf9db08b",
                "md5": "535f447d126a69b0b1d08987219fa012",
                "sha256": "eb2c485124a061016926bdea6d89efdf9b9fdbf16db55895b6cf1e5bec17b857"
            },
            "downloads": -1,
            "filename": "korean_lunar_calendar-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "535f447d126a69b0b1d08987219fa012",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9877,
            "upload_time": "2022-09-16T10:53:25",
            "upload_time_iso_8601": "2022-09-16T10:53:25.713566Z",
            "url": "https://files.pythonhosted.org/packages/5a/93/a0bd2bd53ab19330e83ecc5652b7774ae86fd2fee19bc05ad220cf9db08b/korean_lunar_calendar-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-09-16 10:53:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "usingsky",
    "github_project": "korean_lunar_calendar_py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "korean-lunar-calendar"
}
        
Elapsed time: 9.54552s