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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

npdatetime-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (250.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

npdatetime-0.2.0-cp39-cp39-manylinux_2_34_x86_64.whl (294.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

npdatetime-0.2.0-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.2.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.0-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.2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e96c1f0d0d8f8fe7204fda8614686e1b1d946283e2eadd34b57b7c7a95096e27
MD5 2829a1d75f9a69577246bc0901700ba7
BLAKE2b-256 2aa6408a5e77be9f2f4cd9a0c8a39039f56d0c70f158f2a090320df5feccd25a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 542d3afdd668fd3d14e0c4f83782c35e407276d97e513eb86f015fc5a2c85ade
MD5 82e3b1fdfa3e82af81e11bcdd06464a9
BLAKE2b-256 b43502588ab7ae62c3f363075adcb29de88dba0506c3b6960e5549c0aae59271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91f5134773bcb376056ec14f37559c5b01645838a30adaa7e6addf656f32d382
MD5 089bd2e1ea57161c7f32f8d21991a667
BLAKE2b-256 bb8b9b7ec5f9ac87787bf1bc6888b84a9408224dfd03e91c0de4b16b27c4109c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.0-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.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f021e673f7ac7f56794ca896720c94dcddced472a7d5ed97afde489258445124
MD5 edbfb8ed12499abd52a6beea6cc908c2
BLAKE2b-256 3c0ddba7b617e11cb9ff121041f8de7f1ab6f5bf0c5e16c567b13bfa6de55f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 690620b207206dcf9d4b40ca500795f4ef44e852e6deb52a38cf10d8c4391019
MD5 92d58fd9fd02ad41243f7c16a6eaa202
BLAKE2b-256 037e9af4f86ac13feb760617010274f17f8d27c991cbc00d10f9140e06a1b4d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d622aede1442a2d0c25d0b91cfbcd84041047c470c90d30baec60ddf14606382
MD5 992830c79d10df9e736715b3170831dd
BLAKE2b-256 998c3e575640e9c32bffaf1e0bbb46ff5265e89133fd71445f581a2b70312f9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.0-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.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d72aad18789c8c1113ff697f7e1ec0af72d3cbd95395aadd355ccde76d885f50
MD5 de379aaa216b6a18f7ed9835fe0828c9
BLAKE2b-256 96da9b0750e8915e5a60a0b4d8eec1af6818dfafdf8aa4ae285734171371b2f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b39aa5f231d83175148dceb224dce10c52611dadabede127fcb7c651819bd852
MD5 142aba2d8d170ac5fbc8c1442db125ef
BLAKE2b-256 00d1bac60ff6b8ecd5a8583cfb88c68c3a8ae0edfac233fd231235978410d5cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78d7484b59a14fb038dd605456dcf2baafcca7de04fa2459785683b45c7771dc
MD5 d13e1afc1effd9e60b1e3910a68c9c31
BLAKE2b-256 a4b9a1554b88e90754e6602da907ba2386a57c9d1c9b242628f7c7095fb1f4b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.0-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.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e00a7647e528d677ab82944d38a66c95cff184902cd0fd445232b4f4b4151320
MD5 943a058c4ffac603c4b7269bc84b046e
BLAKE2b-256 79fb4bc2c015214490b3c5b379e287d6fbc30d6a52fac3f11417982646ace997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 68c18fb86bbaaca59b559f222b92c09d01a792d5a956622c68383a4d1c9b2788
MD5 ba7490a05f0002cec808f910baf461d4
BLAKE2b-256 06a1c5c18648798d79883cb532a12bc3740ad04e3c93faec8463b48c44c3f58b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e426d0e4fdd29ca61633e2593067ddb61e346f79ddaaa1fb75bc5d40d41e305
MD5 a22aa3e2c44ddf6762702c7147e0f7e2
BLAKE2b-256 c0729b2d8f3c9911239649866635a80b07b3be5c51ab6140de39d951722937d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.0-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.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 24481dd4696bed47c5f5ff8443e78c0ccbba6394937fbd0fce4cfb17ad9ab8d0
MD5 1ac09919a99fa33dbda505ec8bba7e48
BLAKE2b-256 2fc496d814244a676293d8e2b9ab24f0735028eaa53aaacbc0ffe268b8374048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4d8f809d31e80be95c3df5eeb560a7ca84a6a22192a0c27ffcdf1fec86620523
MD5 1d55b7e1e8afc5e757cc411eaad87ffd
BLAKE2b-256 9d8e04e099aff426be01e17468d24fdb52c15263951ad7af6d9898c69e596ff2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc7caa292ddf37f1cf93166f6643f2d1ce945b9d19f595250b96cecc49669f53
MD5 fbffd4d27f714c4919626cacefc0a802
BLAKE2b-256 c831693ce83f6a4884eccb21aadbd2877de27547a10eb0bddafe0f2e3fa51dae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.0-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.2.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 02cca5d66ea6e0c4fec51ec60dd7b2be50f330353480a9c0c494f3d9d16738de
MD5 ab0c49766b7d36d152bf137d6494f5e0
BLAKE2b-256 7df48def0c5121a1fbf5f40080e1b11615c64f73953710598ffbb0eb35b51c2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 97137d87905721d1acce0e2c1e727d68cb5503672ddcbaec017fce82b1aee97f
MD5 21d63fd00cae7795e9c6b9c8497ac033
BLAKE2b-256 8d0f1542f2acafb1c8b69e8cb165446e539e1c7b7e1d524eca5d22c8cffad7d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcbcd0763dcb5fc142081a6716ea894f522da1b4ce01c7b141c134528e783daf
MD5 f387654c26a5df980056c18ce3bf0413
BLAKE2b-256 f57e9c7b47e4ec84132a760ef753ca4c35302d2f38a05a1e0ba600ba5b698187

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.0-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.2.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 04e96862358e58cfd08e5e8212101999cf81f96a0a6148bfb9265cfa6fe7b3f4
MD5 d7d75eb440cf6feb0848bda3aca05806
BLAKE2b-256 a2494547107830bda90d3d73c8914b309ae27ad46a7027142f2a70a4cb3a0f43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 936908a7588b8ea611b00baece19cea6094810648939dbab9cf6d13b05875590
MD5 44b9dee67df01c1be1bd6818d4ecffb3
BLAKE2b-256 f9d86dbb463bebdd72932f587454e11640a55b1d70bd0e6bc8d4275b831b134e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c38043ff8a8d0ff476e3f5f3b8e5af29c3e9b001e7d5b5c12e0bbe0ca9dceb04
MD5 286f5909117c061c4e28ccc5d62648cb
BLAKE2b-256 71071d309bf6963748273b079912393405179313ee75d10bea789e7486b82f48

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