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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

npdatetime-0.1.10-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.10-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.10-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 02ced741dcf411c169532e8be3c7542ca1b305695833017c83dea88603d88d51
MD5 b18d4d32004b2363b613f48e26088ade
BLAKE2b-256 aba019138c73799eaceeb6ad805f61cd6aa675323d11592ad11945dcb54aedef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ef357af86211da6572e4fe82bbce67322408690ccfe3e7a4399d29938fdac0cc
MD5 4e923ab5e526df5f4c62454bd30aaa1c
BLAKE2b-256 b8124171e8d450c3db575a43d4ca1d3935df30aa31b81f0018372d90755379bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9586e2547c7f9b58c50ed1916fdb18855eafbd3ef7091d470ec73752939eb54d
MD5 0db88984024aafc07b7e9132fe4e04ef
BLAKE2b-256 1aaa1695c52f2c84a27a2b69206c6364db4fda028f25dc45594c538ff9e93a4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b84489d2b7bd0cd1912707253f3ed1ec45855c8297431699c4761ad395feed64
MD5 fd90e97d81f2424d348736824c32f71b
BLAKE2b-256 b5a775698b0ffd9572a8e03dd4f9ae0e116218fb1abde1bb16ff62278b1730cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ab92bfaab514f8b0964350b58bdd424a12192f5b6a2bac5849f45821b19c7d1f
MD5 0e72a0f803eb37643488e58855bef7ff
BLAKE2b-256 74ee7f440ae8ff2b8e974251401d6ae70212586ec7bb97827385db473e46c3a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 199f4c340d9e55552f2ce68c0566ec9330d2174ae0897e23e8bf57e65571162e
MD5 463b11e9b93fbba4de112525c7df54ff
BLAKE2b-256 e32e8f35613a4c6f4a107e966f0593dae548789001c53bab8ef267d77dfec18a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 19a17cb22c488663d7e864cd53815e8659a7613efba193775852777ade1ace66
MD5 55498b023622e6c4bbde1593a8a61ccc
BLAKE2b-256 bddc66009988ecf60f66bd09e4811d437d5246db654c9b9ffa430d0da6b71293

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 940e71d9bcc3eab7715518aee3299acc4881afc6d605114a88e92f4e3c0167ce
MD5 07870d552202886200e824b1c55df45e
BLAKE2b-256 363cd8bcf7cf9dba9be0c61777589d65e610090b47bc9a68d3bbbd5feee93b1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 590c9d088799e2165cd5a848c39947556fa74cc4184c9011dd6d6ff26ac98092
MD5 31c6fa9e5373e2a3c7c37e60d3dd9b14
BLAKE2b-256 63b8d70575529ee5c265a705f21f04c39a3f372d5dbaef34489868228f326306

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cfaafb944f6828803638db0c4c91cf08091c1b8a10d3cbd981e1cc28f651c91e
MD5 2ff3fb25db4edbc65541054b66be8fc6
BLAKE2b-256 9f6d42f2f56a5eff0bf55e1d3adcfe04734f8a829fb5c84ff5f4cf5a7b9ca0ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0a65a0ec4fa72ae762277a7bd950f5de4c6a438d188c7829595cb5ac1e922702
MD5 164e37efc8a4e6e5c6fbf1c0f98752e2
BLAKE2b-256 6a2650267f32520aadb2411ee47fb98a58ea5541b8008baf4ec52f1335b6c5c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1e95da2ee0ec0048360acb926b4fad8706d1efa2b5394158b7e86a8054f7dde
MD5 223adbe29d42afa0be9eef0e32843e84
BLAKE2b-256 cab12a0cbd013574feaf7b89b221dfcf2b66cca939097ddac508c0580cc8f025

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3c57458469d5ff693cd007d52caa7b9533b09b358e47d63dc20251ec37d36160
MD5 5b61a7c84e3cf885d1c2934adb39d433
BLAKE2b-256 ae4a75617fa695397fff1bf34e653d5f06bfff086366f53c41d5f68490bf3165

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ea83ef9a46be21f8bf81720c1adff21d0a92a6fb3501ad57277e1dc7e45f913c
MD5 0ad7d36960df42bc012d93350d57079a
BLAKE2b-256 f57f21a264681bad3263f835c0cdc8f1473b16efefb0132085f8a9da9fb9cc67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57dee39c91adff05e3dbda696ddcfa31c30f35a0caf2e09fde1d4640c6ece6de
MD5 11e627a9f9932586ddec9d20c02f4c37
BLAKE2b-256 41ed72516cba15a9ff4def1d669117df0ea479e49d3476c5f3e6431d3b1ab1d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.10-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.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ef4758029fe6054daeefdd35f337a129ddddc67b8a07372ce0a435a620f6b1b2
MD5 2ad46da8e54103b477e39649805122bb
BLAKE2b-256 aa0539f94288b6607046b27cf29b5057b281047d082a43fb0627ae244e76bc55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 47a695658914811e1fe92cf2ce030804cc40d8acc4dae2c6bd491566db31d122
MD5 afea5d69a640c1b2af97815b70d36610
BLAKE2b-256 f07096ca8f98651e643ce95a90a913e4ca7e85fb16207c42722e4be3e2d44cfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e53bd6da706269ce9fb31cfc570ee33ea0e667e714319ba82c5775c8be9c727
MD5 18962e29dec3f145f8eff4b16205d768
BLAKE2b-256 244a54a07b2fb134d12d2d98bada05c275eaa59f163859d76b9fc7cafb0f678a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.1.10-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.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e6e74ab6ea8921c7d57a5fc63c0c494cef9143453ad77b923067b89e66a2e13a
MD5 892fa964b32f9d96e82e1660c7f2088a
BLAKE2b-256 2a65f9d0525f1bbe97c1cb804e679e1a6d11d0a8e082779916b63e3545c2ca05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9c75f2cf97edb7f3e95692b895003eb98942fcbe6edeab3831a22b0515685b41
MD5 a3da12c71da0d28fa493779bd3000e0f
BLAKE2b-256 59345535f4956df65aaac54f8b6c8262f9600cb9efbe4ac8ebcfc59067cd32c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.1.10-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c372a27c33cfd1dc4f9a64ccfb735e02af515876bf9b5de0c1d8d66df1431981
MD5 f36fdb072852ae13c2e238793595d9cc
BLAKE2b-256 5fff0cf216ad9084d3705808cbc0cc225e3b0fdad58cf5fc16b581288f503d57

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