Django-Styleguide
granian
Django-Styleguide | granian | |
---|---|---|
29 | 15 | |
4,589 | 2,043 | |
1.7% | 3.9% | |
4.7 | 9.2 | |
9 days ago | 5 days ago | |
Python | Rust | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Django-Styleguide
-
Django project structure
There are alternatives, such as HackSoft's Django style guide, but fat models, thin views is usually good enough.
-
Django Views – The Right Way
I think this is a great resource. The only comment I have is on the Thin Views chapter. Instead of attaching logic to the models, I like to make a services.py file in my app that has functions that satisfy all sorts of business logic.
Here's another opinionated Django guide: https://github.com/HackSoftware/Django-Styleguide if anyone's interested
-
Django github projects
you can follow the Django Style Guide by Hacksoft. They have awesome style guide for you on github https://github.com/HackSoftware/Django-Styleguide
- I'd like to look at well written Django projects.
-
DRF + React
I would also recommend taking a look at HackSoftware's django styleguide repo. I found applicable. You don't have to follow it religiously (or at all) but still brings up some good food for thought.
-
How do you Manage Orchestration in semi-complex apps?
I've read from Django Styleguide, Two Scoops of Django, Django for Startups, Still No Service, and a few threads even here in this subreddit (they largely reference above).
-
Learning Django as a non-beginner code/python
Perhaps the Django style guide is suitable? It definitely isn't a basic tutorial but perhaps it's too advanced? https://github.com/HackSoftware/Django-Styleguide
-
Has anybody implemented clean architecture in a Django application?
well Django encourages you to tightly couple your django code with your views but even I do not like that way of doing it. So what I had started following HackSoft's Django styleguide - https://github.com/HackSoftware/Django-Styleguide to write my Django code.
-
This Week In Python
Django-Styleguide – Django styleguide used in HackSoft projects
- Django Styleguide
granian
-
Improving Interoperability Between Rust and C++
Yeah, PyO3 is great. I've tried to play around with releasing the GIL from rust in Python 3.12. I would enjoy writing a WSGI/ASGI server with a Celery runtime at some point too. Or contribute to Granian.
https://github.com/emmett-framework/granian
- RSGI Specification
- Granian 1.0 Is Out
- Granian HTTP server - Open call for core contributors/maintainers
- Robyn introduces SubRouters in v0.32.0
-
Robyn: a fast and extensible async Python web server with a Rust runtime
Recently I found this ASGI compatible server written in rust, but i haven’t tried it yet https://github.com/emmett-framework/granian
-
Granian – a Rust HTTP server for Python applications
Looks super interesting. One of the things that I wanted to improve on are Gunicorn's latency and here:
https://github.com/emmett-framework/granian/tree/master/benc...
What are some alternatives?
very_good_cli - A Very Good Command-Line Interface for Dart created by Very Good Ventures 🦄
uvicorn - An ASGI web server, for Python. 🦄
awesome-django - A curated list of awesome things related to Django
Robyn - Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
django-api-domains - A pragmatic styleguide for Django API Projects
evue - Evue is a high-performance gui framework base an html/css which can run on windows/linux/macos/web/ios/andriod/rtos! Write once, run everywhere! .
spinach - Modern Redis task queue for Python 3
aioquic - QUIC and HTTP/3 implementation in Python
import-linter - Import Linter allows you to define and enforce rules for the internal and external imports within your Python project.
django-http3-example - Example Repo of Django using HTTP/3
django-readers - A lightweight function-oriented toolkit for better organisation of business logic and efficient selection and projection of data in Django projects.
hypercorn - Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.