rm-date-parser 0.1.0__py3-none-any.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,81 @@
1
+ Metadata-Version: 2.4
2
+ Name: rm-date-parser
3
+ Version: 0.1.0
4
+ Summary: Finds every date in text and returns each one with the detected format
5
+ Author-email: Vaibhav Singh <admin@rationalminds.net>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Vaibhav Singh
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/vbhavsingh/DateParserPython
29
+ Project-URL: Issues, https://github.com/vbhavsingh/DateParserPython/issues
30
+ Keywords: date,parser,nlp,datetime
31
+ Classifier: Development Status :: 3 - Alpha
32
+ Classifier: Intended Audience :: Developers
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Programming Language :: Python
35
+ Classifier: Programming Language :: Python :: 3
36
+ Classifier: Programming Language :: Python :: 3.9
37
+ Classifier: Programming Language :: Python :: 3.10
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Topic :: Text Processing :: Linguistic
41
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
42
+ Requires-Python: >=3.9
43
+ Description-Content-Type: text/markdown
44
+ License-File: LICENSE
45
+ Dynamic: license-file
46
+
47
+ # DateParserPython
48
+
49
+ A lightweight Python port of the DateParser logic used to identify and normalize dates and times in natural-language text. The package exposes a single `Parser` class that scans free-form strings and returns structured `LocalDateModel` results containing normalized values, the detected format, and the source offsets.
50
+
51
+ ## Installation
52
+
53
+ ```bash
54
+ pip install dateparserpython
55
+ ```
56
+
57
+ To work with a local clone, install the project in editable mode (this also makes the `dateparserpython` package importable straight from the repo):
58
+
59
+ ```bash
60
+ python -m pip install -e .
61
+ ```
62
+
63
+ ## Quickstart
64
+
65
+ ```python
66
+ from dateparserpython import Parser
67
+
68
+ parser = Parser()
69
+ for local_date in parser.parse("12/12/2025"): # Pass any free‑form text
70
+ print(local_date.date_time_string, local_date.identified_date_format)
71
+ ```
72
+
73
+ Running `python test.py` prints a set of parsed examples for convenience.
74
+
75
+ ## Development
76
+
77
+ 1. Create a virtual environment and activate it.
78
+ 2. Install editable dependencies: `python -m pip install -e .[dev]` (dev extras coming soon; currently empty).
79
+ 3. Run unit tests / scripts from the project root. For ad-hoc checks you can run `python test.py` or create your own fixtures.
80
+
81
+ Please open an issue or PR if you hit a parsing case that is not currently supported.
@@ -0,0 +1,13 @@
1
+ dateparserpython/__init__.py,sha256=nmNJIxELKp5e_d1tiDR-Kqg0VZ8qGejyMwsa-VPuRiQ,241
2
+ dateparserpython/dictionary.py,sha256=9BOWXeX5GMxcFljO80aDADAG5cXMSWtnJBZKFvzwXYI,14065
3
+ dateparserpython/display.py,sha256=siotV5dEfC_tgKnPzpK3V651avpAqPGRTYvepep9iBA,421
4
+ dateparserpython/helper.py,sha256=0gWgMNSD7SoQDrmBcc74mepiiLmJrq21I2N8RGK58TQ,4112
5
+ dateparserpython/models.py,sha256=dD2Z_xAGDCbQC-_SJnwyMIlq4RRHYhPx1jUWN0dL0IY,1717
6
+ dateparserpython/parser.py,sha256=qMszCvdZzugdf9MYmhPrP3bIyybS1cLLAV70dUQit_Q,26493
7
+ dateparserpython/prediction.py,sha256=4xAO9p5ho6r_MTxOG5iD1ofgimnsVdqGx48e4vpcPZw,1007
8
+ dateparserpython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ rm_date_parser-0.1.0.dist-info/licenses/LICENSE,sha256=xUqcP92TAjxfadSQXTok35D4VlaX_Wac9X31y70wsoY,1070
10
+ rm_date_parser-0.1.0.dist-info/METADATA,sha256=7iEZkhhJJfsdJzRbWKiP2jaxPg8cQQ_xGBW25OMRCVM,3573
11
+ rm_date_parser-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ rm_date_parser-0.1.0.dist-info/top_level.txt,sha256=NLu6j_aQrLzsatAyPUf0oOVskQD3vM7a0o83HZ5bo_U,17
13
+ rm_date_parser-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vaibhav Singh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ dateparserpython