npdatetime 0.1.0__cp38-cp38-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.4
2
+ Name: npdatetime
3
+ Version: 0.1.0
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: 3
6
+ Classifier: Programming Language :: Python :: 3.7
7
+ Classifier: Programming Language :: Python :: 3.8
8
+ Classifier: Programming Language :: Python :: 3.9
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Summary: Fast Nepali (Bikram Sambat) datetime library
15
+ Keywords: nepali,bikram-sambat,calendar,datetime,nepal
16
+ License: MIT
17
+ Requires-Python: >=3.7
18
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
19
+ Project-URL: Homepage, https://github.com/4mritGiri/npdatetime-rust
20
+ Project-URL: Repository, https://github.com/4mritGiri/npdatetime-rust
21
+
22
+ # NPDateTime - Python
23
+
24
+ Fast Nepali (Bikram Sambat) datetime library for Python, powered by Rust.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install npdatetime
30
+ ```
31
+
32
+ ## Quick Start
33
+
34
+ ```python
35
+ from npdatetime import NepaliDate
36
+
37
+ # Create a Nepali date
38
+ date = NepaliDate(2077, 5, 19)
39
+ print(date) # 2077-05-19
40
+
41
+ # Convert to Gregorian
42
+ year, month, day = date.to_gregorian()
43
+ print(f"{year}-{month:02d}-{day:02d}") # 2020-09-04
44
+
45
+ # Create from Gregorian
46
+ date = NepaliDate.from_gregorian(2020, 9, 4)
47
+ print(date) # 2077-05-19
48
+
49
+ # Get today's date
50
+ today = NepaliDate.today()
51
+ print(today)
52
+
53
+ # Format dates
54
+ formatted = date.format("%d %B %Y")
55
+ print(formatted) # 19 Bhadra 2077
56
+
57
+ # Date arithmetic
58
+ future = date.add_days(30)
59
+ print(future)
60
+ ```
61
+
62
+ ## Features
63
+
64
+ - ⚡ **Blazing Fast**: 100x faster than pure Python implementations
65
+ - 🎯 **Accurate**: Verified against official BS calendar data (1975-2100)
66
+ - 🔧 **Simple API**: Pythonic interface with full type hints
67
+ - 🌍 **Battle-tested**: Rust core ensures reliability
68
+
69
+ ## License
70
+
71
+ MIT
72
+
@@ -0,0 +1,5 @@
1
+ npdatetime-0.1.0.dist-info/METADATA,sha256=_6EVBUQbeb6MKHEVP5ke8D7qSjV5LxV2G6P-Y_JDlCs,1907
2
+ npdatetime-0.1.0.dist-info/WHEEL,sha256=13fZrXT6qE3OD1fSoNY8fsNlp7KxhVzsjwYPIgYc96A,103
3
+ npdatetime_py/__init__.py,sha256=3Z1oEYo6b6482Bi4TIgfXGDNIiJZjd1oGAXlx64J5w0,135
4
+ npdatetime_py/npdatetime_py.cpython-38-darwin.so,sha256=T239Pg4XOtVeKbAqZYcOlg9XKH3qL4_1Q7O2qCPNmRo,593216
5
+ npdatetime-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.11.5)
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-cp38-macosx_11_0_arm64
@@ -0,0 +1,5 @@
1
+ from .npdatetime_py import *
2
+
3
+ __doc__ = npdatetime_py.__doc__
4
+ if hasattr(npdatetime_py, "__all__"):
5
+ __all__ = npdatetime_py.__all__