django-magicapi: Automate Django REST Framework API Setup

I just published my first Django package: django-magicapi While working on backend projects, I noticed I kept doing the same repetitive setup every time I built APIs with Django REST Framework - writing serializers, viewsets, routers, pagination, permissions, admin registrations, docs setup, etc. At first, I didn’t think much of it because it felt like part of the process. But after repeating it across multiple projects, it started feeling unnecessary. So during my free time, I decided to build something that could automate that process. That turned into django-magicapi - a package that generates production-ready DRF APIs from your existing Django models with one command: python manage.py magicapi --app yourapp It currently handles: Serializers Viewsets Routers API versioning Pagination Permissions Django admin registration Swagger/ReDoc docs Cleanup support This was also my first time publishing a package to PyPI, so I learned a lot while building it - from packaging to making sure the generated code is safe and customizable. Honestly, it feels great to build something that solves a problem I kept facing myself. It’s now live on PyPI and GitHub: PyPI: https://lnkd.in/gir_Y8x6 GitHub: https://lnkd.in/gwFnNq86 If you try it out and run into any bugs, feel free to message me. I’ll keep improving it and adding more features based on feedback. Would love to hear what you think. #Python #Django #OpenSource #BackendDevelopment #DjangoRESTFramework

  • graphical user interface, application

Great job. I understand how much work you had to put into it. I also deployed one last month for Tenantbox a multi tenant file storage for developers. https://pypi.org/project/tenantbox/ Per-tenant file storage is the future of file storage.

That's a very useful package sir, thank you so much. 🫡

I will definitely try, worth to try, great job it's helpful 👍🙂

Interesting to see that you are trying to play safe with the DRY principle in DRFWell done Prashant Karna

Wow, this is really impressive. I’d love to try out this django package sir. Great work sir 👏

See more comments

To view or add a comment, sign in

Explore content categories