connexion VS django-rest-framework

Compare connexion vs django-rest-framework and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
connexion django-rest-framework
23 197
4,423 27,594
0.4% 0.9%
8.2 8.9
4 days ago 7 days ago
Python Python
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of connexion. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-27.
  • Write OpenAPI with TypeSpec
    7 projects | | 27 Mar 2024
    I like the idea, especially the TS-like syntax around enums and union types. I've always preferred the SDL for GraphQL vs writing OpenAPI for similar reasons.

    I echo the sentiment others have brought up, which is the trade-offs of a code-driven schema vs schema-driven code.

    At work we use Pydantic and FastAPI to generate the OpenAPI contract, but there's some cruft and care needed around exposing those underlying Pydantic models through the API documentation. It's been easy to create schemas that have compatibility problems when run through other code generators. I know there are projects such as connexction[1] which attempt to inverse this, but I don't have much experience with it. In the GraphQL space it seems that code-first approaches are becoming more favored, though there's a different level of complexity needed to create a "typesafe" GraphQL server (eg. model mismatches between root query resolvers and field resolvers).


  • Connexion 3 released!
    1 project | /r/flask | 3 Nov 2023
    Connexion is a popular Python web framework (~ 5 million downloads per month) that makes spec-first and api-first development easy. You describe your API in an OpenAPI (or swagger) specification with as much detail as you want and Connexion will guarantee that it works as you specified.
  • Connexion 3.0 Released
    1 project | | 3 Nov 2023
  • Show HN: REST Alternative to GraphQL and tRPC
    8 projects | | 10 Oct 2023
    > While REST APIs don't generally provide the same level of control to clients as GraphQL, many times this could be seen as a benefit especially in scenarios where strict control over data access and operations is crucial.

    Rest is more secure, cacheable, and more performant on the server side as field resolution doesn't need to happen like it does with GraphQL. It is not more performant on the client side, and this is a trade-off, but I favor rest applications over GraphQL ones as a DevOps engineer. They are much easier to administer infrastructure-wise, I can cache the requests, etc.

    Data at our company suggests that several small queries actually do better performance-wise than one large one. We switched to GraphQL a year and a half ago or so, but this piece of data seems to suggest that we might have been better off just sticking with REST. My suggestion to that effect was not met with optimism either on the client or server side. Apparently there are server-side benefits as well, allowing for more modular development or something like that.

    I have used OpenAPI using connexion[1]. It was hard to understand at first, but I really liked that the single source of truth was one schema. It also made it really easy to develop against the API because it came with a UI that showed the documentation for all the rest end points and even had test buttons.


  • Ask HN: Why is there no specification for Command Line Interfaces?
    5 projects | | 27 Feb 2023
    What's the use case? I was thinking about this exact issue because my product ships several CLI tools, but I wasn't convinced it would be worth the effort.

    An OpenAPI specification describes an HTTP interface, and I see it as useful because it makes it easier to write code in language-of-choice to generate HTTP requests (by generating client libraries from the OpenAPI spec).

    For a CLI, the interface is the command-line. Usually people type these commands, or they end up in bash scripts, or sometimes they get called from programming language of choice by shelling out to the CLI. So I could see a use case for a CLI spec, which would make it easier to generate client libraries (which would shell out to the CLI)... but it seems a little niche.

    Or maybe, as input to a documentation tool (like Swagger docs). I would imagine if you're using a CLI library like Python's Click, most of that data is already there. Click Parameters documentation:

    Or maybe, you could start from the spec and then generate code which enforces it. So any changes pass through the spec, which would make it easy to write code (server and client-side) / documentation / changelogs. Some projects like this: Guardrail (Scala) , and Connexion (Python) .

    But without this ecosystem of tooling, documenting your CLI in a specification didn't really seem worth the effort. Of course, that's a bootstrapping problem.

  • Flask is Great!
    3 projects | /r/flask | 4 Feb 2023
    Connexion is a framework on top of Flask that automagically handles HTTP requests defined using OpenAPI/Swagger.
  • What is the best practice for mapping JSON requests to objects and back to JSON?
    2 projects | /r/flask | 25 Jan 2023
    I recommend you create a OpenAPI Specification and implement a python module that you expose via connexion or on the cli via click(for easy testing).
  • Flask-Powered APIs: Fast, Reliable, and Used by the World's Top Companies
    2 projects | /r/flask | 15 Dec 2022
    I'm here because Swagger-CodeGen created flask-Connexion boilerplate for python.
  • Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 1 – Real Python
    3 projects | /r/Python | 15 Nov 2022
  • Does anybody know any good resources I could use to study ISP architecture?
    2 projects | /r/networking | 12 Nov 2022
    Personally we just prov them using librouteros and flask-connexion/openapi.


Posts with mentions or reviews of django-rest-framework. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-27.
  • Ask HN: Is Python async/await some kind of joke?
    4 projects | | 27 Jan 2024
    - Django Rest Framework has no async support?
  • Build and Deploy a URL Shortener using Django REST Framework and Managed Postgres
    2 projects | | 12 Dec 2023
    A URL shortener is a service that transforms long and complex URLs into short, easily memorable ones. This tutorial guides you through creating a URL shortener using Django REST framework and Postgres, deploying it on Koyeb.
  • How can I implement 2FA with Django REST Framework?
    4 projects | /r/django | 29 Sep 2023
    Now, I'm converting this app into a Vue-based SPA (still powered by Django). I'm using the Django REST Framework to build the API that the SPA will interact with. (I'll be using token-based auth, via django-rest-knox. ETA: I'll actually be using djangorestframework-simplejwt.)
  • Creating Own Chat GPT
    9 projects | | 15 Sep 2023
    For the backend, we chose Python, Django Rest Framework. On the frontend, React, Redux, Saga, Sass. Let’s start with the backend, which was managed by Yegor. He writes about the server part of the project himself.
  • Building a Blog in Django
    12 projects | | 12 Sep 2023
    With regard to JSON API aspects of Django, have you used ? I find it to be very satisfactory.
  • A question
    2 projects | /r/django | 4 Aug 2023
    django-rest-framework and the Fetch API, or
  • Exploring Django's Third-Party Packages: Top Libraries You Should Know
    8 projects | | 8 Jul 2023
    Django REST Framework (DRF) Django REST Framework is a famous, powerful, and flexible toolkit for building Web APIs in Django. It provides a set of reusable components and tools to simplify API development, including serialization, authentication, permissions, and view sets.
  • FastAPI 0.100.0:Release Notes
    12 projects | | 7 Jul 2023
    I wish Django would take async more seriously. This comment gives a pretty good overview of the current situation (some points are more valid than others):

    The Python ecosystem is strange. Where other dev communities will embrace new ways of doing things faster than most people can keep up — the Python community needs to be pulled kicking and screaming into the light once ever decade or so. Python 2 to 3, ~10 years.

    async/await has been in Python since 2015, it feels like it's going to be another 5 years before we see people taking async seriously in the big packages. Same problem we had during the 2/3 transition. No library support, no developer support.

  • How to create REST API using Django REST framework
    5 projects | | 29 May 2023
    Thanks for helping Steve to complete his REST API, he is now partying🥳. You can get more information on how to use the Django REST framework to best way read the documentation. There are many alternatives to the Django REST framework, you can give them a try if you want,
  • Composite Class-Based View for non DRF views
    3 projects | /r/django | 29 May 2023
    [Django Rest Framework]( has the very nice idea of a [ViewSet]( that allows really minimal code to perform all the basic CRUD actions on a model.

What are some alternatives?

When comparing connexion and django-rest-framework you can also consider the following projects:

flask-restful - Simple framework for creating REST APIs

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

Flask RestPlus - Fully featured framework for fast, easy and documented API development with Flask

fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production

flasgger - Easy OpenAPI specs and Swagger UI for your Flask API

Dependency Injector - Dependency injection framework for Python

eve - REST API framework designed for human beings

django-tastypie - Creating delicious APIs for Django apps since 2010.

falcon - The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.

django-modern-rpc - Simple XML-RPC and JSON-RPC server for modern Django

Django - The Web framework for perfectionists with deadlines.