DjBurger
![DjBurger logo](https://github.com/orsinium-archive/djburger/raw/master/wiki/source/imgs/logo.png)
![License](https://img.shields.io/pypi/l/djburger.svg)
DjBurger -- framework for safe and maintainable web-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
- Validation logic is separate from the main logic.
- Reusable logic for many views.
- Reusable input and output data formats.
- More clean views.
Dataflow
- Decorators. Feel free to use any side Django decorators like
csrf_exempt
.
- Parser. Parse request body.
- PreValidator. Validate and clear request.
- PreRenderer. Render and return PreValidation errors response.
- Controller. Main logic: do some things.
- PostValidator. Validate and clear response.
- PostRenderer. Render and return PostValidation errors response.
- Renderer. Render successful response.
![Scheme](https://github.com/orsinium-archive/djburger/raw/master/wiki/source/imgs/scheme.png)
Required only Controller and Renderer.
Explore
- Read documentation.
- See example project.
- For quick help just inspect djburger from python console (for example,
help('djburger.views')
).
- If you have some questions then view issues or create new.
- If you found some mistakes then fix it and create Pull Request. Contributors are welcome.
- Star this project on github :)