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.10b0

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.10b0
File Actions
npdatetime-0.2.10b0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for npdatetime-0.2.10b0-cp314-cp314-win_amd64.whl
npdatetime-0.2.10b0-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.10b0-cp314-cp314-manylinux_2_34_x86_64.whl
npdatetime-0.2.10b0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for npdatetime-0.2.10b0-cp314-cp314-macosx_11_0_arm64.whl
npdatetime-0.2.10b0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for npdatetime-0.2.10b0-cp313-cp313-win_amd64.whl
npdatetime-0.2.10b0-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.10b0-cp313-cp313-manylinux_2_34_x86_64.whl
npdatetime-0.2.10b0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for npdatetime-0.2.10b0-cp313-cp313-macosx_11_0_arm64.whl
npdatetime-0.2.10b0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for npdatetime-0.2.10b0-cp312-cp312-win_amd64.whl
npdatetime-0.2.10b0-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.10b0-cp312-cp312-manylinux_2_34_x86_64.whl
npdatetime-0.2.10b0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for npdatetime-0.2.10b0-cp312-cp312-macosx_11_0_arm64.whl
npdatetime-0.2.10b0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for npdatetime-0.2.10b0-cp311-cp311-win_amd64.whl
npdatetime-0.2.10b0-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.10b0-cp311-cp311-manylinux_2_34_x86_64.whl
npdatetime-0.2.10b0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for npdatetime-0.2.10b0-cp311-cp311-macosx_11_0_arm64.whl
npdatetime-0.2.10b0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for npdatetime-0.2.10b0-cp310-cp310-win_amd64.whl
npdatetime-0.2.10b0-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.10b0-cp310-cp310-manylinux_2_34_x86_64.whl
npdatetime-0.2.10b0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for npdatetime-0.2.10b0-cp310-cp310-macosx_11_0_arm64.whl
npdatetime-0.2.10b0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for npdatetime-0.2.10b0-cp39-cp39-win_amd64.whl
npdatetime-0.2.10b0-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.10b0-cp39-cp39-manylinux_2_34_x86_64.whl
npdatetime-0.2.10b0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for npdatetime-0.2.10b0-cp39-cp39-macosx_11_0_arm64.whl
npdatetime-0.2.10b0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for npdatetime-0.2.10b0-cp38-cp38-win_amd64.whl
npdatetime-0.2.10b0-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.10b0-cp38-cp38-manylinux_2_34_x86_64.whl
npdatetime-0.2.10b0-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for npdatetime-0.2.10b0-cp38-cp38-macosx_11_0_arm64.whl

Total release size: 5.6 MB

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

Download URL npdatetime-0.2.10b0-cp314-cp314-win_amd64.whl
Size 187.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
673d37299dad6f1428f9b3dc9b2d16739be5d2ba8d1d552249929082f84a7e0e
BLAKE2b-256 checksum
How to use checksums
0eb3bdee9f73b9fe91f5acfb7568d592dc2235b62b815c7365f4b197e03310c7
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.10b0-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.10b0-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
5b0e3c8aeb971c8a973ecdeb6647bf57d4b737cb8e7f1ff4e1eb3c7f106e4dd1
BLAKE2b-256 checksum
How to use checksums
cf88280d6b25fb8ba7a080e4852d29d470c3b6d49adebac4fd27f41c11959d15
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.10b0-cp314-cp314-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.10b0-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
7d6aba7db9be43155ff3d5c35594a2a5de4aa38daaa975c6943f2ef75af43e9d
BLAKE2b-256 checksum
How to use checksums
dae6242f46dd3cde24f1f1dc35886bacf1219c6fe3f6973e3ba4da10f1107964
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.10b0-cp313-cp313-win_amd64.whl

Download URL npdatetime-0.2.10b0-cp313-cp313-win_amd64.whl
Size 187.4 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
0919d20de53aee16e38b5cf8b0640a2c0da928e674d47edb1fc78ead0657f037
BLAKE2b-256 checksum
How to use checksums
b1a03e1b0ca75d740e420bcb75a22544f4e6931a08aee1d60c02efaa4c05e8f9
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.10b0-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.10b0-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
fed5f9fc565b49b728b3e92e971a7c511592dcc01a74e3b3257511518b9244ab
BLAKE2b-256 checksum
How to use checksums
d52a3c50d29b69eea378599ad8bcd0d3c7081f05f6ced7c324aaa93ee656f5c8
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.10b0-cp313-cp313-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.10b0-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
db6b15680c05b52ee39035c33fed730249ad9f2fa05282d776aa5e6206413d81
BLAKE2b-256 checksum
How to use checksums
b286d5f26c119d23ade70bc994e6831dc8eb194911bde5bdb739694366e66562
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.10b0-cp312-cp312-win_amd64.whl

Download URL npdatetime-0.2.10b0-cp312-cp312-win_amd64.whl
Size 187.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
184c9cfc4d0e9121676e4554a3bc130eb735916df5fc5b914e3fcb4fdde2400c
BLAKE2b-256 checksum
How to use checksums
e8bc9ed40f70c3c6ce0c9950ef2044b0721da417621ad57a6b37cef976a998a2
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.10b0-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.10b0-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
2e49c06bad57f1ae5d0a6c5e2551cf56166d1e4b5febcb714059c76b3a70dbb4
BLAKE2b-256 checksum
How to use checksums
bfa66643d4d510cbb9575a8748a3802da46aa7cf213677e0363174311fd888de
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.10b0-cp312-cp312-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.10b0-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
b4388ae0d6126ef396481c1cbec1b14ec322c398e2b24c7ea216d4753f2f91ed
BLAKE2b-256 checksum
How to use checksums
cf6ceedb00662b8aafac3b3915b407863a27aed32f1f4310a97a7e74685eed57
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.10b0-cp311-cp311-win_amd64.whl

Download URL npdatetime-0.2.10b0-cp311-cp311-win_amd64.whl
Size 186.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
f54163b9cabf57b93c5e34f49f7035b7d0c66594cd79bc44822d2a38ea16466a
BLAKE2b-256 checksum
How to use checksums
2a23d7c0820def5a3224f7412f427902c6c85b38060cf6e34a8160de9f8bfaab
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.10b0-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.10b0-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
306c9526a6b17fe7546f9315c61774b1f7fce73d625c82be1ada3068f5533737
BLAKE2b-256 checksum
How to use checksums
270cf776883230943aab3558b62ba027b7cd86179b3f1def6df2de4609a75eb4
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.10b0-cp311-cp311-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.10b0-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
c71620c834fa1d280bbf9fe4e4667fb3b3f6ce4e1bb006ae6b8731b52e910151
BLAKE2b-256 checksum
How to use checksums
d6b08e7c690b722c5c3886818631d8d0e4660e18b316f0c8db4d5a0dc3f13fe8
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.10b0-cp310-cp310-win_amd64.whl

Download URL npdatetime-0.2.10b0-cp310-cp310-win_amd64.whl
Size 189.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
58a528c49ad54dc647980d13953599b9af098010df08fe268f2933558e02d40b
BLAKE2b-256 checksum
How to use checksums
eef877a1cb935e5376d2549fbfa2e453b754e090f977e938f62d4eeda973fb31
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.10b0-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.10b0-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
1d7d731ca03ac9f20d5aef9b54f7da5041de818554616fe028a88217428b60e7
BLAKE2b-256 checksum
How to use checksums
1f2b5ec3951b3954e31c5d2f09270fcc51fc448b2999adba66257df4f4c5cb8a
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.10b0-cp310-cp310-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.10b0-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
e5fffa710214d23b0b23fcd7d9df3e7853307c4c4a5a71e195aa4b60f2adb749
BLAKE2b-256 checksum
How to use checksums
e25cd3705dfcd1e438fd0f162df07402e373f06ff627216351da666c889e37cf
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.10b0-cp39-cp39-win_amd64.whl

Download URL npdatetime-0.2.10b0-cp39-cp39-win_amd64.whl
Size 190.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
e7cf98acb03834c9d93d498e67e756ff1d2f9b870d5af5227dd149cb429c8db5
BLAKE2b-256 checksum
How to use checksums
f117dcec0c1988ec48c564b6c51b22c1e4d177dcc2d4e68d6483fefc92b2a951
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.10b0-cp39-cp39-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.10b0-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
b1761be551fbdd46eeaca3b1f0d800d00833810e1fc82d1fd1c0498a0063baad
BLAKE2b-256 checksum
How to use checksums
7dd214807f0cf167caef2f41e309339cdc029373d626d3abe753d7419126f0b6
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.10b0-cp39-cp39-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.10b0-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
29fb1cd614b61412104af869beeae70c9637106deba2a1114b24a6f581587077
BLAKE2b-256 checksum
How to use checksums
0e6bbcb0e50216961231179853bb240b69b9d55a204e86308712b4571c0de847
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.10b0-cp38-cp38-win_amd64.whl

Download URL npdatetime-0.2.10b0-cp38-cp38-win_amd64.whl
Size 190.1 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
24110a906cf4539f40450fa5b7a0eeedb8444539d28fad037a32f405cc2c02da
BLAKE2b-256 checksum
How to use checksums
2b1f227abd439ff12ed413cbec8bb1da90e8aff9786358561e0dff7f68a6dbfe
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.10b0-cp38-cp38-manylinux_2_34_x86_64.whl

Download URL npdatetime-0.2.10b0-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
99d86107607074310df5c6956c6eb3baac766851953d0b3adb5a39db6e0d703f
BLAKE2b-256 checksum
How to use checksums
e9fd105851d9caccf5d387013fb28df8b6c01cf8975f1fd33895217d8c1a0c94
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.10b0-cp38-cp38-macosx_11_0_arm64.whl

Download URL npdatetime-0.2.10b0-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
69237269bdcfcb3ed76d32e6538a552bb6127fc7aa3d1805d1be29683ce8f510
BLAKE2b-256 checksum
How to use checksums
a744c1bcc5f7798a75f9159cbcab7bd02c1e734344cd00c7a41d71a7e157cfd3
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.10b0

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