# Nepali Date Utils
[![PyPI version](https://badge.fury.io/py/nepali-date-utils.svg)](https://pypi.org/project/nepali-date-utils/)
[![CI status](https://github.com/nrjadkry/nepali-date-utils/actions/workflows/python-publish.yml/badge.svg?branch=master)](https://github.com/opensource-nepal/py-nepali/actions)
[![Downloads](https://img.shields.io/pypi/dm/nepali-date-utils.svg?maxAge=180)](https://pypi.org/project/nepali-date-utils/)
## Overview
This lightweight package allows easy conversion between Nepali (BS) and English (AD) dates. Simplify date transformations in your applications with this straightforward utility.
## Installation
You can install the package via pip:
```bash
pip install nepali_date_utils
```
To convert English date (AD) to Nepali date (BS):
```python
from nepali_date_utils import converter
converter.ad_to_bs("2024/02/03")
```
To convert Nepali date (BS) to English date (AD):
```python
from nepali_date_utils import converter
converter.bs_to_ad("2080/02/03")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/nrjadkry/nepali-date-utils",
"name": "nepali-date-utils",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "date,nepali-date",
"author": "Niraj Adhikari",
"author_email": "nrjadkry@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/37/e7/836cf466cbabc348d8f84fa1aed634ff97b37e9694df52b759a439694235/nepali_date_utils-0.3.1.tar.gz",
"platform": null,
"description": "# Nepali Date Utils\n\n[![PyPI version](https://badge.fury.io/py/nepali-date-utils.svg)](https://pypi.org/project/nepali-date-utils/)\n[![CI status](https://github.com/nrjadkry/nepali-date-utils/actions/workflows/python-publish.yml/badge.svg?branch=master)](https://github.com/opensource-nepal/py-nepali/actions)\n[![Downloads](https://img.shields.io/pypi/dm/nepali-date-utils.svg?maxAge=180)](https://pypi.org/project/nepali-date-utils/)\n\n\n## Overview\nThis lightweight package allows easy conversion between Nepali (BS) and English (AD) dates. Simplify date transformations in your applications with this straightforward utility.\n\n## Installation\nYou can install the package via pip:\n```bash\npip install nepali_date_utils\n```\n\nTo convert English date (AD) to Nepali date (BS):\n\n```python\nfrom nepali_date_utils import converter\nconverter.ad_to_bs(\"2024/02/03\")\n```\n\nTo convert Nepali date (BS) to English date (AD):\n\n```python\nfrom nepali_date_utils import converter\nconverter.bs_to_ad(\"2080/02/03\")\n```\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "Convert Nepali to English Dates: Easily switch between Nepali and English dates with this Python package.",
"version": "0.3.1",
"project_urls": {
"Homepage": "https://github.com/nrjadkry/nepali-date-utils"
},
"split_keywords": [
"date",
"nepali-date"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a9fbba4dce11f2e4ca083f3d07148cec3849a0931a37825fa814fa31c9b75f50",
"md5": "088d482fa0f21417f10fae5b56db7787",
"sha256": "2c6fcf45f1526ebecda020ae07bd1addc1d68bfd6f68ee6dde07e4405238c97d"
},
"downloads": -1,
"filename": "nepali_date_utils-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "088d482fa0f21417f10fae5b56db7787",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17709,
"upload_time": "2024-02-10T15:10:22",
"upload_time_iso_8601": "2024-02-10T15:10:22.762972Z",
"url": "https://files.pythonhosted.org/packages/a9/fb/ba4dce11f2e4ca083f3d07148cec3849a0931a37825fa814fa31c9b75f50/nepali_date_utils-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "37e7836cf466cbabc348d8f84fa1aed634ff97b37e9694df52b759a439694235",
"md5": "07919483ed7cc0081564d4eec33b4ab5",
"sha256": "ce7d646afbf1c52762cc2862300ba94d13148c304caaddd5d7baf7e1abd3139b"
},
"downloads": -1,
"filename": "nepali_date_utils-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "07919483ed7cc0081564d4eec33b4ab5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16684,
"upload_time": "2024-02-10T15:10:24",
"upload_time_iso_8601": "2024-02-10T15:10:24.463099Z",
"url": "https://files.pythonhosted.org/packages/37/e7/836cf466cbabc348d8f84fa1aed634ff97b37e9694df52b759a439694235/nepali_date_utils-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-10 15:10:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nrjadkry",
"github_project": "nepali-date-utils",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nepali-date-utils"
}