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

Uploaded CPython 3.14Windows x86-64

npdatetime-0.1.9-cp314-cp314-manylinux_2_34_x86_64.whl (290.6 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

npdatetime-0.1.9-cp313-cp313-win_amd64.whl (148.2 kB view details)

Uploaded CPython 3.13Windows x86-64

npdatetime-0.1.9-cp313-cp313-manylinux_2_34_x86_64.whl (290.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

npdatetime-0.1.9-cp312-cp312-win_amd64.whl (148.2 kB view details)

Uploaded CPython 3.12Windows x86-64

npdatetime-0.1.9-cp312-cp312-manylinux_2_34_x86_64.whl (290.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

npdatetime-0.1.9-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.9-cp310-cp310-macosx_11_0_arm64.whl (253.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

npdatetime-0.1.9-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.9-cp39-cp39-macosx_11_0_arm64.whl (255.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.9-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.9-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.9-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.1.9-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 148.2 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.9-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 19e2407ce82a7bf007f083ab4a0402a08cd068fa96b6566711b6cd8c3fa19d5f
MD5 d8c8b641059222e32a61872cb9bda897
BLAKE2b-256 6416220ee79453fb70967971994717a53f719ce8ce478a3035b6414afdccd28f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a0d9e10eb6c7f898e17e77f76a58ddae94dde1396158e7442730265ade085ee4
MD5 421a6cd03996f56a189cfa96045aede4
BLAKE2b-256 656f126eb4ecbc51a1444ee49fd5855e56ba8e7b0c8e0e2361d91ef25a6567d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9150dd02e8cb12d960a905ebcb1fc44273ef07e12dfd779e658fd9e21a15d75d
MD5 625f5bd7aee96b5e964c5a029031c869
BLAKE2b-256 9727d638ac053b15fa3325996b5289950f6d694e5bdeaeefd97baaad2e5b8876

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.9-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 148.2 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.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 509f0b1d05583bab53785f01c1ff94472051e51dbf531520bd94fa484a2cad30
MD5 e99788eadf8cb0e681bf265694f144ab
BLAKE2b-256 0f00524f55dc43138ed48e5fd230095713270717bdc01a05e4a298d3fe7448e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7c6318b42db0bef0484e9eb3a0e3be75c8c83c6e5154c82023f58337599036aa
MD5 fae53f999c22226f9463e77792348165
BLAKE2b-256 322f888e0dea0ebb9baae18c0e2fc975ffb7d9cbe6c3efff9e4147913a9da981

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67e2ab3cfc4ca8750d83819e46219c7a0fe2d6a2a20f65393dc7e0f343fa31d7
MD5 80d74c058d75575b9afd41986e3b5c82
BLAKE2b-256 b4b71d8e80bfcc5cd7ecb1427e309a3234262969877dfc01a2f387b98336c22c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 148.2 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.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec2389568b4c34ffa490541e3575ad3553d8cee863cb029e6c296a1f83d3aa40
MD5 d038f764717f59e122fcd4038ad30f65
BLAKE2b-256 fe4f603fd6e7b73ff5ad11bbc0eee78d26638b4b48c40aad1a90f60360bcbdf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cc80d609715a7b0dd3409ba28458d456557c88ba9c6b126d5782255735283e7d
MD5 1b23eb3102ff468c9efe209e9284b959
BLAKE2b-256 fa60845418e52ec5b04289f1f25dc916e8baaba22619106d3b137bd7709c7233

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32fe77ff2163c138247f96e51ee9dedc5fba575345c705e3fea9f6284232d687
MD5 d29c6925a4855078707a2a0eb15d503a
BLAKE2b-256 765c09dd754c0359f84470f06c9c255e9ac9e5d5cf38d24f8e5ff43fcc612ed3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.9-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.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 01c2a4cc38efb8568eeda2926de76871d6ff9db47d71b589546128146a2f3782
MD5 3beb6dfe07a1948ce73444a52ef5ed04
BLAKE2b-256 def303cda81a659eaaa262186f4e97b70aa13c7769ca7ab8c518ac1f0a295238

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 df7ecebd2c317b8af741350f15ac72f2b0f5f2594c9ab23682fda479b8c48ded
MD5 87f592a24eece4379d1dd0780f4d3ea6
BLAKE2b-256 24fd05d12d3c93041e82e30f60425d178fa8aa56498e2d47c5caa6db16261d07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50acefbb883cedb0363998a177349da62f72a233eca0fc4a00e624992064918c
MD5 028ae6e848a25fb7f527c5b06c3f4376
BLAKE2b-256 23d13c3cc7a1464a35d381e9728c3b488e554b08c5d35dc44d76aa331ca5b60f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.9-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.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f8e213decebfcd422e31be81c39c608149eac6fad15369a7dde631dfe2ef3be2
MD5 e7aedc3dee68c9ddfcf3aa151bb9d9da
BLAKE2b-256 c0135ceb39488b274a5dc1bc84012ab83b7315a16c34cb42868121b241172a94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4a7d6b0a67d666c61affb12b18cf0bce9033f66735502312b2a66ef2575158c6
MD5 56961457172e83ff0b61ba25b8832ed1
BLAKE2b-256 57939a9d92d3518941c74768d93c15800fa41a9a3a6e8ca6ce811cc4cd88bf54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c846a4fe31badb5195f86aca59200322effa4a3f909d0a8c6cc6e4df8a903a80
MD5 5e759e524b34ce5e3943a94acc87a0ec
BLAKE2b-256 337bf695addfd37cc758aaa4acf9a1f245a121ee12582a11b917968b788f3008

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.9-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.9-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f5479bc9350c6505c0d1eb3ec3bda1ae654a4b1a2ef77090c794b5be4374b56d
MD5 fc6c023729f8409ef611b7c5c792ebac
BLAKE2b-256 d1d5419e32ab19939d37fe8d7af41695d1a3f1838c3113b68aad6b565c2855b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cdb00906c70604ef75f1c60be186342a255f737a5f4edacbce6ba942f4d6e75f
MD5 965410e29c75e0cd85deb250308c2b46
BLAKE2b-256 ceb7f61620916c692940df859b284de2664bb981ce5bf5cc6aaccf61689e6f81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fcf815035d206867513fedaa6f39cffa4b8562790b8864b91a3e47355a29c69f
MD5 aacf0289bf325ef1e182224353a663f6
BLAKE2b-256 bd7868e7d084be1aba00f7b5ac1bbe19a76a188514afe9e27a43ff82bf993b31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.9-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.9-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e8e2db634c84d44542abdd8e09965897c8eb5c7ecf53fda0f46b62e22c90cfbf
MD5 abd8ff06fb12a274ed61f700697e6d7c
BLAKE2b-256 e5caeac04f6b77fc6a692160a875cfb6d19335fd78bde2032c60f520bbdc67c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1c0ade4f51c9385aa73343aef71ee198f2bf11ba312a9664c1663f1ad830859c
MD5 b7fb3183c738a632b05c40f65585e88a
BLAKE2b-256 af24e1a143970688a9a585fd24fc9bf56e493a07835c46bdf3883563d8f2bcfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.9-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4298c815eab7839a53a1c0da9de7bdd5ba9f24b64b4539549291317f17988f4e
MD5 933b931df3e0cbe112dfcc47ca378db2
BLAKE2b-256 b820d3496281030df12001a85e3bfa6f34437b3a877f9ed931d7b58a0e196e8a

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