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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

npdatetime-0.1.0-cp39-cp39-win_amd64.whl (152.1 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.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.1.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.1.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.1.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.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1c4801da61887c269c1e4772d8f8d6f9db37c8ced1999ab0873be640a4afb576
MD5 9ee764d35ab9be10d265e0bed8df0d0d
BLAKE2b-256 1137fe750f4433fa272b15d2990357e09e0faaecc204405f380318a53a36b4e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4f3d36622e0b753e93c2e6c9b2c74ed78d4b0fd1885f69eba7183b14006cea2f
MD5 e89ad353be14d03e13efcd7b882483ef
BLAKE2b-256 42960cb21ba0fce2b698de21e3cee59e4dd3f24c04e9d46c58c58ced064e0bdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 921a3dc74292f5a6bb2d62596db75f86cf7ce6ec6b1ed57e335067cc6d691071
MD5 557b277c93b53c10a81da68ceb909823
BLAKE2b-256 b565f2958186d672f8a94033b93cce455dcc94c8f46a39ca15182048869aaa38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.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.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f046f278fa9d262d88dd2d7506fa5438119c0e0964a2bfd1dd4fc4617130371a
MD5 f1378ca764e22024ba40d72667c68b1b
BLAKE2b-256 1f8626dce005a2efee7e031ef94485b25994144516e96b51e2e083b6b5d1d682

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5d5689e3a1f272f8e9405b8aaa3d5c5f39461268fe51b8116796fadca212b038
MD5 785d1c0a997b944c2ee39e5329aabb8a
BLAKE2b-256 7041b8e2ffbe711350dd424a0e5dcd55deddeaad2205db5c281b17e825823c07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d71c1700e6588a9bc9cd67a59a5af93ecf3894beceec0e310af0b0af7c4aa7c
MD5 61c27fdbbd6769558f379d09bfd9baf8
BLAKE2b-256 62ca4752e7795c65bf6abf3f19997b1b4065fde2c9370ca385c32cc7be57a0b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.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.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2ac0e3ee92d45648c9f65e2ba7ae8c7d6aa492f48a19a51305695142e2720a14
MD5 fd2c82d899c1f15d9fc111c74019b755
BLAKE2b-256 ac47b3677b7eb1e078ab937446ae88caf4dbafa292a200390b4d719d76bccc8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e269b250fad981f9a07e5b222a5f1c6b4ec2d3c264f5b2e9600f723869496229
MD5 184e557ffd6f4c62d19fc2b731848738
BLAKE2b-256 2129c78feb5f2ea4d998f7148238a168c7c0ffe3754eb6ccdef4aee03b08480a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87c5d49ab890e8f8afe6db739d928041940ca9c579e336dafdfa66a41ddb2c94
MD5 8cd1ec2206246173af761eedb62c7ced
BLAKE2b-256 94ca455f0376aa8ac0bcd3a8fa301e2cc03feeb1cf1538e61b84c57a06b54305

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.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.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 421df7ce41eca6948ddd42af3fa86d0d2f58970d1245845ef757bf42b15af902
MD5 7f5de18cb493a3674c097ac55fe3aa61
BLAKE2b-256 e0ec1814a877e3197f858e4ea919424553507d01afbfd813d72bb96cb80074cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 63dc216ad1adf2e9468d5f289e7c0a64cc2ea0d8dc12fe2e0adbca1b6edf6792
MD5 60ce9b31f4e5c42d7785c48ecb2f0d97
BLAKE2b-256 7c503d6b7d6b19094c30040226edc2b1eaa291faf85d068a105b6d38269a22d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bcdae272eeeefa35360b779ac28eeb8fbec7e619fed8fd110ba0a9f41e9c5ba
MD5 ea7fe72a19375ea21a7dd70f34720932
BLAKE2b-256 d5a2bcaefcb3687ef0b1db1a23338594ebecadaf53308c5c69e62bbead969ed7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.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.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dbf706b94ae1c6dd09eac6ccbb4c02cda60874afd55d793f5b83db050182f3a6
MD5 9ea53b586145167f7dcb4bacb5cdfa8c
BLAKE2b-256 5f2a076261296bb191fdd6c2b561173dc935d4f6895d1295169fcfb37ebce72f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1a56992d070b6ef9775b090c32632f43beaa3a3231c4decd7aea597bb332830e
MD5 ed7ba5273c9d20e468c32a2febd19522
BLAKE2b-256 79e1309d13da97960f32b43fd774b1b513dba9c53d257d5ec1979ec06990aff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e54225f4b90318ecba94049c2a5e29229a32c20ee0fc51849ebe2fc45bb6561c
MD5 28bc8771041929eb39f90e56cf8713a2
BLAKE2b-256 12f0d1b04336de6309d5e3acb48e0d984fd3c4755aa2dc2a9f0524050e67a28c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 152.1 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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bc83296a32bb7f9dd34ab0061d4bf0874ee87a608fc2037fce2be8e7e834ed75
MD5 2de84bf65e496261cc047de61844d0aa
BLAKE2b-256 a65e366740b6a5fea1ed01c6f7aea0356baffcfc6cf5856158013d3a6dddd1be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 25ff03fe4529fe62eef11970baadd50a63cbfd3ee472dbcea2d1691f94a2afa8
MD5 982665b78a7c74bf6cbfb5508979100b
BLAKE2b-256 be012df377bf973332578095e0244c7125208c141fc36147559a875511d17ac9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfec6e310085fd037d689ff0218cf85bc22735b21ba315ad910f1e2f4ac8ae45
MD5 df9d9c957d3c93cad64febc457d48368
BLAKE2b-256 9b9e240b0c37f749ad4b912b60b157f545c40513112fd09c0b94851d51287f90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.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.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 daed2584dc3b974720c8702e229e184b7a3abbd077a42e6e6087175939b67e79
MD5 c0d4e12f1d34b49f09083793d27c59dc
BLAKE2b-256 4a191840f2f799065e9c65b828554f364af76efae2b64b68eff6dc3b8aaa7d0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 12028da847f7a2a92ec5e66037e1104125c26b2ba5dd293cb9da24575d73956f
MD5 0bb1b55a4150a5ed86d2935d1465ffca
BLAKE2b-256 1ecbdaf08b4f8905291a7fba8bd96dcb1849e5abfe6543e8e4843b0a7c42c0fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b015cb92c6309dbc9cfaa8dc6daa880ed6ccc81bf62ef49f8a454fc102f0982
MD5 36a95cc54d0c1b1e1a5eeb9c4b2ede2c
BLAKE2b-256 2a9b977b796d9131f142b86d8d707c385090e3629699ddc4b36b72902ed6d6b7

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