Skip to main content

Fast Nepali (Bikram Sambat) datetime library

Project description

NPDateTime - Python

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

Installation

pip install 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

Project details


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.1.7-cp314-cp314-win_amd64.whl (148.1 kB view details)

Uploaded CPython 3.14Windows x86-64

npdatetime-0.1.7-cp314-cp314-manylinux_2_34_x86_64.whl (290.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

npdatetime-0.1.7-cp314-cp314-macosx_11_0_arm64.whl (249.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

npdatetime-0.1.7-cp313-cp313-win_amd64.whl (148.1 kB view details)

Uploaded CPython 3.13Windows x86-64

npdatetime-0.1.7-cp313-cp313-manylinux_2_34_x86_64.whl (290.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

npdatetime-0.1.7-cp313-cp313-macosx_11_0_arm64.whl (249.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

npdatetime-0.1.7-cp312-cp312-win_amd64.whl (148.1 kB view details)

Uploaded CPython 3.12Windows x86-64

npdatetime-0.1.7-cp312-cp312-manylinux_2_34_x86_64.whl (290.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

npdatetime-0.1.7-cp312-cp312-macosx_11_0_arm64.whl (249.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

npdatetime-0.1.7-cp311-cp311-win_amd64.whl (148.5 kB view details)

Uploaded CPython 3.11Windows x86-64

npdatetime-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl (291.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

npdatetime-0.1.7-cp311-cp311-macosx_11_0_arm64.whl (250.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

npdatetime-0.1.7-cp310-cp310-win_amd64.whl (150.7 kB view details)

Uploaded CPython 3.10Windows x86-64

npdatetime-0.1.7-cp310-cp310-manylinux_2_34_x86_64.whl (293.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

npdatetime-0.1.7-cp310-cp310-macosx_11_0_arm64.whl (253.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

npdatetime-0.1.7-cp39-cp39-win_amd64.whl (152.2 kB view details)

Uploaded CPython 3.9Windows x86-64

npdatetime-0.1.7-cp39-cp39-manylinux_2_34_x86_64.whl (294.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

npdatetime-0.1.7-cp39-cp39-macosx_11_0_arm64.whl (255.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

npdatetime-0.1.7-cp38-cp38-win_amd64.whl (151.7 kB view details)

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.7-cp38-cp38-manylinux_2_34_x86_64.whl (294.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

npdatetime-0.1.7-cp38-cp38-macosx_11_0_arm64.whl (254.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: npdatetime-0.1.7-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 148.1 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for npdatetime-0.1.7-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 0603ac45205a069ab3a3caa355abf762588099c4d957955bb1c6df1d9737e282
MD5 d6e402b65a7426a10044f46bb2af6271
BLAKE2b-256 d11210bca24dece21a2514543d39f178ed1daa5e1ade10a1066c72b709ad2efd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d481818fb987e5803e248207c2eeba5b9f10c8af4bbb9ad9ec0daba4f997585b
MD5 4121812104bf184915824509edf820c1
BLAKE2b-256 e9e3c76aed5f0b9592f527964bc650bc0e957f63a00b393b7d7dfc4ef612f976

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75bd560ed1f12490380fe2b86dd2b39bb54fad5c9ae1c3c58fe84fda113b1686
MD5 8cf2bac3feaa13f59d348cbf794c8e51
BLAKE2b-256 617f564fec6af037dc6cafd0c1b64ece8ecb1e9a8c8454a692d0ee4a460fe895

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.7-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 148.1 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for npdatetime-0.1.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d7a354c2c0adb99aabd823ad45e87d4048519d41daf7942cfde3b78bad183f48
MD5 9aed2f8858c5d98a6ad70ea40862a914
BLAKE2b-256 fd51db7553936090d9929c35abeeb6fcbd4ec440a0777b23e4a5adf207fc31de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4622e29b721d6b95e1bedf53addd43b6a6160b264b7f57f1fc685cdb7c7259a2
MD5 a1d27613154f4be6ad7cc798c8eab1c7
BLAKE2b-256 f0964ad5472a5a176dc11db8e5276866183892028bcdaf696b499be1ac8e16ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d483bfc3ff20e576bb16fb3d8e89ab6f6ca4b1fa70d14d59ba9e22df5634e98
MD5 2aeb2561df75f2c69f099bf20a381f66
BLAKE2b-256 20beb7da726414172db734020b27891d69e325f9d2196824f72c99bcbea32284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 148.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for npdatetime-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e03775cbadbee189b7703be6d2c894f07c53396ff12ffaa642371bc4253620f3
MD5 c2cf763ee5730d2fab9a0f7249312912
BLAKE2b-256 285a3c8d3cdcdaca23dfdecd087f1fe145425012e1d7995a832fbb131698510d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bee9601fb1205d74b7961148768babf2c24f58427226480f60d5e617cd556de1
MD5 ef2f726397df1c64848efe88243b61f9
BLAKE2b-256 522a5fb83944e9f700f7da0c72c5e076e99da842f0584d0b3a70f56f0cbfc2bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3cd109dbc4f189f307639b44907cea00e07983a85c3b4d0079274698c2a60ce
MD5 45f911867a90c3d73b6c4475602ef080
BLAKE2b-256 af4ef7768a749c489265b10c5a8f927a04337a8415afb891bf149f43b6f545e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 148.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for npdatetime-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bdffed93b70a2778f6d377463bbbf32feb44c9d32716e201eba2527e7bdb927c
MD5 a67d65ecf9ebc1c8297a2b01acee4184
BLAKE2b-256 fe4c7f830f6095db5b7c4dbda893454dcce15220fad97b5f205ff91ef249a0e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5d61df790a6fd12b25907cce18c8345d23fe40230b255aede7720f12dd68d1fb
MD5 75767ab0848ed00c6019b5531bb2b668
BLAKE2b-256 817fa8a3995baede4980d0b67c0194f57886ec44031541a806603a6c2762d09d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72fc866d369397649bb95b7ee1750f64ffc9ffc491d9ea61d083c686faddfd66
MD5 c5f7269c9dd4479e0bfa6429ac78cee9
BLAKE2b-256 f5ff053f2e5dbc2ece0d3208a02a551116480c63f9d54fcbada97807587b33e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 150.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for npdatetime-0.1.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a3074b4f6ec0cfdff12b599c77cf738062ee6412be3f1b856f6d4953a00b6d5b
MD5 1869ea4102881f9f644b9aff74b42592
BLAKE2b-256 1e7cdbd822b912d06d79151c7807537de96ce416f42cadf8f47264c3c6ff306f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fc902abfcabf3e8739423155dd117d785798690e9d3e97cf76137e5ea32006bb
MD5 63ed1cd78f72cea477e6e5370a5dfcae
BLAKE2b-256 cca5945e7cb339b428d2e905fd3c8f770bde30b3a333a185a21152d4a08e6c74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84f74e0ac022c74aed814f4fa9f612b5e300cb5dd45d0eda1fbb6b817810eb3f
MD5 6ba019d56efec5bdcd7bd24e5572d93f
BLAKE2b-256 0d42267ba1f5d627bdedf224a557c5c293e433d22ecccb365abb3de67207c88f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 152.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for npdatetime-0.1.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3d08069f3d17bfb7a9eb1503312f64323001c611694c6bea1e40b12929bedcb1
MD5 cb594bb4d12c355f64cb75278fd3ecf8
BLAKE2b-256 f0d62a574ed2cc5c6a29f925dab24b43d285ae32f31260d3b5f6a5c67ad7b872

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2acc808cd2748877967f39e4fd6abbaee6a6f20392829d328431f25bb5e9aab7
MD5 c46db1a8f50bf0d1dba9c831e7684f92
BLAKE2b-256 912410c9409313a389c2b1e4e7d31b300c22e7c8b7e7103faa14640e07790c16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4602b8e6cb9c9bff3399bc86f8d3fbd80d835f567bf36e846ccadc987476d468
MD5 0703fddbc1f2bf58500a33ad6753465e
BLAKE2b-256 1e7a0c5aefb16a9300b36bc03daf79f7c78a7e7eff133bd5c886a01c3021953a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 151.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for npdatetime-0.1.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 65bfe9a57fac6035e21fb8edb1ac6c49920a1e7de8b77ec36c8e96f3d53b7103
MD5 c03dce9f52682014c06ee3156aa0b836
BLAKE2b-256 c1aef0f38846ba573992f9242f36a5bfc5354cd0fa3281d2a87691a1d940be65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3c67b02a4d52691ec7e131e5f0b81b457788aee9e536268f99a93f9b660469c9
MD5 64b421afb97a7ecb915308295e1dca3f
BLAKE2b-256 9a8128b2b5c38adc9d0d0c8bef8a6e6d151e740d18f6901c9763831b8b6802b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a54bd5ed792bff0371ad7d9e68702bee08dc98edf3b3ae68106f06305a4a51a
MD5 1cd62b01ff590787b0d05f1d445dbb35
BLAKE2b-256 da602193477ee1ffd8f2715860b44d3779e1d89a0494d42dcee1d8a79716be15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page