Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

NPDateTime - Python

Fast Nepali (Bikram Sambat) datetime library for Python, powered by Rust.

Installation

pip install npdatetime
# or with uv
uv add npdatetime

Quick Start

from npdatetime import NepaliDate

# Create a Nepali date
date = NepaliDate(2077, 5, 19)
print(date)  # 2077-05-19

# Convert to Gregorian
year, month, day = date.to_gregorian()
print(f"{year}-{month:02d}-{day:02d}")  # 2020-09-04

# Create from Gregorian
date = NepaliDate.from_gregorian(2020, 9, 4)
print(date)  # 2077-05-19

# Get today's date
today = NepaliDate.today()
print(today)

# Format dates
formatted = date.format("%d %B %Y")
print(formatted)  # 19 Bhadra 2077

# Date arithmetic
future = date.add_days(30)
print(future)

Features

  • ⚡ Blazing Fast: 100x faster than pure Python implementations
  • 🎯 Accurate: Verified against official BS calendar data (1975-2100)
  • 🔧 Simple API: Pythonic interface with full type hints
  • 🌍 Battle-tested: Rust core ensures reliability

License

MIT

Metadata

Release files for npdatetime 0.2.11b0

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

Built distributions (wheels)

Table of built distributions (wheels) for npdatetime 0.2.11b0
File Actions
npdatetime-0.2.11b0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for npdatetime-0.2.11b0-cp314-cp314-win_amd64.whl
npdatetime-0.2.11b0-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details for npdatetime-0.2.11b0-cp314-cp314-manylinux_2_34_x86_64.whl
npdatetime-0.2.11b0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for npdatetime-0.2.11b0-cp314-cp314-macosx_11_0_arm64.whl
npdatetime-0.2.11b0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for npdatetime-0.2.11b0-cp313-cp313-win_amd64.whl
npdatetime-0.2.11b0-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details for npdatetime-0.2.11b0-cp313-cp313-manylinux_2_34_x86_64.whl
npdatetime-0.2.11b0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for npdatetime-0.2.11b0-cp313-cp313-macosx_11_0_arm64.whl
npdatetime-0.2.11b0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for npdatetime-0.2.11b0-cp312-cp312-win_amd64.whl
npdatetime-0.2.11b0-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for npdatetime-0.2.11b0-cp312-cp312-manylinux_2_34_x86_64.whl
npdatetime-0.2.11b0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for npdatetime-0.2.11b0-cp312-cp312-macosx_11_0_arm64.whl
npdatetime-0.2.11b0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for npdatetime-0.2.11b0-cp311-cp311-win_amd64.whl
npdatetime-0.2.11b0-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details for npdatetime-0.2.11b0-cp311-cp311-manylinux_2_34_x86_64.whl
npdatetime-0.2.11b0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for npdatetime-0.2.11b0-cp311-cp311-macosx_11_0_arm64.whl
npdatetime-0.2.11b0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for npdatetime-0.2.11b0-cp310-cp310-win_amd64.whl
npdatetime-0.2.11b0-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for npdatetime-0.2.11b0-cp310-cp310-manylinux_2_34_x86_64.whl
npdatetime-0.2.11b0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for npdatetime-0.2.11b0-cp310-cp310-macosx_11_0_arm64.whl
npdatetime-0.2.11b0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for npdatetime-0.2.11b0-cp39-cp39-win_amd64.whl
npdatetime-0.2.11b0-cp39-cp39-manylinux_2_34_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.34+ x86-64 Details for npdatetime-0.2.11b0-cp39-cp39-manylinux_2_34_x86_64.whl
npdatetime-0.2.11b0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for npdatetime-0.2.11b0-cp39-cp39-macosx_11_0_arm64.whl
npdatetime-0.2.11b0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for npdatetime-0.2.11b0-cp38-cp38-win_amd64.whl
npdatetime-0.2.11b0-cp38-cp38-manylinux_2_34_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.34+ x86-64 Details for npdatetime-0.2.11b0-cp38-cp38-manylinux_2_34_x86_64.whl
npdatetime-0.2.11b0-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for npdatetime-0.2.11b0-cp38-cp38-macosx_11_0_arm64.whl

Total release size: 5.6 MB

Release files / npdatetime-0.2.11b0-cp314-cp314-win_amd64.whl

Download URL npdatetime-0.2.11b0-cp314-cp314-win_amd64.whl
Size 187.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
1252911b99e9b3096db62d571f31cd72207905b779fa9f53ddeeec04623cb10e
BLAKE2b-256 checksum
How to use checksums
64a66bf9d5e1dd99eb39fb685ab8f5e80b6b2253a3468fde25feb42c59182844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.11b0-cp314-cp314-manylinux_2_34_x86_64.whl
Size 328.6 kB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
78a198e8f4f68c483425e749e0ad61dc803287b429d8ac222fe2a42d5a963a04
BLAKE2b-256 checksum
How to use checksums
391b17aa1e28cecc31187608343346f153a4d893030a86ba3750cbe0b5bb53e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp314-cp314-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.11b0-cp314-cp314-macosx_11_0_arm64.whl
Size 285.6 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
82c0549c2edcb16c653a430e473926d742b01edc3b04e9e32d1d8f8f21b5f523
BLAKE2b-256 checksum
How to use checksums
e3c7040a14716e86aa4508994ef365155a8bc4b69357f1b61768de8ca5f19596
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp313-cp313-win_amd64.whl

Download URL npdatetime-0.2.11b0-cp313-cp313-win_amd64.whl
Size 187.4 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b862eebc0ecfc22927298e36ea8fd408835099213dd287cf0c75f1c65559a716
BLAKE2b-256 checksum
How to use checksums
854e2381a7b5b54634aa76973165aae5447fa8443ea0851a5da6ec6e1a3ce32d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.11b0-cp313-cp313-manylinux_2_34_x86_64.whl
Size 328.6 kB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5d8fa48adbb6b1ce993f0c25c5bf9f77fd67b56730eedb4f187a68fcfc0160b0
BLAKE2b-256 checksum
How to use checksums
e75945bfb35bf2bfcd46c2cb06c639cbfac2109c73133327ae068b2aa969d060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp313-cp313-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.11b0-cp313-cp313-macosx_11_0_arm64.whl
Size 285.6 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
340c11eb0e989d675a214d7cb60fd27bb29b7f22989edaf188c1646c9d5890b8
BLAKE2b-256 checksum
How to use checksums
f9f8985244e49d4eb16b2aff7768fdb56a12dee1953faa8bb5663eb98abeda99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp312-cp312-win_amd64.whl

Download URL npdatetime-0.2.11b0-cp312-cp312-win_amd64.whl
Size 187.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
930060e9761bfc24ca7f1e3fa6eba8ba9b15d8f6adb66d537aa5d2a38066cc3b
BLAKE2b-256 checksum
How to use checksums
e1a92c255e290644afeb63bce333eb609b713bb5d3a7a9a80b09c45a7d12b174
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.11b0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 328.6 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
a78524544cc0cbdefe02b602b5841b1e7a1ba4d24b60a2c81e246f29089d1818
BLAKE2b-256 checksum
How to use checksums
4a4ac6607738daf33ef59a71fb4aec34f3214da44c8723fc230fb615aaae676b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp312-cp312-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.11b0-cp312-cp312-macosx_11_0_arm64.whl
Size 285.6 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
687cbb39d82de6a3869a8ae27170350b7cb355a392892822a854db688c158dcc
BLAKE2b-256 checksum
How to use checksums
65a52f884ed6f3309e136e16716081b6199a43d03712404636d8d79297d58ee2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp311-cp311-win_amd64.whl

Download URL npdatetime-0.2.11b0-cp311-cp311-win_amd64.whl
Size 186.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1c0315093d6695a87fa4a9635ace624e797421f99fd0d98208a2d479ae25a73b
BLAKE2b-256 checksum
How to use checksums
6f655b8d9badb9685c184790ee50f40ea09e44ec9d1ef13413bfb0d6bf1f859f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.11b0-cp311-cp311-manylinux_2_34_x86_64.whl
Size 327.8 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
04cb61c1bf4dccbec7679d352cf88564de24597411141e4986781f3a8b9da5c3
BLAKE2b-256 checksum
How to use checksums
88a170a3c269950284c4c5d4214781fdd048b4b3a8890f22b633825713f4cd9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp311-cp311-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.11b0-cp311-cp311-macosx_11_0_arm64.whl
Size 286.2 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7ea59802c76cd21bd0729b1e37e4c556c3e16d39710c441972c161d7310b0923
BLAKE2b-256 checksum
How to use checksums
63857f223e966a828a0a93f75c9633841bfebfcb238e964a302019d5b0e4c624
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp310-cp310-win_amd64.whl

Download URL npdatetime-0.2.11b0-cp310-cp310-win_amd64.whl
Size 189.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
540282e591d2c1cec5dda46f78e5ad0efebcba626013bbcdcfb5713ea41da3f8
BLAKE2b-256 checksum
How to use checksums
fbf3b86907aea2f25779f134220144fac6490ed7ef5505ad737d970197bb0248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.11b0-cp310-cp310-manylinux_2_34_x86_64.whl
Size 330.6 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
080a1081497d918df9fbfaf50b48ad1664956b2d7039a2b1d5614fd097eb4d59
BLAKE2b-256 checksum
How to use checksums
046cb4034633c23338758651311bba72f79fe7db39049a67bf39eb9b44e60787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp310-cp310-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.11b0-cp310-cp310-macosx_11_0_arm64.whl
Size 288.6 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3738c0975c94fe3918799bab3c4d43c625de0a9106055bf3ffc80af6ebbf151b
BLAKE2b-256 checksum
How to use checksums
ff1ab3c5a0b5ab520051ad8fa23a58e6acc993135e26d15836f51d74eaf7cc2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp39-cp39-win_amd64.whl

Download URL npdatetime-0.2.11b0-cp39-cp39-win_amd64.whl
Size 190.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
5deaaf18aa23d49a9784d78db9706ecff2fa765bf8276c8cacb654e57eab7c8a
BLAKE2b-256 checksum
How to use checksums
75647ba285c8b08b5e30be0adf51607aac9b407547ce2a8bbb0780ff8635cbb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp39-cp39-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.11b0-cp39-cp39-manylinux_2_34_x86_64.whl
Size 332.2 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
f59f2078e30e846eccdd0cd055e7726b826ffbfba1fd6569f20c316022412d88
BLAKE2b-256 checksum
How to use checksums
79052c130934464565ab83c447b868664427886c365ce0befa3745ca24ed622c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp39-cp39-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.11b0-cp39-cp39-macosx_11_0_arm64.whl
Size 289.6 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
43402dfcc3aabe7eeb71d72e0d4675ffd7a104473429376d2666ab34dde4f211
BLAKE2b-256 checksum
How to use checksums
0ad71572d0b1b4c8b3d424018b3f18d8c6dd1e4d18e1aa40f614a48fb2625c5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp38-cp38-win_amd64.whl

Download URL npdatetime-0.2.11b0-cp38-cp38-win_amd64.whl
Size 190.1 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
8c8b0a59a02c88261e3731c255a759c81c5e3cda4258d7b57874f82f9e852a4c
BLAKE2b-256 checksum
How to use checksums
8896bb132778f8f7e380623c8366fdab1be7f12ea6a4e4269b92f981f736bff8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp38-cp38-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.11b0-cp38-cp38-manylinux_2_34_x86_64.whl
Size 332.0 kB
Tags CPython 3.8 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5274386f17bf9dc739a350a6a1f16a9f4202042f660c50e3cff67d6af11bf07c
BLAKE2b-256 checksum
How to use checksums
d9d7d12d1c447390f23510acc44f386c02aafa6bacb75849758094ddb2f0b793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / npdatetime-0.2.11b0-cp38-cp38-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.11b0-cp38-cp38-macosx_11_0_arm64.whl
Size 289.5 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
39a9d53dd97544e5417aa34ebb84d9c94a2221efd775b514ec83d29c619df9a6
BLAKE2b-256 checksum
How to use checksums
292a57d76082baddfda86a6cc835526124562e75df755b53db90007babc061e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for npdatetime 0.2.11b0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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