Metadata-Version: 2.4
Name: python-snappy-pure
Version: 0.2.0
Summary: Pure Python Snappy compression and decompression
Project-URL: Homepage, https://github.com/Valmarelox/python-snappy
Project-URL: Repository, https://github.com/Valmarelox/python-snappy
License-Expression: MIT
License-File: LICENSE
Keywords: compression,decompression,snappy
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
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: Topic :: System :: Archiving :: Compression
Requires-Python: >=3.10
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == 'test'
Requires-Dist: python-snappy>=0.6; extra == 'test'
Description-Content-Type: text/markdown

# python-snappy

Pure Python Snappy compression and decompression library.

## Features

- Pure Python implementation - no C dependencies required
- Full compression and decompression support
- Supports all Snappy element types: literals and copy operations
- Handles 1-byte, 2-byte, and 4-byte offset copies

## Installation

```bash
uv add python-snappy-pure
```

Or with pip:
```bash
pip install python-snappy-pure
```

## Usage

```python
from python_snappy import compress, decompress

# Compress data
data = b"Hello, World!" * 100
compressed = compress(data)

# Decompress data
decompressed = decompress(compressed)
assert decompressed == data
```

## Limitations

- Performance is slower than C-based implementations

For production use with large data, consider using the `python-snappy` package from PyPI which wraps the C library.

## Development

```bash
uv sync --extra test
uv run pytest
```

## License

MIT
