Framework for views in big projects on Django.
Project description
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file djburger-0.10.1.tar.gz
.
File metadata
- Download URL: djburger-0.10.1.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2226fd8c39416c67673b2bc9ea5223c3b0ff6313e31d7b72737d8ec0a36fd281 |
|
MD5 | ab8f93dc100361d89fa1675e02fa03fd |
|
BLAKE2b-256 | bb12a8fb42d4aeee0327f7e7df4a3a52e1d48b4db6c35d886d950436d7b3b829 |