Giter VIP home page Giter VIP logo

django-adapters's Introduction

Django adapters

The Python API for Django's forms framework was designed over 10 years ago. It's a beautiful declarative API which proved so popular it has been copied by many other Django (and Python) projects, such as Django Rest Framework and Marshmallow. Unfortunately, it suffers from a few major weaknesses. Most notably, the declarative API makes it hard and ugly to customize on a per-request basis, and the resulting object is deeply nested and entangled. This makes it hard to introspect, and hard to swap certain layers of the process.

We intend to change the fundamental architecture of forms and serializers, creating a new type of serializer with a flexible approach to its construction, and baked in introspectability and composability as the main design goals. We aim to continue to keep a simple programming interface for simple tasks, but make it easier to take the pieces apart and put them back together in your own way. This will make more advanced features easier to build. Examples include: forms which interact with multiple models, inline forms, GraphQL style APIs, shared logic between HTML forms and JSON APIs, client side mirrored validation, and self-describing APIs.

django-adapters's People

Contributors

mjtamlyn avatar moritzs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.