2020-12 Typing django-ninja + HOTWire (html-over-the-wire)

HOTWire (html-over-the-wire

You can write fast, modern, responsive web applications by generating your HTML on the server, and delivering that (with a little help) directly to the browser.

You don’t need JSON as an in-between format.

You don’t need client-side MVC frameworks.

You don’t need complicated bundling and transpiling pipelines.

But you do need to think different.

Because the mainstream story in web development of the past decade or so has been one of JavaScript all the things! Let’s use it on the server! Let’s use it on the client! Let’s have it generate all the HTML dynamically!

And, really, it’s pretty amazing that you really can do all that. JavaScript has come an incredibly long way since the dark ages of Internet Explorer’s stagnant monopoly.

But just because you can, doesn’t mean you should .

The price for pursuing JavaScript for everything has been a monstrosity of modern complexity. Yes, it’s far more powerful than it ever was. But it’s also far more convoluted and time-consuming than is anywhere close to reasonable for the vast majority of web applications.

https://discuss.hotwire.dev

django-unicorn

django-ninja Fast, Async-ready, Openapi, type hints based framework for building APIs

Django Ninja is a web framework for building APIs with Django and Python 3.6+ based type hints.

Key features

  • Easy: Designed to be easy to use and intuitive.

  • Fast: Very high performance thanks to Pydantic and async support.

  • Fast to code: Type hints and automatic docs let’s you focus only on business logic.

  • Standards-based: Based on the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.

  • Django friendly: (obviously) have good integration with Django core an ORM.

  • Production ready: Used by multiple companies on live projects (If you use django-ninja and would like to publish your feedback - please email to ppr . vitaly @ gmail . com )