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

Uploaded CPython 3.14Windows x86-64

npdatetime-0.1.4-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.4-cp314-cp314-macosx_11_0_arm64.whl (249.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

npdatetime-0.1.4-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.4-cp313-cp313-macosx_11_0_arm64.whl (249.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

npdatetime-0.1.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (249.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

npdatetime-0.1.4-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.4-cp311-cp311-macosx_11_0_arm64.whl (250.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

npdatetime-0.1.4-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.4-cp310-cp310-macosx_11_0_arm64.whl (253.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

npdatetime-0.1.4-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.4-cp39-cp39-macosx_11_0_arm64.whl (255.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.4-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.4-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.4-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.1.4-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.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 500c98106c38a22e008ca865bf05c0c260449189c0b465bb57660cbf85ca75fd
MD5 bc0db494b4cf6dca34313b4d211c316b
BLAKE2b-256 73da6b4c8046360865a96a95bc46f7e3d89d10b9c2cbdb47c06c1ca67ca2c919

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 796ea0e9505621c63a3e201a4388c944ac039faeba35536f8dde9a75064d658d
MD5 1992d8bdd78450e8b3987a4cae26923f
BLAKE2b-256 1e552882ce768f7a6c99e9688fd3568f5135b739f6c7cec8561ee78bbf34e1a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 489d70321cbed540e4065d9b66ed5cc0646cbe7546c8e74c9e0620bcf8aaa7c0
MD5 2bf43012526b654faa846e0684f46821
BLAKE2b-256 88efb61271aa9776a67e467fa2d7972b359c3acbe7757dd04921063e9bc10982

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.4-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.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e07d8f95675efa8b65044f0d30fee1bc4d1f60d6f698e5b4ebe7ee1d03d57b28
MD5 176e2c8ddaabbe42e223d792599aec12
BLAKE2b-256 e0cf7028c7b3a2915296d49f3b8a328e2742e14cf8b69fcd35745870e434dd1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 53ff3e095f000e8039446dcdced7e0932ac97111a47ff7533e469e09845157e0
MD5 36cff5edea4b837c018f83a11ad72229
BLAKE2b-256 245b7a51e54a43a4b116ef595a58473c94d1ef2847ac52b9353baaa3bce14fb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a946d79526bd9c8ee02bdf68b4a20e05d41d8c53a54932be463ce97148c1278b
MD5 8657f8276224cc0875e928d5694e070c
BLAKE2b-256 d3fbbaccc26958b1fc64f0ce7731035cbbc9039a6c0c3c84ff40db1dd01c9e6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.4-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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6263929cfba62f283ac1e79ed8d69abec3e7a548beca0b7477ff08e5492b3a17
MD5 9a694cd5849d40553ec9f82c363a5959
BLAKE2b-256 66c1d44ee72a4f50854ca8a4a1dfd18f3c7443f908b49ddeb74479032710f8bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fef7e60671c3e8286468e41bcf4abbcbf5bc10a202ce1f11335b123dc33299f5
MD5 67ca5da9d71a9d3e986eacf569fdd063
BLAKE2b-256 b4c3e0eaae409dc5e720de7f6145ce921c27ce6707b82473639c92be12d0fd8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c1eb7fa751fefdc441bdb0f6a20f82111fae9a9c03075d32252d57f19c656aa
MD5 743ed3614afb35d1aec830025ae4d56a
BLAKE2b-256 95a9fdd2a89039582505c0aef5c0f73d51d44d538c2ea661603e5eb8cff551b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.4-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.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9eba553ac7a13fcd4e84294f1997b068d83a37ddde80659a4ad086708d9a595d
MD5 7e150bd8690d32d8feb59416010c18ff
BLAKE2b-256 a4eca5dd0075e3a7da48cc9f9c660c3c5be7926fd0ae3a4693cc2acd1a96f7e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ef9f8320f2920e9a2d1d2aa38444a3ec74474e8b12719af51af117bcab6e8766
MD5 9ced261be62f15de8410bc2f8bc309a0
BLAKE2b-256 dd12a8532c32991e2335dc4b8614c93bde705e6b3a846793bb743c5136947e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b228eedfad274c3529fdf342c5f20b6568ad0e0af1a09da2aca93cbbdd9080b9
MD5 13ad58634f8487f1f8592bf1e902ba07
BLAKE2b-256 1499b75d71a1642608411bfb4715a0a76936f3798f90992d9aad35dc8d6bddf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.4-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.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4b5ba8b5a18523abbc1abbd830796c6d79643df9b59e9c3ab8b251988da8f9c3
MD5 23ea3aedd5057aa100db00ab5c0d2721
BLAKE2b-256 e4f7a4a020339402f92f2905325bc04bc5848c6816e54a74109ae6a81411931d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6a817fdf9a1ae8be3d02d6a82f576c5b192bdbee0f215860a123601ae870d255
MD5 3dfee7f3e8a7d74d4bf5343fb829d0fb
BLAKE2b-256 f37fc6f3e0a6674b0c583c61928627e1cc744c64162499b9c46ca82e3175b43b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48241408bc27816dbc30120747c6a8a47affc239add3118c01b8e37a5cb16dc4
MD5 6a8394d444ac5d231a03ebfcb14fc7bd
BLAKE2b-256 dadffc928a61c203cda4bf0175bf6a93bd901f68827f84e54df0640c60ab0169

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.4-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.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dc1eb45a5c3ae2965ac22121740aa6967b18eeec48f58fe1e95dbd2fbf48343a
MD5 53a0ddd4d1ebe04e1b4c08f4752930fc
BLAKE2b-256 2f90ccde4cd4c20ebbbc769e1a32c44324d78d106c5c5f8721efa55fb766e974

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bb4f33c20631faa6e2e4cd0360af78185ba8f87066560b7d818bfcaabbf50761
MD5 c0b0287978c340f0b33d98d2f4ca080e
BLAKE2b-256 e87667b536b8897b4a8ed3429dd9bc00c50aa3e3886537dc6715fd8dfd194603

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e7cd0a0b8170377924d9a8aa8660c2adcf323ee0b030a2feff48f89a0abf271
MD5 56c2830cfea03f20304de88ea2969404
BLAKE2b-256 d49085bb18e1a7f7a3e8197ee6cedb46b30b8b4cd1207f2c0eac1f95389991d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.4-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.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b398d15d883e595db871077fba8e92f5bffb087e75b076e3e17fed5ed731d3e1
MD5 8b5b2b7bb6431e2fd97c4c67651f20b1
BLAKE2b-256 e90ffeb0b8072822a5eae912a9b4e8cf589cfcceaab5a2ce76a91a88b7ca1698

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 acfe8bc2b9438f1979483b47aa5ff54d9dc8dd62f55b90913e36471e7fc4fbd8
MD5 ff7f9226967d9f31a05a8b3fbd1c4fc3
BLAKE2b-256 05fca242fc97fd1f2cab16222eccbd8cef754c0bef6c4f451fd6829a6666e233

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65d4502b29d9832afdb84f1e13f2e254129d5ebfddc181162fcc2ee375fc7355
MD5 cf1c60073c82aef09789571427800f79
BLAKE2b-256 15abe53035e781d31ebebe7571399c8d2edb5a93a10e974586a3d1b5f64fe416

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