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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.6-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.6-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.6-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.1.6-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.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f0000efd798fedff63dff685c101d931d92bc634508ac4ecb5571cab9e765a6b
MD5 369511a85f3ebbb154c6caea411e1104
BLAKE2b-256 6149e878ea0f6eb32634579be3cbb32cd5ce31e9d560df295b1dd86ca4f22c98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cb93b04723bf562003863c612d77366a1eeddbf8585b04e3e8300445259d6960
MD5 8bae4bf8e548326e4df8434973d93d36
BLAKE2b-256 6c513b59df4bcf0cf9202f31f6b81702b68dd033a4382eedb694ff6f0cb0a700

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0b70081edd25f7cffe8e7039990d35462bfe2470cf7d847bcb78dbb6b8e38a0
MD5 fcd34ab0754d7a387fdbd7f0a6f9f448
BLAKE2b-256 2bf71cbf460c9a3d7882aba442bf16aa8ad96e8b901b96e638bd033780998b65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.6-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.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f573e497b2ffa8256c469b8fffc9f9424d20e9bbdab296514befbb51d230c3db
MD5 aa85c0898e15d7bbf781b07cbfda6f46
BLAKE2b-256 5483eec4cced54c1a98b551fe9fa0d4f81f6fee2239e1232a167ed23b0eb4c50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 883c045a232c05040d34b08fab677c1b65d59b04d742d11d50c77872e6b93ad3
MD5 7e577fcf58ab126f5074e8442bcbcdb2
BLAKE2b-256 f10c43591b607ad9af1f44ce346e2d9e9128c8670f7db12b37758205deb0c997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f414f246354ac4ec1dc681d82752d83a449cf74523c5d853060f0ccf8e24eb9
MD5 ad84a339d784aa60491802d0e52d198f
BLAKE2b-256 bcd49112f87f64f2514f4ab5ff27731bae7981aa27e9fb9ccae6171651519022

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.6-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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b2b3a1a688a2c51d4734c311eedfecdb0b22a82d9d61bebc4fcfa2d890110062
MD5 7dc047536167b8b8825bb356e3b6b3a4
BLAKE2b-256 c26cb1a9919eb200e4d5cad02656e79d5eebbca2e4564fd6c78063192bd95f01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e636c6ac7fe277b5288373509cebd385f6056932b0d4c6f9999dbd9433a4129d
MD5 0b094c126eaf12a9ca4a09a1e655711c
BLAKE2b-256 6bf13dd2b490f0f68a81df0870c3d3be22ae87b837fa4ba924ab5ca15e735cb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 062929ecd62dbae6487412214bce69e16926b48ab613dd6647a827b522747408
MD5 3575a02a7f94abf52d9f2286e421ec5f
BLAKE2b-256 7b9846e1a76227c73eee88fe5eddd356f8d6274d16164319fa11158790679e9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.6-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.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 663f6ca8bb82c0ffa04d5511c4a6f7870a6f0722f2d5bf8976428b8faa02b39f
MD5 ce868c5b1747bd9eb87a76662820e4c0
BLAKE2b-256 897eabda7f0472b5895a249e867e445d3bb999c1372dcf3ef2a3a3e839421851

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0e47be64e75f3982d0f26386471b487ee97069bd06f5063fc9ec1b911eba3ea2
MD5 7a3b5f3ec8b11e8234d22a84440f1402
BLAKE2b-256 ce3f7cfb97cec921949244759924cd59e8ec53aae1e7051ea019e57941e7e506

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c18f3a44c125962aa1881112a83312abd534b043cea9d7875081a0876bea04a4
MD5 9f3c2fa4a3d49970b13df45af6eea517
BLAKE2b-256 0ae5d620a2d095eb1f666680e7558b01bb9c31f7dcb97565a829abb386cbf123

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.6-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.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 60c7cba6cb4c5e98db2e6be51d5116ea73514f1293b252e2c8c02e8363b07456
MD5 e8b421b9ed17482aee7889f080046b5f
BLAKE2b-256 31575a093c086eec28612b11d82d29e9b3c9d72fc27dfdbe4fafa89c60ce132f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4a11c169108a39bd6714e67976605d05c0c87c63d724b9b287abbdf6e6225364
MD5 5ed3f4ec79d98a744253ef9876ca781d
BLAKE2b-256 093f6bc9a8f74a4e0cf5db06702ad103a077c0ddc954ebe2aa34c1c346e8aaaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 574fce11c5f7b8be8024d15f1a8421986f426acec625a29eb250a37c73a71dcd
MD5 8168b89326490849a1688144f9001a7a
BLAKE2b-256 9cd9d0de382e0eb897c956714c1241f6c044133cbf9c53457e353fcd2a9d9c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.6-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.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 852cd1661ccca3f0bdce610e19bea4a8aa8271e2120cb7353c642c5d18e363b0
MD5 98511a107ab581078e306588abc2cea6
BLAKE2b-256 7ee3303148c851d49012f2d45af88420a42a2c218a4bd78e17eda38ccfbdbf12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 987048d49bd83017f4b233618967e5ad2ea443ced4d2b68e3a5f53507cc85701
MD5 b5886fa6dadadbc4a967ec5378180f54
BLAKE2b-256 bfe0cc9fd81fefd74f86aec8e683d66010d34318ad4aa13b597ac805e68a212c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43ddf1596e75c3ea901084027a66ba6544be94333840d16c3d569e07c324986f
MD5 34daf348d3f36a80f5c6e700d46e0cd7
BLAKE2b-256 3b52fc33026725f00fb6afc3d2f72bad2da12ae91942a8e5b2f663d50de3f387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.6-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.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 361018b20b5bf3f164d71d60b422529557ef0a674fa4ab7aff922131cf8e165b
MD5 c2f66c22291f701621e57d2c0318def0
BLAKE2b-256 fe825ff69d36ca08f46c8587afaee828182378b1d6c427476f5a4be9907aa699

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 01198c92c9b72dc94cb571ae1b975a8420f5f198e4c6c68e4e1f7e1b54df8cf7
MD5 d29af22059709000f2b6554c9bc6ae44
BLAKE2b-256 224affcbcc56250f953d5e36bdc9ce579c743611813bfbb83a13ab33ac843be3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65941caa218a8bf4d9de230090728e8db069b36734b5705272b2d80bd18eeeb7
MD5 7bf3fe60aa1c9d97fbb21d2529f71887
BLAKE2b-256 9b925735c4cbdc9fdc157e66db90ab3e565b3efd5bf9fa2584501267619e1f80

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