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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

npdatetime-0.1.8-cp311-cp311-macosx_11_0_arm64.whl (250.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.8-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.8-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.8-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: npdatetime-0.1.8-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.8-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8630e75f0de8e84597335638a79256dd155bc148dfa0052fc81c95f3e398580b
MD5 d54615c41409e7f1fb635361bac83e4d
BLAKE2b-256 9ad0c83d9c1663e1231b9970fc724d461ede076e32afc9b90c7dee112eac57cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 576feaed8ff20a9a7d3e164463c9b97fe14aa22c65e47e83a5b091a40574d958
MD5 bd43e0b93b18ac271b815f4036bd97a1
BLAKE2b-256 d35bed84a6fa0a9f811c225631231c8b9cda3717d0489c68ad174d0660c83841

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e097a494cf34974cab180a48d4284c1f16c7ad303d87ed9474a1b717c4b30c1
MD5 c374d468dc731efa40349f5255c8bbdf
BLAKE2b-256 e35cddba57128c3a825548ac7450b6ec083b96eaec65d45fe7642428211d2760

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.8-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.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 76f431ad349fbb370b12d819bdcbb3f16c7db41d33824a266f578e9c24475e98
MD5 a869612c5738ef2a5528d7346875c3cd
BLAKE2b-256 6a2bbde004bd757ef1b02deb3cd189eed939d094b34a564a1ccfa650619e3cd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 270be6f92fb73a2e50af80e8d7bebbc5c8e62164e4d98818a70e406fa25ce4f3
MD5 a092bd795bc3be91c6d11a311bf8455f
BLAKE2b-256 29501a992c6b99fce4508105c6d7370aaf5a9a929c9a12490e53c4fa20c07cc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67daedd04f4e50bb29a6fa4fb35ae29d96adea374f16a84ba99b42c90b642e8b
MD5 56e7c6c3b8609b7fe5906f253e77f601
BLAKE2b-256 9d840f41c53282b2e65a5a0dc4e0bc684ec4dba3af16922f7e00e42f358d5a24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.8-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.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 991438ed8f6b056e53bb0feb09572db855498b31297279ef50004815ca8f61c0
MD5 57b8df1f8327c0c272b0c57409d1b91e
BLAKE2b-256 03cc08aad9046b0d7174808f9f5f906b2f22c2c9c376d5b2544a3a50d80c7799

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 123be51927e92666c21ae3f49e853227e436a3d97c08c543a921912965339435
MD5 9436e5a47fa14711f82565a9c42968e0
BLAKE2b-256 0b6478b2bc8d46b62645a4892b4eb9d41dbee5bcfe02da4b1dd3b80adabd2ee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21a51ebaeea2127594af46082a92cde3681b9cfc6c74e919e953260932de2ce6
MD5 05c89a44fa8b9aa8bfd611e749b5b431
BLAKE2b-256 0632585b6d31a6f15c0b7af38198b3d84b199a20c4fe2813daea0529bb04daca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.8-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.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 40b4e97ab7fdde78df1ea37615730058802bb8eb377308c987e5f4ccc872d8e8
MD5 58cafd9697351e6f90f75cf1f908b1f9
BLAKE2b-256 58649f883d8f4ed6271170013075325d8ee14b0ac9d09c0a115628eac189f04f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c31cec5cddc4ed612c3208bb5bc8d0f5b868327aa0159231e1dcaeb55a52d687
MD5 10cfcd22ee4af24d0287e865019ea1e4
BLAKE2b-256 7cf8ec3809b485aaa5f6e373e3520b63a6d102729f144be3c19016e0f51ac745

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcc8ea4c8270ae255f277ff6ea37e2ae2159542bcfea9cb5a4e901d88922e141
MD5 791f4f6fda5066b82cf05c44f0c5dbb6
BLAKE2b-256 8b66671b018a59ec6080897bc42cc0874a54fe6d50e2efa9db6613e621ec4ee7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.8-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.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f80da1065bc02aed94dad7ccd7887960d1a23483709edac69fbb7d49f761383c
MD5 8687eba5b1d663fee04f3777b3be1f75
BLAKE2b-256 ec37c8b7b175af8237b482ac3705724dea34038920a805cf8c5b2e52dd0ee55c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 be254501b3d222ed0acaf7efbb9ee16c9882df780dda3fc816f3f9dbe7e9ed8c
MD5 9233bf14e8a17fbc93bbcfdec455457e
BLAKE2b-256 fa3b728ffcc1303119d37dfbad8a17a4db87489bab857ec67eddec43fe9d639a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f021e88aa1b869edb780e1521e78705e0e9e0fae94da48d5f85ef7f4967a34d3
MD5 e1e9f40454984e1c500057f9e8114623
BLAKE2b-256 588abc374e0b35057f67669bb62192aae99f5585c8e39d034edf457ace78365b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.8-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.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 96575930fdaee9facf23ab19c0682b60e5e98f5e0a90b340cacb7551ab18902b
MD5 363948361c34b384e1bc695f510417e4
BLAKE2b-256 db89dc90ea6f669c29ca79938b0767b37da1190bd76f56eedb2c8b22ea585db7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7d63fceec6a63766c58b827dc80d7d434807be00af8cb10b35716689ce7bc69b
MD5 44b0ffae0b28873bd808d8b8850d23fb
BLAKE2b-256 c2de4aee5c8618984f9f0cad9fcf43d9afeb0761ea4be1ba0670363cd3ca1db8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa2748c2545f94c8c910d0462ca42b4a5706da2fa35161f70d7eeb3e0cddc3d1
MD5 203006db3341b8e4c1f89164075aa723
BLAKE2b-256 04219b18c1c5b822ac298344bf10b3683e937cdb864c6a4758a6b2256164e8b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.8-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.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b9f3646de3a7a67838b8da0540b46e3c41523b64cb8db9b86fe7f8f04aa8fefc
MD5 3090c61c67eb6b92b88aa6e40e5d2280
BLAKE2b-256 98845b468ecc181d3ed719cd3ec3abb8283fbf55012cce230929ca17c65bad11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f4218f23ef333b362656e40edb6383d369e008a47e2591b867b47cdc2acbb742
MD5 59e14f7f93cf9bc36006998f85c4cb98
BLAKE2b-256 6d2c9d4d62ebb7bca38e929572cb7c1d5f918edaf32bcc19ddbbd183e35b7ba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.8-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e8fb74e30a5c79d51f2419e6548643611b1b49bd9a004a6a349857d1e474a84
MD5 fcd7c1a96ff3f141b75a4510c33daad8
BLAKE2b-256 7fd11eee8b8418c60fa09a73c3d7b6fe59ec26f126169e5d7c4c3f6fc1039c0c

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