Skip to main content

NepaliDate Library (Python)

MIT License Docs GitHub

Overview

The NepaliDate Python library provides a proper way to work with Nepali (Bikram Sambat) dates.
It allows you to create, manipulate, format, and convert between Nepali Bikram Sambat dates (1976/01/01 - 2100/12/31) and Gregorian dates (1919-03-13 - 2044-04-12). It also supports fiscal years, quarters, and extensive date operations.

This library is a Python port of the original TypeScript/JavaScript NepaliDate library.


📚 Documentation

For detailed guides, API references, and examples, please visit the official Wiki:

👉 nepalidate.sandip-ghimire.com.np


Installation

pip install nepali-date-library

Quick Start

from nepali_date_library import NepaliDate;

now = NepaliDate()
print(now.format("YYYY-MM-DD"))

For more advanced usage, please refer to the Wiki.

Development

This project uses uv to manage the dev environment and dependencies.

uv sync --group dev   # create .venv and install dev dependencies
uv run task test      # black --check, flake8, and pytest
uv build              # build sdist/wheel into dist/

License

MIT

Metadata

Release files for nepali-date-library 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nepali-date-library 1.0.2
File Size Uploaded Provenance
nepali_date_library-1.0.2.tar.gz 20.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nepali-date-library 1.0.2
File Interpreter ABI Platform
nepali_date_library-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 37.2 kB

Release files / nepali_date_library-1.0.2.tar.gz

Download URL nepali_date_library-1.0.2.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6cc0fbabdbbc431e36e41a69d48197c5972b43efadaa58c68c616a141cff8cd4
BLAKE2b-256 checksum
How to use checksums
5e46b0f95ef6b7189f28885df4ee837a28a5bcf15f3a93406b4aa5a155894160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / nepali_date_library-1.0.2-py3-none-any.whl

Download URL nepali_date_library-1.0.2-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f189b82a54adbcd9b781c02511c34d9a0528bddded78e0456b479a9fba10b44
BLAKE2b-256 checksum
How to use checksums
98572248933e42a0be4fe17c885c9aff677d3c67d0c5673d4f0685947d95dac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for nepali-date-library 1.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page