Tech stack for Python aurweb

Ricardo Band email at ricardo.band
Sun May 24 18:38:11 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Mon, 2020-05-18 at 17:49 -0400, Lukas Fleischer wrote:
> 
> Everybody involved in these efforts seemed to prefer Flask [1] so
> far.
> It's a mature micro framework and has a relatively low barrier of
> entry.

I'm a python programmer for a while now and I really like the small
size and simplicity of Flask. But let me give you one advice here.
If you're dealing with a more complex application Flask tends to become
more complex and very hard to manage. All of a sudden you integrate
about 10 Flask addons. Some of them are not well maintained. Some
droppen support for others etc.
You have to manage all those dependencies.

Personally I prefer Django in more complex projects as it comes with
everything included. You rarely have to add something to your
dependencies.
I never understodd the argument about it being too big or heavy. Under
normal workloads you don't see any difference. Yes Flasks anwsers a few
100 more requests per minute then Django, but is really important to
your project? And even if it is, can't you just spawn another instance
of it?

My personal rule of thumb is to use Flask for everything simple. When
users are involved it immediatly becomes complex and I switch to
Django.

So for example a small API without user database is good job for flask.
A blog like app where I have to deal with users, registrations etc is a
good job for Django.

- -- 

Greetings

Ricardo Band

 https://   www.ricardo.band
mailto:// email at ricardo.band
  xmpp://jabber@ricardo.band
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEhyzgFNiV8yZuI1T5Gp1lfQa1gg4FAl7KvxMACgkQGp1lfQa1
gg6Nig//R57GeMhSnux2yqwJs1fJCNwot3tQJMdWTBBsYKAlEq/cEcONsoynDlRR
0TilISlsECN2T4GkdDk5aQGcacgx2CPvdlaBhDCbDd7ik7fjaU+g+/3itt7bduwy
qIW83QndTNFAQh+dZO2LX1nzQIb0woPbrNTvA4yuDkoa4zNDQgqayBHP9AKsjvK+
3qDSy2R2DsnvsXpJcppnGX5uk4q/3HL5AGBWTdO+FFidGwLVAFC4S3RTI2ptbSqL
rsHccogOyA9ytTrKV3sILM2ryqVaQIsJUVfST3eyY3uxdnYqiCZEk+LPZdBZDsFU
guyq4VfmLDgMvmMa+fCYwb5K3noXcgJtu0RBtFlfQYRKsXUmJioPwJzZu8uRPaGh
LTbIPFI+4xqvDF93e2k0sI3zk88ZKVI5sHAohcAE1vghdha3sngsqZTzCR6mllWv
QzyEUzyg4CfLAg2fEJeCYIqj3rviL/jonZYbp7rdeBlB6VMcDgLNj1f8d4RETI/e
yE0LagwoEkgWFJ8IQV+AabmdsoRBX/XMObjPRolkKK7WlHNWRLsdiS1vY71JTVA0
wi9PhkRsqL2Kt1hLYK1MQk9golZ8ptvhtKYGtLdKEyIPRcoUrHgQyeH8LK8e1hTi
fgfSCRDydA/k2LFlO0H7xub+5QV+P5+9lnxxIQwG7qbuqyl1gRk=
=3c1A
-----END PGP SIGNATURE-----


More information about the aur-dev mailing list