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.11.1.tar.gz
.
File metadata
- Download URL: djburger-0.11.1.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a3f9138eaf5b920a3ddc4f3b5123a1ae165dcd1ec6e580553f7af11995c6498 |
|
MD5 | cd46298d7b2e786a7ceaea5fb69428e2 |
|
BLAKE2b-256 | 15f5351bd351aefdbcee79ba12d05350597342f8b4ad536b9ebb0c3782783e4f |