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

Uploaded CPython 3.14Windows x86-64

npdatetime-0.2.1-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.1-cp314-cp314-macosx_11_0_arm64.whl (248.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

npdatetime-0.2.1-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.1-cp313-cp313-macosx_11_0_arm64.whl (248.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

npdatetime-0.2.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (248.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

npdatetime-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl (291.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

npdatetime-0.2.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (253.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

npdatetime-0.2.1-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.1-cp39-cp39-macosx_11_0_arm64.whl (255.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

npdatetime-0.2.1-cp38-cp38-win_amd64.whl (151.6 kB view details)

Uploaded CPython 3.8Windows x86-64

npdatetime-0.2.1-cp38-cp38-manylinux_2_34_x86_64.whl (294.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

npdatetime-0.2.1-cp38-cp38-macosx_11_0_arm64.whl (254.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file npdatetime-0.2.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.2.1-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.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 cbc5aa164e39e971a7d76dc7942526ee94a79363e1b2d878ad92b2c8c584b7e3
MD5 9204120958a43f5226d3476067cea01d
BLAKE2b-256 a57c367e7e19e091ffeb1397f2277cf836064d1b5d6539e9ecdfb18d32225c7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ae8fe3f075bf004f2f4d3ed24718004027341ec52a39adff6b9b87ccc8b98d48
MD5 12ee5c12d92c43280ddf3bc06e24bc66
BLAKE2b-256 dfb489e705f860527891d11bca6d475716557b2e73dc0c4782f21cb3f199025d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf97c920920a3dd0d9a387f0ca5258eebc4c8c9411101c9b72b96a3bd593e160
MD5 cd1862bdeded6bc2f6aede0a4e539df5
BLAKE2b-256 2975e9c7cd42e5ed56f78b133c35c8b58358954f3998896f954136b477a98168

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1ea82d9575a9e806ddba74bf38fc967ae72d1c3f969a217321032dda83fe3fe6
MD5 e9de9d0abb9079d8bdb7277cd5008763
BLAKE2b-256 7accc652e72cb1182fedda80ac5e8cc9186d37d8412c6534b94e45381e03b2b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 855a644c468ee24dd21b598631be2636bf0e5c4a17116d5b750ff5bf240b6eb8
MD5 4f40746c3eb3cbd6e2819b7f1e196a34
BLAKE2b-256 d5eda1dfcc35188bddc8ced38864719c02581fb8848f9122765815368edfc052

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efa736ce08ced53bab928c85ce5defbbda731f82dcf50bf1682f574584f00d41
MD5 ee6011e8b2f8816f64420c72eb8748ec
BLAKE2b-256 95b3220fb8fafc4fc8a0f616cfe686b6c4966bdcb96be1fd5f2c29338ac2c58a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7101d13abadf377cd25b272b24e924a6fc2b01887e92c338e7e0968cfb3d2381
MD5 8ef125a293fd4aa49dd89cb4f9552d21
BLAKE2b-256 ceabaa69994fab7b955069153eef448e19380146b3670e38e149e14a69701620

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5ba55cc6baa9ebb51d1b90dfca99cd1eb398cf9884b03491f35283f3fb56686e
MD5 1d11f089ed6df705e96e0b34424ca9db
BLAKE2b-256 ed169f945ad6a3957935f333ac1deb9e8d85a2d9076cda1e5e3a4ae9831bfaf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ba2619cd8bfed237d3617a0177c25ced4abaa22e404fb5e270464c0eea96e6a
MD5 23a99b4f676141622797098e9ef15495
BLAKE2b-256 03117538d6eb281238e84b08852da92f54ae828b8ed2f7a2c5585908dc9af345

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c48f3ec41ffac07e4677cab05afe81205d107b995393419e5d9887a3ae5b7f37
MD5 6b72fc1d61249c3cbebe809fb91f5698
BLAKE2b-256 21d59592b44a1adb72fec715e4d8fcf011805a8929deac2fb1a57fb1b8c9367f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b895520fc539b2a3863fc02bd7954d4e80429c70bb5df6bd0ee2956737277c14
MD5 4123b11432ce488f12d2dbea0f9f4543
BLAKE2b-256 0e1704e337afb9eea76c5c865beddc5416f1c256fe67276c8424993a7345fcb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62f4458bd91e314048197eda08cdaff0793f2ab78d66981a93b96a463188b5b5
MD5 20b7d3316a39cdc616b0649bd546f1e9
BLAKE2b-256 4ff4b24acc96ccb5feb22976b2078ebd23d5ab562a73afe88b23959441398d64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.1-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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a1ec08d02ff7d731a171c2988d0400db85d56ed3980e7f94d36209ab52eeae1
MD5 2165b5c52e606c1722de2ad8e19067b8
BLAKE2b-256 7c0385714dd76a8c5c6ab4be26df8a53eab3cdb3f0687754fb1ef44a15799ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 db11fbf7f1de1d6d3bb073b1c5ed5271a2d92fce1259f0eae00e5bdf94c15d51
MD5 e5e1df8eb8a275d8af789ed571ef9b32
BLAKE2b-256 4342e1a52c4fa5a6bbd71cdb7297f25073a4cd48ccd1364929461def80f746fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66b0a54865ec9f20c4f1f99b39bc4f8f0efe533b7e76060e5684f33dc9bbe73f
MD5 6e490794bf1ed73f0087c32e4203454f
BLAKE2b-256 87c6cfd8950d65566220fc3720791e19c97f6d1b888e6e98b02dc42116868505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.1-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.2.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dc76d1b8e3d644a27add404d66b32c61b7e29f0091e72355edf30d33944940ab
MD5 ea022ca39c0bb04e5e99a59e67c2f2b1
BLAKE2b-256 c18a17502202dcf71edd33f99de3baa2b03d90b776326e72d86e0c68df9da7f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f2001e5181a3a312dd4b6756fc7732882eaa41f6453eb7682ef96d920ab4ebdb
MD5 d1a38b2b7bf208e9e9e7308efe95f31e
BLAKE2b-256 20af0db0fc21bbdefa8faf5626fdcbe087600572acab8621b287b248ad6af8f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9e37b5cbe5f32aa5e2aef1a88806371bf4cf51a39d819292b3d27ae69002d89
MD5 db2df81abf2a53811b91f0f95b9aac24
BLAKE2b-256 e821784b3cdd6471f769085869bfbaa6d3e8db3a8bf1edd6da9310a41632ed23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 151.6 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.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 87726325cfcc30e1b85458d858fa982ba4a7a893ebd2daed50e5d6c81e43aa3c
MD5 7d46e4a4c2c3200fd2581fe88604611b
BLAKE2b-256 39eb73e78482893a46ae13590ac2d4261d7ddea07e8893233d077d2fd68b4a4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0c439371cacae95f0df90be181a08eb8c6d71f938fad020b8759506c5df4a3ac
MD5 11d72f4313a2495be13c99abd5d9a264
BLAKE2b-256 eb22f837b587e59059f28cf0ba3191d6592ed337ad58b9ac75e4623579161c15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccc76d08fb99ccbe93ccee741bf218a51d2c9924edc7cc35df77c80bd3e97e31
MD5 d2a7b6571fb4bcc511315c2065e85703
BLAKE2b-256 525bd1943d58dcc0e38f340f3abfc89c214448fe350f78f0f48c2771986faba7

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