Skip to main content

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.11

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

Total release size: 5.6 MB

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

Download URL npdatetime-0.2.11-cp314-cp314-win_amd64.whl
Size 187.3 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
c2c136c570d110628a534938909536b07d36b2b873d501a88255e807225dd7c5
BLAKE2b-256 checksum
How to use checksums
7cb5f4767e2f4e4aa582c53bab3411d8e6f9fdb95ca11e14b9f47acc08f991dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

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

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

Download URL npdatetime-0.2.11-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
6f96f7b85ac8e903558d95a07204bd360ad44579264a7bde8d9851622dbdf320
BLAKE2b-256 checksum
How to use checksums
ca4364234a50b160fbc26a5778512790a08e7d76ca7a6fd87281239bbc0f8de4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp313-cp313-win_amd64.whl
Size 187.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f0a25a71a55f8a06674ecfe91f021a90359bc06988826638c6823bcfdbdf72eb
BLAKE2b-256 checksum
How to use checksums
7edd10711626c752af0bd837a79159eac6cd5dc1f54cd1f666fee46f929e7e2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp313-cp313-manylinux_2_34_x86_64.whl
Size 328.7 kB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
8efcd5908da354cf263974c4ab5c5a0c1022f8fdc49470a8164f0d94857bcbf7
BLAKE2b-256 checksum
How to use checksums
55944340fad94ed3a2554f6d627854a745f014b1b5cd57542015cc898ebffd8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-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
708d56256d76ef51a42aa67a0b7d7d81103e998e7bb0139658d069b58c2a95a4
BLAKE2b-256 checksum
How to use checksums
b5616d0a00da0a6e96c7263a46703e80edb3701b5255e8d282ce77bd855cddad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp312-cp312-win_amd64.whl
Size 187.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
7a821ad8563d63a472940d5c4c1ad6915a7b4e1a78bd21e2d73718495c0a2af5
BLAKE2b-256 checksum
How to use checksums
c7fb21d0213cc9d482d16ab755f41876037985ccd71b8a6eb409400f5a09c39e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

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

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

Download URL npdatetime-0.2.11-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
cbda6f245b4886cc419a0a223133cfb616ee60f9cafb4bb807dff0a3ba07e083
BLAKE2b-256 checksum
How to use checksums
65ff3ff24b0612a35ff8a6dd041b11a2a379f0ae6d00469b493234af2ce1c151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

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

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

Download URL npdatetime-0.2.11-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
a2750b27bb6013a68b9f9bb3267aecd7322ef189cbde432444859cc95e54083b
BLAKE2b-256 checksum
How to use checksums
c5fdceae667bdcf1ae6e300bb5fe3a22ba39df845daedbfb2b6060aef58fe449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp311-cp311-macosx_11_0_arm64.whl
Size 286.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
befcfae7ad766eb49741481481cbc9b5f7a75fecc69878eb0c5b8362bf99192b
BLAKE2b-256 checksum
How to use checksums
1631e05f8e1391bd9d319895bb48ee281c4b82146b08e4152f8cbcdc3924db17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

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

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

Download URL npdatetime-0.2.11-cp310-cp310-manylinux_2_34_x86_64.whl
Size 330.7 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
bb58f19458a6a4503c815b63b947ab380ec49fea5ca477890946c5a437edf15b
BLAKE2b-256 checksum
How to use checksums
70e2193bef299d7264b568ac23b0fcbaba8938877d959de84391d2fe494cee8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp310-cp310-macosx_11_0_arm64.whl
Size 288.5 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7a687245b28ff6dc626d04176325e0635f9d09d5a9598eb5fccc8713bc240d15
BLAKE2b-256 checksum
How to use checksums
8cfdac02d80a3cbca4c87b9a07f27669509add6cf36204a7904ff293e6213e07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp39-cp39-win_amd64.whl
Size 190.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
4a265c70bca3613543b2fb37625a4fb657102b7eb5d1879989ce5f5f05825bc8
BLAKE2b-256 checksum
How to use checksums
0495ad310412e1ffd4522b33010fc0e5639441bb32eb3c998e3f7525d11c166e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-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
ffb38950b01599c59e148a3d23d6df988ef841de798ce29a15d0cbd597ceeb42
BLAKE2b-256 checksum
How to use checksums
2c735fc09088ed218bebbda3993af7fb2b48df4cad5794f6756a4defeb4baa60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp39-cp39-macosx_11_0_arm64.whl
Size 289.5 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a92e339400c55a64221a628fbeb229da83c09580064a13f80fb7a11e27c6bb69
BLAKE2b-256 checksum
How to use checksums
d6bdceb0092d5ebf912e113ad4b163625a36c68946bab33e7c16712cecd51711
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp38-cp38-win_amd64.whl
Size 190.1 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
247490cac787a31f8761d67e11b23bacd04415e979d3eb8e0afe7adf4ec2c421
BLAKE2b-256 checksum
How to use checksums
296191a08dd5c49bbf478d1d6e1e3f138a8267e0f7254df73ecf9ec07f6904b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-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
fca59dc8bd67f79370265efb9958165b505e868ae4d7a39f85ec3bcfee5870e4
BLAKE2b-256 checksum
How to use checksums
e4f395888afcdf0ddde6dfc14417df3757f219829957031ac512b607078898e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL npdatetime-0.2.11-cp38-cp38-macosx_11_0_arm64.whl
Size 289.2 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
53f7fd4c05b6407e81ea0704550dfa220c56cacb9ef3e980028d2e10b8f64b92
BLAKE2b-256 checksum
How to use checksums
c4736f5bfcfbbf698892373efccf4a0922a696b404d027aafa4af161a4b1f28e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for npdatetime 0.2.11

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