Metadata-Version: 2.4
Name: pyurlc
Version: 3.0.0
Summary: Ultra-fast URL encoding/decoding in C with SIMD optimizations (30-35x faster than urllib.parse)
Author: Maksym Kuzmych
License: Apache-2.0
Keywords: url,encode,decode,simd,neon,sse,performance
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
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 :: C
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Filters
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Dynamic: requires-python

# pyurlc

Ultra-fast URL encoding/decoding in C with SIMD optimizations (30-35x faster than urllib.parse)

## Features

- **30-35x faster** than Python's `urllib.parse`
- **SIMD optimized** (ARM NEON / x86 SSE)
- **Fully compatible** with `urllib.parse` API
- **Memory efficient** with proper allocation
- **Full Unicode support**
- **Error handling** with strict/replace/ignore modes

## Installation

```bash
pip install pyurlc
```

Usage

```python
import pyurlc

# Basic encoding/decoding
encoded = pyurlc.encode("Hello World!")
decoded = pyurlc.decode(encoded)

# Quote/Unquote (compatible with urllib.parse)
quoted = pyurlc.quote("test@example.com")
unquoted = pyurlc.unquote(quoted)

# Quote/Unquote with plus signs
quoted_plus = pyurlc.quote_plus("Hello World")
unquoted_plus = pyurlc.unquote_plus(quoted_plus)

# Check if string is encoded
is_encoded = pyurlc.is_encoded("Hello%20World")  # True

# Get performance info
info = pyurlc.performance_info()
```

Performance

String Size pyurlc urllib.parse Speedup
100 chars 0.003s 0.111s 33.7x
1,000 chars 0.028s 0.986s 34.6x
10,000 chars 0.354s 11.049s 31.2x
50,000 chars 1.973s 59.572s 30.2x

Average speedup: 32.4x

License

Apache License 2.0

# Thank you for using my project!
# Goobye!
