I want to use JSON serilization in my aiohttp.web
application. But I haven't found any libraries for that task in aiohttp
universe.
If there are any problem to use serilizers from django-rest-ramework
with aiohttp
?
Django REST framework is very closely tied to django itself. You could probably hack a setup where you were able to use a little of DRF with aiohttp but you would obviously lose most of what DRF does: routing, db/model integration, views, viewsets, authentication.
Much better to use one of the many other serialization and deserialization libraries available in python. I would recommend pydantic (admission: I developed pydantic), but there are loads of other such libraries.
The power of DRF comes from it's completeness and first class integration with django. Without that it's not a good choice. It's also very slow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With