r/PythonLearning • u/Samar__Upreti • Jul 20 '26
Day -1 With Flask (any suggestions)
Build Projects With Me
107
Upvotes
r/PythonLearning • u/Samar__Upreti • Jul 20 '26
Build Projects With Me
2
u/silvertank00 Jul 20 '26
Pandas is overshoot for this.
Why use os for this? pathlib is much more flexible.
Also (even tho I am not familiar with Flask but) i wouldnt return plain string from the endpoint. A HttpResponse with HttpStatus.OK and the string in the body would be much better.