django-rest-framework VS Poetry

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
django-rest-framework Poetry
197 377
27,461 29,397
1.0% 2.3%
8.7 9.6
3 days ago 1 day ago
Python Python
GNU General Public License v3.0 or later MIT License
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.

django-rest-framework

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 | news.ycombinator.com | 27 Jan 2024
    - Django Rest Framework has no async support? https://github.com/encode/django-rest-framework/issues/7260
  • Build and Deploy a URL Shortener using Django REST Framework and Managed Postgres
    2 projects | dev.to | 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 | dev.to | 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 | news.ycombinator.com | 12 Sep 2023
    With regard to JSON API aspects of Django, have you used https://www.django-rest-framework.org/ ? 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 | dev.to | 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 | news.ycombinator.com | 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): https://github.com/encode/django-rest-framework/discussions/...

    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 | dev.to | 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](https://www.django-rest-framework.org/) has the very nice idea of a [ViewSet](https://www.django-rest-framework.org/api-guide/viewsets/#modelviewset) that allows really minimal code to perform all the basic CRUD actions on a model.

Poetry

Posts with mentions or reviews of Poetry. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-14.
  • Understanding Dependencies in Programming
    4 projects | dev.to | 14 Apr 2024
    You can manage dependencies in Python with the package manager pip, which comes pre-installed with Python. Pip allows you to install and uninstall Python packages, and it uses a requirements.txt file to keep track of which packages your project depends on. However, pip does not have robust dependency resolution features or isolate dependencies for different projects; this is where tools like pipenv and poetry come in. These tools create a virtual environment for each project, separating the project's dependencies from the system-wide Python environment and other projects.
  • Implementing semantic image search with Amazon Titan and Supabase Vector
    4 projects | dev.to | 5 Apr 2024
    Poetry provides packaging and dependency management for Python. If you haven't already, install poetry via pip:
  • From Kotlin Scripting to Python
    1 project | dev.to | 7 Mar 2024
    Poetry
  • How to Enhance Content with Semantify
    4 projects | dev.to | 2 Mar 2024
    The Semantify repository provides an example Astro.js project. Ensure you have poetry installed, then build the project from the root of the repository:
  • Uv: Python Packaging in Rust
    9 projects | news.ycombinator.com | 15 Feb 2024
    Has anyone else been paying attention to how hilariously hard it is to package PyTorch in poetry?

    https://github.com/python-poetry/poetry/issues/6409

  • Boring Python: dependency management (2022)
    3 projects | news.ycombinator.com | 4 Feb 2024
    Based on this comment 5 days ago[0], it's working? I'm not sure didn't dig in too far but based on that comment it seems fair to say that it's not fully Poetry's fault because torch removed hashes (which poetry needs to be effective) for a while only recently adding it back in.

    Not sure where I would stand if I fully investigated it tho.

    [0] https://github.com/python-poetry/poetry/issues/6409#issuecom...

  • Fun with Avatars: Crafting the core engine | Part. 1
    4 projects | dev.to | 20 Jan 2024
    We will be running this project in Python 3.10 on Mac/Linux, and we will use Poetry to manage our dependencies. Later, we will bundle our app into a container using docker for deployment.
  • Python Packaging, One Year Later: A Look Back at 2023 in Python Packaging
    2 projects | news.ycombinator.com | 16 Jan 2024
    Here are the two main packaging issues I run into, specifically when using Poetry:

    1) Lack of support for building extension modules (as mentioned by the article). There is a workaround using an undocumented feature [0], which I've tried, but ultimately decided it was not the right approach. I still use Poetry, but build the extension as a separate step in CI, rather than kludging it into Poetry.

    2) Lack of support for offline installs [1], e.g. being able to download the dependencies, copy them to another machine, and perform the install from the downloaded dependencies (similar to using "pip --no-index --find-links=."). Again, you can work around this (by using "poetry export --with-credentials" and "pip download" for fetching the dependencies, then firing up pypiserver [2] to run a local PyPI server on the offline machine), but ideally this would all be a first class feature of Poetry, similar to how it is in pip.

    I don't have the capacity to create Pull Requests for addressing these issues with Poetry, and I'm very grateful for the maintainers and those who do contribute. Instead, on the linked issues I share my notes on the matter, in the hope that it may at least help others and potentially get us closer to a solution.

    Regardless, I'm sticking with Poetry for now. Though to be fair, the only other Python packaging tools I've used extensively are Pipenv and pip/setuptools. It's time consuming to thoroughly try out these other packaging tools, and is generally lower priority than developing features/fixing bugs, so it's helpful to read about the author's experience with these other tools, such as PDM and Hatch.

    [0] https://github.com/python-poetry/poetry/issues/2740

    [1] https://github.com/python-poetry/poetry/issues/2184

    [2] https://pypi.org/project/pypiserver/

  • Introducing Flama for Robust Machine Learning APIs
    11 projects | dev.to | 18 Dec 2023
    We believe that poetry is currently the best tool for this purpose, besides of being the most popular one at the moment. This is why we will use poetry to manage the dependencies of our project throughout this series of posts. Poetry allows you to declare the libraries your project depends on, and it will manage (install/update) them for you. Poetry also allows you to package your project into a distributable format and publish it to a repository, such as PyPI. We strongly recommend you to learn more about this tool by reading the official documentation.
  • How do you resolve dependency conflicts?
    1 project | /r/learnpython | 10 Dec 2023
    I started using poetry. The problem is poetry will not install if there is dependency conflict and there is no way to ignore: github

What are some alternatives?

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

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

Pipenv - Python Development Workflow for Humans.

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

PDM - A modern Python package and dependency manager supporting the latest PEP standards

Dependency Injector - Dependency injection framework for Python

hatch - Modern, extensible Python project management

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

pyenv - Simple Python version management

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

pip-tools - A set of tools to keep your pinned Python dependencies fresh.

Django - The Web framework for perfectionists with deadlines.

virtualenv - Virtual Python Environment builder