Skip to main content

NPDateTime - Python

Fast Nepali (Bikram Sambat) datetime library for Python, powered by Rust.

Installation

pip install npdatetime
# or with uv
uv add 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

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

Uploaded CPython 3.14Windows x86-64

npdatetime-0.2.6-cp314-cp314-manylinux_2_34_x86_64.whl (289.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

npdatetime-0.2.6-cp314-cp314-macosx_11_0_arm64.whl (251.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

npdatetime-0.2.6-cp313-cp313-win_amd64.whl (153.8 kB view details)

Uploaded CPython 3.13Windows x86-64

npdatetime-0.2.6-cp313-cp313-manylinux_2_34_x86_64.whl (289.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

npdatetime-0.2.6-cp313-cp313-macosx_11_0_arm64.whl (251.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

npdatetime-0.2.6-cp312-cp312-win_amd64.whl (153.8 kB view details)

Uploaded CPython 3.12Windows x86-64

npdatetime-0.2.6-cp312-cp312-manylinux_2_34_x86_64.whl (289.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

npdatetime-0.2.6-cp312-cp312-macosx_11_0_arm64.whl (251.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

npdatetime-0.2.6-cp311-cp311-win_amd64.whl (153.5 kB view details)

Uploaded CPython 3.11Windows x86-64

npdatetime-0.2.6-cp311-cp311-manylinux_2_34_x86_64.whl (288.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

npdatetime-0.2.6-cp311-cp311-macosx_11_0_arm64.whl (251.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

npdatetime-0.2.6-cp310-cp310-win_amd64.whl (155.1 kB view details)

Uploaded CPython 3.10Windows x86-64

npdatetime-0.2.6-cp310-cp310-manylinux_2_34_x86_64.whl (291.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

npdatetime-0.2.6-cp310-cp310-macosx_11_0_arm64.whl (253.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

npdatetime-0.2.6-cp39-cp39-win_amd64.whl (157.2 kB view details)

Uploaded CPython 3.9Windows x86-64

npdatetime-0.2.6-cp39-cp39-manylinux_2_34_x86_64.whl (292.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

npdatetime-0.2.6-cp39-cp39-macosx_11_0_arm64.whl (255.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

npdatetime-0.2.6-cp38-cp38-win_amd64.whl (155.4 kB view details)

Uploaded CPython 3.8Windows x86-64

npdatetime-0.2.6-cp38-cp38-manylinux_2_34_x86_64.whl (292.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

npdatetime-0.2.6-cp38-cp38-macosx_11_0_arm64.whl (254.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: npdatetime-0.2.6-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 153.8 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d244969aef6916cc7b0f8fe6954acf34e85730d8bd70e62cbe6447e4c82e6c46
MD5 bffc4f1118775820aa95579fef5cf919
BLAKE2b-256 f8d4c5c59e79f03fee272d314f627227fe701544df324cfe43922b74ca00bca7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 09a2c4012cc3116ad420abd1bf6f7340918a6ea263af01d259f9d1710a725feb
MD5 ff93bad5cc8512d214a1f6263d3efaa8
BLAKE2b-256 886b554ac4ff0ed69832ecf756109f4c234437eb612d1230e701d7d4e2afe7b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5142822107b8644463ef791e1c88c35ae787afa4c7c62369bb8fcb841f850fe6
MD5 cf3fd460cd0471f75b4037e016ed353d
BLAKE2b-256 1ecaf5e24dfa2fc34cdf8b5c22c3ff465407f50472a11d55887d3bc8d91c3609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 153.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ca56cf3c369b577824925932231bca2c6dd86e8d12bef7e233d3ede03fdee131
MD5 746b86d6b4032ccd4ce1da2fb77f7412
BLAKE2b-256 c65c5bb9e4250b2948ecf9b7188e0e26e8c8db694372f14ff663fd39027e34c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 711ddb27ce4a995a4722843b4b421c72cacecd50acf66aada6e16e4332ca13bd
MD5 f02a18c53ec16cd34d8e6325c403b445
BLAKE2b-256 05e2f072f2143332cbe731390892604272515010458ea722558ffa9453d7f596

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfb0d9da7a6f2418e59e4fbb7c8e67fe5111b4f1745c6d021a0c06ffe4c5d1d8
MD5 50113e9863fafbf53deb5e8cdf91489c
BLAKE2b-256 462a0dca526c572ef717a36efe94c267547193a41803881ff62d4e9e1a059c8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 153.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e94040b2afd98ed81b78ad84da5e5d8f0dd02b7aa9829ab4dd252288d14aa7fe
MD5 5fb7fdaab12f7ed3734fc982da59c49a
BLAKE2b-256 f439f2081b00b08eedc59d47ffb9b1e4005909bfa0ae441e187486f587e08c10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c10dd3f838e5705c2ac20b2d7d962048f1620dd9ea4c345e1c840ac10ed791e5
MD5 60ead2c02e26eb9a3e49272d895070f3
BLAKE2b-256 a3f362ec2711f56ff5fa57032dc7288998b27f699983f531512fe2da7b4511bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3460dfaeb2a940b6953e5312b541305c5f943a4e04b4450447c814d112d4842
MD5 199977777125d9d71de86eff3e983496
BLAKE2b-256 be6ee266697986d98eedde605181182992ab9552eacf1ef9a251731f2b9f9351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 153.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b7640ca2d74fe048e5eca98ea64f7b34b9a8e69c0097c4c373469d1a9ff8fa32
MD5 e3520394ce99df31aa8fab429b426826
BLAKE2b-256 785c3bc60d6e0a59064a225b627e2c98f2b70f954a9ba6be095e9186e9709831

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 940851c6e1644d89d08a1afea55257c97b24039785fe3a7626cbc86cc61654cc
MD5 1bb5b924b5689d768edd422064371207
BLAKE2b-256 0a4dca52efab5d223d4b6932650a1c289192aa92845da5397d86773d36d49a1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d330f8b6f9ec5b7c2db469e187c4e96da884625070d56d26fcfba014ddc0ff30
MD5 e6db4e77b0126ba8af0a4162fb288dbe
BLAKE2b-256 fb11250a706d538f38f3b9b056eb1135ba7bef55dd1b59625d4c46bc2e03c1cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 155.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 95a70c5585e4c2a4409dd1d3f0bfe69ebfd8eb1a465fe05b211dc450fb7b9a95
MD5 f49343c0d2b4fc8f8aa2f391e52e3196
BLAKE2b-256 350acc4aa7a692ae6ebed6bc5e8870ee718cc08660c89453dac226cf19574f52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cd4fe058bbcc357cb502acd4d43366d82e0415f9fa9629a493d1d877ba263b6a
MD5 4bd2fd009f0a6cfd7eda4c122506184f
BLAKE2b-256 a4ef647bb6eb88418cec0d3a5236c1bb5989943e184c6ea814f7f14de9dba198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 098ff40e3828536c6575c2d38c99d54890716adae49c382630777480f8215638
MD5 3991370066d0a2d62f45fa3bcc44b196
BLAKE2b-256 813b8457f69c7fec0f88999894370d7d9bb4403dc3acf47454e866788074a3f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 157.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fd52d174c7fc778b3f04fc484a9a623184b9c64cce5e078907142968dffae02b
MD5 b51f2f907d007d58ea536f9931ba086a
BLAKE2b-256 4d1c6a7fdead3e5e8a568d3b8f77d83d76e16a9c5fed2bb7e9ee483eaaa6841e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7fe1905ff3d1e6f622474d81917ac419c4ebb031d58de4c1c2136a7a7af1382a
MD5 1c4b006807f1e643dd5fedd250a849cf
BLAKE2b-256 c99e0430f6b944b024309fe2d6244c51920e0fd2987c6f024bf92ab4c0059ad2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e116aee863dd715b0faab6161a10747d65b36bcf1f22ed65b58404984b62d5a
MD5 a687c01566d9751d1bdc4a9006b4bf97
BLAKE2b-256 cf7d6211de436a368d68e0f69394ad9224b557d82194d900b54e02c4ffb7bbbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdatetime-0.2.6-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 155.4 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for npdatetime-0.2.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5da71e22a78c09f6444f03be805ba6bcd3ecaf4186f34a5ef431d5519e3e4ce3
MD5 3e8f99e0d74427084756daf440ee3a1b
BLAKE2b-256 0ab5b2dc5e19fb469ff5f9e87f4814a06e77cfd52ec00751ea216a7da07609fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6647e70bf6f4da5576bdfac614db7a10f7649674f6d231f7be00d560f077e0ea
MD5 7cfff0a0058780b7f7c37fc99e90dea9
BLAKE2b-256 f9ebda18bd73869147912d0f14d55eff59f276a64a5e0d545990bf6b8b85acaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for npdatetime-0.2.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c4931cb9fbfdad43b5c9522569637db6d92da1e4194f8f03294240d7c268e1e
MD5 48412aaf539e96eda854635c17310e38
BLAKE2b-256 ec2e5f33e2af9404c93f1fc21e1d54fa408293ba6408952705c3452ab935abf5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.10

21 files

0.2.9

21 files

0.2.8

21 files

0.2.7

21 files

This release

0.2.6 This release

21 files

0.2.5

21 files

0.2.4

21 files

0.2.3

21 files

0.2.2

21 files

0.2.1

21 files

0.2.0

21 files

0.1.10

21 files

0.1.9

21 files

0.1.8

21 files

0.1.7

21 files

0.1.6

21 files

0.1.5

21 files

0.1.4

21 files

0.1.2.post2

2 files

0.1.1

2 files

0.1.0

21 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page