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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

npdatetime-0.2.10-cp314-cp314-win_amd64.whl (185.2 kB view details)

Uploaded CPython 3.14Windows x86-64

npdatetime-0.2.10-cp314-cp314-manylinux_2_34_x86_64.whl (328.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

npdatetime-0.2.10-cp314-cp314-macosx_11_0_arm64.whl (281.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

npdatetime-0.2.10-cp313-cp313-win_amd64.whl (185.2 kB view details)

Uploaded CPython 3.13Windows x86-64

npdatetime-0.2.10-cp313-cp313-manylinux_2_34_x86_64.whl (328.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

npdatetime-0.2.10-cp313-cp313-macosx_11_0_arm64.whl (281.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

npdatetime-0.2.10-cp312-cp312-win_amd64.whl (185.2 kB view details)

Uploaded CPython 3.12Windows x86-64

npdatetime-0.2.10-cp312-cp312-manylinux_2_34_x86_64.whl (328.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

npdatetime-0.2.10-cp312-cp312-macosx_11_0_arm64.whl (281.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

npdatetime-0.2.10-cp311-cp311-win_amd64.whl (186.1 kB view details)

Uploaded CPython 3.11Windows x86-64

npdatetime-0.2.10-cp311-cp311-manylinux_2_34_x86_64.whl (328.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

npdatetime-0.2.10-cp311-cp311-macosx_11_0_arm64.whl (282.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

npdatetime-0.2.10-cp310-cp310-win_amd64.whl (188.6 kB view details)

Uploaded CPython 3.10Windows x86-64

npdatetime-0.2.10-cp310-cp310-manylinux_2_34_x86_64.whl (330.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

npdatetime-0.2.10-cp310-cp310-macosx_11_0_arm64.whl (284.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

npdatetime-0.2.10-cp39-cp39-win_amd64.whl (189.1 kB view details)

Uploaded CPython 3.9Windows x86-64

npdatetime-0.2.10-cp39-cp39-manylinux_2_34_x86_64.whl (331.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

npdatetime-0.2.10-cp39-cp39-macosx_11_0_arm64.whl (286.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

npdatetime-0.2.10-cp38-cp38-win_amd64.whl (188.6 kB view details)

Uploaded CPython 3.8Windows x86-64

npdatetime-0.2.10-cp38-cp38-manylinux_2_34_x86_64.whl (330.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

npdatetime-0.2.10-cp38-cp38-macosx_11_0_arm64.whl (285.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file npdatetime-0.2.10-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.10-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 185.2 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.10-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e62eb4e11c4b3bce346224cd1a98e831ae09052eb231c0bb1983f7aa6b5d0d7a
MD5 a92a330e5f2bc5075e6c0a9c29557cb7
BLAKE2b-256 e8d986b4a431ed39a00ceb88b7817f906c671392b60de89aa24f194ad6141933

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 771065bd08285f20262964ee229598026036286edf6afd6d7df63318b312a9b4
MD5 50780a7641c6a85a729bb38d751af8f9
BLAKE2b-256 ec9848937d7e1088cfff89930c9d26e7048a7ae1e79c42e42ee855e54efdacbd

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9cc4b1b2ba6f83bc63217d6bdf5e0b9cdcc04ca53f3eca8e3be8089b64262e3
MD5 bb4a10848e36d342cb2baaac32c6bc83
BLAKE2b-256 ef8ae776565562e1c13a0e8cd9ab062914e8f618ad93cc1febbd2dcbd7fca71b

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.10-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 185.2 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0117a89ac0819db29664a4d468a73d7d40e38d38cbe9ad46133bbbea8a779331
MD5 76811a1b2c57e4efe7fe68f8e232b896
BLAKE2b-256 59654cdf45591303fd39a0d5442ed486f93ab5e7fd837ded4ff6433149e56c76

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1a627c9b04e912283b31cce4551968beb9ba46d13e423943505808b58ae665b9
MD5 2d1aed6c0af2abb507c4f27ce9e6388b
BLAKE2b-256 5294c257d7d356543462f6679954db7596b2d23f450de8751b445a1099a2c529

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9948f9c53587ec7ed00157d6cd3b6a32febbbae2551b0b3665996e6c80d88f51
MD5 0269e5e23ed9656221595e2c74de786a
BLAKE2b-256 39834fdc504c175c71a10fbf5d1afbacc85556d70bfe71258f81e80f99db64e6

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.10-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 185.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 89d671ef4f53a247d3b3787026099b783675a7eaff10f77701287aecbbc69cfa
MD5 73b86386776da52c9b13e17a4c829dd8
BLAKE2b-256 96fc555a61c87c5f1cf582829afd4ca0bd32358b3f78766a5683e6f07e646be9

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 23630c30d1d924d080aeb238c6a78980218362e74d3f793f3351e8d1f9d300a7
MD5 bcbc967f635751e8d5514ba38fd32289
BLAKE2b-256 e4a78f952006ba6f0b9a97f90b7a1dde03ef0665e56d8cae706702d404fbac3d

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49df1531df0599f6c1c92ca5f69f35042ddd5f9c2b09197c2408dcdcdbbd2c2e
MD5 6d0a78d9d003f630e060b513e8ae688b
BLAKE2b-256 0a6e52384bc912d2abbb4449b8605ce8da0a761ea0c5937764ff4cc7ab07b03f

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 186.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d441a0485bc29828f505eb91c3e8487617002b44ca3ccc1490f6aa14e7a9c44e
MD5 a685f6e538ef812a4374cf256776f479
BLAKE2b-256 23f09c218663a1ee2a8410a2388ec78fb2a4e2171523e4748fc9e74442a94219

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2a4101bc9221e78a46586887ebccd74a00e79e4268f0182da3081f80701aeaff
MD5 4912cf91818da18bf0c10e8e4a483a09
BLAKE2b-256 c35797c4d5b26f451769c1c3aeaef25d024c1ac91dd0321614d3b016d91fbcad

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43fda6859cf814382c6b9afe0802da7a7c0e0f8962e34ff41b5f37977fc27a7c
MD5 bd813388e7dccc50b6e399641a6d5b7d
BLAKE2b-256 83e1352edeca60f1cd9883a2c576b28de0fbd3f0d67ccaf9e612bc507c400bb5

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.10-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 188.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 04114178b0acba24e16531882ca7dcb35c23a12a660000827a9b3e92100da44c
MD5 0acce220a9265a92019b9e44a28acce3
BLAKE2b-256 8036bd6ea16739533da8f96f73b08278994a4acf8d02ea84d1c94cfcd87559a6

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 686a7ab57188a44933c181a7272bee3bba8db0b5fa7a3dfe00638ec6f4e182eb
MD5 24eb6a408f65d2f241ab5ca1ea7656bd
BLAKE2b-256 14f55bd5b11fd97a4788d770d3564f86ca0a7ea5c32b29b782d097b0994f9327

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdbced9e5e030b6b27f598c0820402c71817df39c6a62c4ae67f6ad91e70b87d
MD5 4b9cee261f9ef54edd24526753b96ee7
BLAKE2b-256 3c8ebaba60ae508be8c0f1cc2aa1613bc172597e05773259e6a52d0bfc64d3e4

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.10-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 189.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9f43d70a453de743d9cf7ac40792bf6bab1423ef6b168fc0d197dcacd533bd46
MD5 cfa47764432b28e31eddc7f351acc35a
BLAKE2b-256 f85de75c4534a8449b5d40ca6cd0545300e8d314e0c55eee24ca740bdd8bbfe9

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c1a3f023d2718f4c3973c3afce4d1ebda0d7a2326ee7e1c62efa5926f7d38423
MD5 02d1d7560dd60091f3d9cf9757ff3712
BLAKE2b-256 3973aa996191a94c757af69b06ffa6ea16b7ceda26dfb94d13f4b478e5c25c60

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e88294c068d8b847df4a5d3f140e96e888f2bf7dee20b2a8e824036c627fbeff
MD5 17cac1b99fbac8577c4daa35ba46728f
BLAKE2b-256 516a886d2384c43215162ae85dccf1cc70445c594d20c4cb39eadf634f26e1b0

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.10-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 188.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 49c537b8725f22fcdb8b4511f3054ddddea08a436b948f226f1fcbc6b07a9fa8
MD5 69a6be0a45b595586ffefb339faf3cad
BLAKE2b-256 7eed477a879a56fec3d576752561d420383d6c6494ad6d52aba08843388ee497

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5dc4437539beddbef2e5f5c4dc4c74ef2d2e55a31ed12952f6b0f882e1737559
MD5 c40310b1c8a03d5b9a03087ddc972ecd
BLAKE2b-256 27250d01d1d39771e1efa21f0cb3a45138c52f07599b753dc3a27cff1168319d

See more details on using hashes here.

File details

Details for the file npdatetime-0.2.10-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for npdatetime-0.2.10-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc30a8d29658b2db430d086aafa94a821aecbe2087b55bfbba96712d7777f286
MD5 924dbee3aa146ae41adcb6061d7942ee
BLAKE2b-256 fcf3ade22161021f9259e076d6883f55c50e08c3024d337ecd1ec69af3c4a915

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.10 This release

21 files

0.2.9

21 files

0.2.8

21 files

0.2.7

21 files

0.2.6

21 files

0.2.5

21 files

0.2.4

21 files

0.2.3

21 files

0.2.2

21 files

0.2.1

21 files

0.2.0

21 files

0.1.10

21 files

0.1.9

21 files

0.1.8

21 files

0.1.7

21 files

0.1.6

21 files

0.1.5

21 files

0.1.4

21 files

0.1.2.post2

2 files

0.1.1

2 files

0.1.0

21 files

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