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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.5-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.5-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.5-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.1.5-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.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 92c048da8e89593d18ed1f3bcdeb34cf8a63a80238a5bf4549e1f6eef4b47f43
MD5 0346b61bd6c30672494ef13996e1fc48
BLAKE2b-256 f88668c72e299ed159b4b8b22663bfe7d6c8718aaefe4326aef915fe51f46151

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cecdae0a175722011cd1e80fa65e40de76312488647bb2e2106848b503bf682e
MD5 dd7c1eda5f65db13d4ad13cedc047f66
BLAKE2b-256 d44ee4e8dfc17e9fe184b19745ed32a1c7e917062b05af5913e42be086ed23cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70024efb2d3717a9d038f47511dce3b6c63b328289bd272da223548691ce0086
MD5 c40cdd99baeb68621786e9ca7a3dc922
BLAKE2b-256 cd4c980e884f66fc2f232522720f765a759b0e3cfad59d1a5ce77901c36e44bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.5-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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4702422aa0d9268f7627938a18b85341637a9d7b2186d2647370ddd64cf3407c
MD5 5d332eb86e2051327b9ba0939db6a9b4
BLAKE2b-256 cfce595055c037cf401dbab2751f6ac18b5543e61ce9f61de598daeeea5ea697

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d67d4618ba208b6ca5dcc97eb2712477c5e704a0aa577b6ce8a1afc737f4f5d7
MD5 ee6603b2a7572c74905925539ddc3c9e
BLAKE2b-256 020a5ef8499825dae7e328b23d68ea9ae46ecdd4ee521fd7b2070aeb53a85dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff40a249ba3747e41a4e0645c79046e8c42bc261705c0efa0a37e5023797abd4
MD5 4a8ca8f13cd2de9e74706cbc28443ca3
BLAKE2b-256 356ca1d2b6f9c171089ff06741638c15a0414f32aab6e9159f528b9baaafed19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.5-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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ecba85140f0a20d2434bceb9e0e3dc86e88f8600e75ddad6c0589854866a64bc
MD5 e6402ce08ca07523f3c1b1e39b4f14fa
BLAKE2b-256 a1b530019ec4a7e4b0946f87dff2b2146ae0b1cbaa0863e41e11d10a9be3d253

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a21e69c8ca30ad99848940219896b22979f965fc2cbb3b8ba8029769e917d2b8
MD5 79a68be7b2c385ddcbd91fd68fcbe5cf
BLAKE2b-256 79319e2f4bbbf0c51c836c32376cd1771c713d44ac85490f14fee114e65d479c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27568f2f1a7308462ae926322e638e292ec39bb4ca9d04da8da6c78e9101ad9c
MD5 3828caf53f475cc771ac8a6f392836c9
BLAKE2b-256 99237c6c9d0bc5e0a478bcbcde5d0cc9e6766e3f9b4e378868ff79bf4c1ebf95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.5-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.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 429866fcc12e4cc73cbb3da20e35869874a90d86a5c14f7f4c2b870cbc7c8c50
MD5 118383c1ca588e5f2e5be8adca8f7bbf
BLAKE2b-256 00af769d27f976ac02f218cf1a7eeb1fbb88256f961f4a9ead12b9c57f8a9225

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2b7d3d9a422886772eae931bdb710f8b6dfef3ce4e7b72eaa54f8bad347276c8
MD5 d246155a1c0ee6d5e73319aea9b98fd4
BLAKE2b-256 423f5e3851f7b9f9470539b6798d1bdf4c4069d164e0e70bfbc9fd84d5d0124b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9556a1602274f1f407a8a06ff6e1a33b51547ed7a24d8c37aa3a774c59941b42
MD5 bab12e187b29bda3378d8eb607777edb
BLAKE2b-256 10e586f474f23edb8c5b0c52c261b51890605accb406546659aeb193e9562724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.5-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.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 65c0b4120499e585a3669af3142825c7fbdc32e6b55a25946f9cbe765fa16e56
MD5 008a70b23e02a7350250d6357f454f53
BLAKE2b-256 bcfe64a4860a79395b7a7ff1b6a54bfd72c41a0923e9d751aebf05142d32fcd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fa2743f5c7a277fb0ca96fce44ad76ac99fd1c4ff8773125dd280390de163abf
MD5 ed3f804c7b19deb745a4118012d40580
BLAKE2b-256 680ca627338e15cb1f877158c682b7d340b5d9bed74d424aeb50af1e0644ab99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97b7a704994756804de3de247034d38a7357695e30b71a78e712f2a2815ba5d3
MD5 2fe5b489c108c3b8e60d84e921350566
BLAKE2b-256 85bcde31318be96fe535517361607b78e285d74cfaf027891b6065a142e57522

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.5-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.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f74186a638ea3962e817db37d46a1c19010ed2eed303b6fd7abcae4e802d99ce
MD5 5e129e6aa5ef0cc8e93b8f34470b768b
BLAKE2b-256 8acbaf41f36bed6af7a1aa03b1b2cd25080eb6735d157885989a372c31a387c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2498847bace57e92ca415fd9239088ab3ec9282c9d589e40cad7b94f6e0854f2
MD5 1c9e67374f4888487e82eb75d089695f
BLAKE2b-256 ec3bb710925e5e62a28efadb662a6086f3d61178ee1c9e93d75f170cc453dd15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b01317001002a98d2e83815b2352f8947b3b9b83de2eb14bb71b90a255818bd1
MD5 053bab84b6c9ed7ffdfcb42b76207fba
BLAKE2b-256 d4e565fc34f36d5c027f6310320e1a0bcc1da9041650a0bca7a4cad2a20a2d5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.5-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.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5cb1c1be01397d795541d860d46f5571a8c28e1bd0fcf2663d19d865117aa501
MD5 2758dc1dc3849c1b020540d4a2313b2f
BLAKE2b-256 0d9110a31a2baa24e36dba3d582296384496aecdaef0585d3d5d62fc2759c461

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 218f8dafb080087bfab01c77d104147cba4cb9c4013b2e4cc83f0e915776dd28
MD5 4aad9ef183f652273438fd24b7e7f38a
BLAKE2b-256 43a7fdc72959c93a115ae89a480909790a390e858bf3ffbf97ac2d4ef626d985

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69d8db018a6034321ab41c6d483ff1d6914d6a8089f4306e18787556fb7d5ec9
MD5 63818c23b86f7638cdbfdd1f212539e4
BLAKE2b-256 38dab4cc2841889982eb3abdf37b4f9608daa0a2689060e8e3d97995fdc13db1

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