Metadata-Version: 2.4
Name: pdateutil
Version: 0.1.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
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: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Rust
Classifier: Typing :: Typed
License-File: LICENSE
Summary: Fast drop-in replacement for python-dateutil in Python
Keywords: dateutil,datetime,iso8601,rrule,parser,rust
Author-email: gateway12 <gateway12@laindex.net>
License: MIT OR Apache-2.0
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/gatewaytofredom/pdateutil
Project-URL: Issues, https://github.com/gatewaytofredom/pdateutil/issues
Project-URL: Repository, https://github.com/gatewaytofredom/pdateutil

# pdateutil

[![CI](https://github.com/gatewaytofredom/pdateutil/actions/workflows/ci.yml/badge.svg)](https://github.com/gatewaytofredom/pdateutil/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/pdateutil.svg)](https://pypi.org/project/pdateutil/)
[![Python Versions](https://img.shields.io/pypi/pyversions/pdateutil.svg)](https://pypi.org/project/pdateutil/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/gatewaytofredom/pdateutil/blob/main/LICENSE)

Drop-in replacement for `python-dateutil` for fast date parsing, ISO-8601 timestamps, and recurrence rules in Python — up to **19x faster** on common parsing workloads.

## Install

```bash
pip install pdateutil
```

Prebuilt wheels are included for Linux, macOS, and Windows (Python 3.9+, no Rust toolchain needed).

## Usage

```python
from pdateutil.parser import isoparse, parse
from pdateutil.rrule import DAILY, rrule

dt = isoparse("2024-07-15T14:32:10Z")
dt2 = parse("Mon, 15 Jul 2024 14:32:10 GMT")
```

## Performance

| Workload | `python-dateutil` | `pdateutil` (x86-64 AVX2) | `pdateutil` (Apple M4 NEON) |
|---|---:|---:|---:|
| `isoparse` (ISO-8601 + tz) | 4.16 us (x86) / 2.88 us (M4) | 0.78 us (5.32x) | 0.55 us (5.28x) |
| `parse` (RFC-2822 / HTTP) | 29.99 us (x86) / 18.08 us (M4) | 1.55 us (19.32x) | 1.34 us (13.50x) |
| `rrule` (DAILY, count=100) | 103.11 us (x86) / 71.67 us (M4) | 13.62 us (7.57x) | 10.92 us (6.56x) |

## Under the hood

- Written in Rust (PyO3) with zero external runtime dependencies and runtime SIMD dispatch (AVX2 / SSE2 / ARM64 NEON)
- Compact `cp39-abi3` wheel with PEP 561 type stubs (`py.typed` + `_pdateutil.pyi`)

## License

MIT / Apache-2.0 / BSD-3-Clause

