npdatetime 0.1.0__cp39-cp39-win_amd64.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=fOfb7aVGFj3lFC9bzNLaGmNostlkOwWfu8yGTXY5NZM,1957
|
|
2
|
+
npdatetime-0.1.0.dist-info\WHEEL,sha256=H5klTgXu3iVXpFbMzUkXja9m3gL244ExCR0k1sRMImo,95
|
|
3
|
+
npdatetime_py\__init__.py,sha256=3Z1oEYo6b6482Bi4TIgfXGDNIiJZjd1oGAXlx64J5w0,135
|
|
4
|
+
npdatetime_py\npdatetime_py.cp39-win_amd64.pyd,sha256=4RCHYkDVdo5HUIXD5dBpaxozb4BigFi5Y-chsifG_Xs,330240
|
|
5
|
+
npdatetime-0.1.0.dist-info\RECORD,,
|
|
Binary file
|