Metadata-Version: 2.4
Name: clarax-django
Version: 1.0.1
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.0
Classifier: Framework :: Django :: 5.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
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 :: Rust
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: django>=4.2
Requires-Dist: pytest>=7.0 ; extra == 'dev'
Requires-Dist: pytest-django>=4.5 ; extra == 'dev'
Requires-Dist: djangorestframework>=3.14 ; extra == 'drf'
Provides-Extra: dev
Provides-Extra: drf
Summary: Rust-accelerated Django serialization, validation, and field mapping
Author: Abdulwahed Mansour
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://github.com/abdulwahed-sweden/clarax#readme
Project-URL: Homepage, https://github.com/abdulwahed-sweden/clarax
Project-URL: Repository, https://github.com/abdulwahed-sweden/clarax

# clarax-django

**Rust-accelerated serialization for Django REST Framework.**

One mixin. Same serializer. 33x faster.

```bash
pip install clarax-django
```

```python
# settings.py
INSTALLED_APPS = [..., "django_clarax"]
```

```python
# your serializer
from django_clarax.serializers import RustSerializerMixin

class MySerializer(RustSerializerMixin, serializers.ModelSerializer):
    class Meta:
        model = MyModel
        fields = "__all__"
```

Not sure which serializers benefit? Run the audit:

```bash
python manage.py clarax_doctor
```

Serialize 1,000 records: 475ms with DRF, 14ms with ClaraX. Validate 1,000 records: 506ms with DRF, 10ms with ClaraX.

Requires Python 3.11+ and Django 4.2+. Supports Python 3.14t (free-threading).

Read the [full story](https://github.com/abdulwahed-sweden/clarax#readme) for benchmarks, architecture, and the decision guide.

MIT -- [Abdulwahed Mansour](https://github.com/abdulwahed-sweden)

