Metadata-Version: 2.4
Name: date-fuzz
Version: 0.0.8
Summary: A Python module to fuzzy extract dates from text corpuses.
Project-URL: Homepage, https://hal609.github.io/date-fuzz/
Project-URL: Repository, https://github.com/hal609/date-fuzz
Project-URL: Documentation, https://hal609.github.io/date-fuzz/
Author-email: Hal Kolb <hal@kolb.co.uk>
License-File: LICENSE
Keywords: python
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <4.0,>=3.10
Description-Content-Type: text/markdown

# date-fuzz

[![Release](https://img.shields.io/github/v/release/hal609/date-fuzz)](https://img.shields.io/github/v/release/hal609/date-fuzz)
[![Build status](https://img.shields.io/github/actions/workflow/status/hal609/date-fuzz/main.yml?branch=main)](https://github.com/hal609/date-fuzz/actions/workflows/main.yml?query=branch%3Amain)
[![Commit activity](https://img.shields.io/github/commit-activity/m/hal609/date-fuzz)](https://img.shields.io/github/commit-activity/m/hal609/date-fuzz)
[![License](https://img.shields.io/github/license/hal609/date-fuzz)](https://img.shields.io/github/license/hal609/date-fuzz)


# date-fuzz for Python 🗓️
## What Is date-fuzz?
Lightweight Python package to fuzzy extract dates from a corpus of text.

## Installation

```
pip install date_fuzz
```

## Usage

```python
from date_fuzz import find_dates

text = "A thing happened on Jan 1st 2012 and the next morning at 09:15 and also jan 15th at 12am in 2018."
dates = find_dates(text)
print(dates)

# Output
[
    ('2012-01-01', 4),
    ('2012-01-02 09:15', 9),
    ('2018-01-15 12:00', 15)
]
```
