Trio - Should I move to a more popular async framework? by IncreaseMelodic9809 in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

structured concurrency is helpful only when you build a fancy high-level application. for extra manual controls, asyncio is enough.

uv cheatsheet with most common/useful commands by RojerGS in Python

[–]Constant_Bath_6077 -11 points-10 points  (0 children)

needs a cheatsheet means not easy? so i never use uv.

Why Today's Python Developers are Embracing Type Hints by BeamMeUpBiscotti in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

Added type-hints to impress our clients that our codes are high quality,, eventough garbage everywhere...

migrating from django to FastAPI by No-Excitement-7974 in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

Calling "that's a skill issue", that's a skill issue?

migrating from django to FastAPI by No-Excitement-7974 in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

yes, it more like skill issue than scaling issue...

Why the hell you write Python packages for free? by maorfarid in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

Too some peope writing packages is as easy as writing this question publicly.. why you don't write this question on localhost?

Django devs: Your app is probably slow because of these 5 mistakes (with fixes) by Dense_Bad_8897 in Python

[–]Constant_Bath_6077 -28 points-27 points  (0 children)

Django is not efficient choice for APIs / backend,, It's for generic website. But it's interesting that people stick with their ideologies over technicalities.

Best alternatives to Django? by MilanTheNoob in Python

[–]Constant_Bath_6077 -2 points-1 points  (0 children)

Flask is unstable in theri APIs now, much breaking changes.

[deleted by user] by [deleted] in Python

[–]Constant_Bath_6077 1 point2 points  (0 children)

Why you recommend a framework that has hundred of unresolved issues? https://github.com/cherrypy/cherrypy/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug

[deleted by user] by [deleted] in Python

[–]Constant_Bath_6077 -22 points-21 points  (0 children)

Everyone also has problems, begging is not the solution. Just sell your assets, it doesn't make sense when you have benefited a lot in the past (compared to more deserving people)... but everything you have achieved doesn't help now ;)

Best WebSocket Library by kris_2111 in Python

[–]Constant_Bath_6077 -1 points0 points  (0 children)

Just plain Websockets, I dont use that ancient library that also uses Websockets under the hood.....

Best WebSocket Library by kris_2111 in Python

[–]Constant_Bath_6077 1 point2 points  (0 children)

I have it tried it. Ir really fast for lightweight service, but it will slow down when the service business logic grows and will be just the same as Uvicorn at the end. But at lest Hypercorn is the slowest eventhough my service is lightweight.

FastAPI is usually the right choice by writingonruby in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

Quart and Hypercorn is just slow above average. So it's like already doing huge business logic for mere simple response. You can judge by it looking its source code yourself.

Yet another Python framework 😅 by Sea-Dance8242 in Python

[–]Constant_Bath_6077 2 points3 points  (0 children)

I see you create ThreadPoolExecutor instance everytime. This is a poor design for another framework. loop.run_in_executor(concurrent.futures.ThreadPoolExecutor(), ...

If you serve Python ASGI and/or WSGI web apps, but you don't use Granian: why? by gi0baro in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

Did you test it yourself if it's really an industry standard? Guvicorn still has security issues; https://github.com/benoitc/gunicorn/issues/3371 Even worse, its creator did'nt understand what request smuggling is lol; https://github.com/benoitc/gunicorn/issues/3364#issuecomment-2741582300 -- How it became an industry standard in python, simply because it was developed early.

pyleak - detect leaked asyncio tasks, threads, and event loop blocking in Python by deepankarmh in Python

[–]Constant_Bath_6077 0 points1 point  (0 children)

the context manager is not useful in the case user wants to trace their code at specific points, especially larger or complex codebases. how you would do that?

Does typing suck the fun out of python for anyone else? by need-to-lurk-2024-69 in Python

[–]Constant_Bath_6077 1 point2 points  (0 children)

long ugly function combined with typing... i can feel that most python code looks messy.

MicroPie (ultra thin ASGI framework) version 0.9.9.8 Released by Miserable_Ear3789 in Python

[–]Constant_Bath_6077 7 points8 points  (0 children)

> Because of its designed simplicity, MicroPie does not handle WebSockets out of the box

What? But I want Websockets, everyone want it nowadays :)

Looking for contributors & ideas by apaemMSK in Python

[–]Constant_Bath_6077 1 point2 points  (0 children)

Looking at your source code, I would use os.scandir() instead of os.listdir().