Skip to content

Show HN: Django-Modern-Rest

github.com/wemake-services
6 pointssobolevn2 comments
On HN

Hi, my name is Nikita Sobolev, I am a CPython core dev, Django Software Foundation member, and maintainer of countless Python / Django opensource tools.

Now I am happy to present to you my new project.

Docs: https://django-modern-rest.rtfd.io/ Code: https://github.com/wemake-services/django-modern-rest/

Features:

- No AI slop, but built for the LLM era.

- Blazingly fast.

- Supports Django >= 4.2

- Supports `pydantic2`, `msgspec`, `attrs`, `dataclasses`, `TypedDict` as model schemas, but not bound to any of these libraries.

- Supports async Django without any `sync_to_async` calls inside, tested to work with free-threading builds.

- Fully typed and checked with `mypy`, `pyright`, and `pyrefly` in strict modes.

- Supports content negotiation, has default implementations for `json`, `msgpack`, SSE, Json Lines, and more.

- Strict schema validation of both requests and responses, including errors.

- Supports OpenAPI 3.1 / 3.2 semantic schema generation out of the box.

- Supports all your existing `django` primitives and packages, no custom runtimes.

- Great testing tools with `schemathesis`, `polyfactory`, `tracecov`, bundled `pytest` plugin, and default Django's testing primitives.

- 100% test coverage with 2000+ of carefully designed unit, integration, and property-based tests.

- High security standards.

- Built by the community for the community, not a single-person project.

- Great docs.

Comments

I still remember 3-4 years back I built my entire stack of my first startup using Django. There were two platforms, Flask and Django, and everyone at that time suggested I go with Django. I still have a lot of good memories with Django. If I go to my GitHub, there are like 20 different projects right now which were made using Django.

Honestly, I kind of forgot the name because of the LLM rush and everything around, but this is so good. Coming across brought back a lot of memories. Thank you for that, and yes, I will check out the entire project. It looks good.

<3

I also have a very warm relationship with Django. I used it for my first ever Python project back in 2010. And it made me to ditch Java and come to Python land. Great memories!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.