A Nepali Date Library for Python (Bikram Sambat ↔ AD conversion and manipulation)
Project description
NepaliDate Library (Python)
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nepali_date_library-1.0.1.tar.gz.
File metadata
- Download URL: nepali_date_library-1.0.1.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
010b1660d117a1ab37490f6e72449abe6ce5b84b8a93bb00547a01de5ff6d227
|
|
| MD5 |
635439efab9f35fcd4fb843ecc98c08a
|
|
| BLAKE2b-256 |
86b2f20d6e673b945215ae7acd696ead45dc07935c6a7088fdb8a3206b9f14b1
|
File details
Details for the file nepali_date_library-1.0.1-py3-none-any.whl.
File metadata
- Download URL: nepali_date_library-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4148c3fe1555951c220c513a9c4c337c8388bde99aae251a9d977d47106e68
|
|
| MD5 |
96e325b1deaba904496eb8e5395190a8
|
|
| BLAKE2b-256 |
8ad890bd0dade28596618b2b876152b84f6eaeec34508bd5a87dfc9a9107bdc8
|