Skip to main content

Framework for views in big projects on Django.

Project description

DjBurger logo

DjBurger logo

Build Status Documentation PyPI version Status Code size License

DjBurger – framework for big Django projects.

What DjBurger do?

  • Split Django views into steps for secure and clean code.

  • Provide built-in objects for all steps.

  • Integrates this many side libraries like Django REST Framework and Marshmallow.

DjBurger doesn’t depend on Django. You can use it in any projects if you want.

Read more into documentation.

Key principles

  1. Validation logic is separate from the main logic.

  2. Reusable logic for many views.

  3. Reusable input and output data formats.

  4. More clean views.

Dataflow

  1. Decorators (d). Feel free to use any side Django decorators like csrf_exempt.

  2. Parser (p). Parse request body.

  3. PreValidator (prev). Validate and clear request.

  4. PreRenderer (prer). Render and return PreValidation errors.

  5. Controller (c). Main logic: do some things.

  6. PostValidator (postv). Validate and clear response.

  7. PostRenderer (postr). Render and return PostValidation errors.

  8. Renderer (r). Render successful response.

Scheme

Scheme

Required only Controller and Renderer.

Explore

  1. Read documentation.

  2. See example project.

  3. For quick help just inspect djburger from python console (for example, help('djburger.views')).

  4. If you have some questions then view issues or create new.

  5. If you found some mistakes then fix it and create Pull Request. Contributors are welcome.

  6. Star this project on github :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djburger-0.9.0.tar.gz (16.6 kB view details)

Uploaded Source

File details

Details for the file djburger-0.9.0.tar.gz.

File metadata

  • Download URL: djburger-0.9.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for djburger-0.9.0.tar.gz
Algorithm Hash digest
SHA256 8e841d4aa710910b2892766f8373aed8138e3f62af71bf830524040482f06be8
MD5 0ab420378fbede2bd8562146880ac6d8
BLAKE2b-256 ca6709459e697b10f879883c7458b1ccff26407287aab1bfdf6039ad22e7e741

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page