For those doing fullstack freelancing with Flask...
Hello! I am a Flask developer and I've got some curiosities!
For those of you who are doing freelance using Flask, I have a few questions :
\-Are you building every site you make from scratch? Or you are using templates? For example, if someone asks you to build them a forum, you use a previously built one as a base and remodel on it or rebuild it from scratch? Do you create your own templates or copy projects from Git?
\-What other technologies do you combine with Flask? What do you prefer to use for databases if the client doesn't have a preference on that?
\-What do you use on front-end and why?
\-Do you use vanilla CSS or frameworks? Why?
\-Have you ever run in a situation where Flask can't do something?
\-What is your favorite cloud provider for uploading/hosting the website?
/r/flask
https://redd.it/1cccogm
Hello! I am a Flask developer and I've got some curiosities!
For those of you who are doing freelance using Flask, I have a few questions :
\-Are you building every site you make from scratch? Or you are using templates? For example, if someone asks you to build them a forum, you use a previously built one as a base and remodel on it or rebuild it from scratch? Do you create your own templates or copy projects from Git?
\-What other technologies do you combine with Flask? What do you prefer to use for databases if the client doesn't have a preference on that?
\-What do you use on front-end and why?
\-Do you use vanilla CSS or frameworks? Why?
\-Have you ever run in a situation where Flask can't do something?
\-What is your favorite cloud provider for uploading/hosting the website?
/r/flask
https://redd.it/1cccogm
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
What are your favourite pre-commit hooks and why?
Just getting started with pre-commit and I think it's awesome. Looking to find out what other code automation tools people are using. Let me know what works for you and why. Thanks!
/r/Python
https://redd.it/1cc9wtr
Just getting started with pre-commit and I think it's awesome. Looking to find out what other code automation tools people are using. Let me know what works for you and why. Thanks!
/r/Python
https://redd.it/1cc9wtr
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Python Interview Cheat Sheet Website!
Hey everyone,
Iβve recently launched a new website aimed at helping fellow programmers ace their Python interviews. Itβs not just limited to Python though; it also covers essential topics like big-O notation, object-oriented programming, design patterns, and more!
Iβd love to hear your thoughts and feedback on the content, layout, and anything else you think could be improved.
Check it out here https://hlop3z.github.io/interviews-python/ and let me know what you think. Your input is invaluable in making this resource the best it can be. Thanks in advance for your time and insights! ππ
Note: Itβs mainly to be used in a computer or tablet. You can see it in your mobile, but the python section wonβt look as intended.
/r/Python
https://redd.it/1cckeip
Hey everyone,
Iβve recently launched a new website aimed at helping fellow programmers ace their Python interviews. Itβs not just limited to Python though; it also covers essential topics like big-O notation, object-oriented programming, design patterns, and more!
Iβd love to hear your thoughts and feedback on the content, layout, and anything else you think could be improved.
Check it out here https://hlop3z.github.io/interviews-python/ and let me know what you think. Your input is invaluable in making this resource the best it can be. Thanks in advance for your time and insights! ππ
Note: Itβs mainly to be used in a computer or tablet. You can see it in your mobile, but the python section wonβt look as intended.
/r/Python
https://redd.it/1cckeip
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
UXsim 1.2.0 released with support for (self-driving) taxis and shared mobility
[Version 1.2.0](https://github.com/toruseo/UXsim/releases/tag/v1.2.0) of UXsim is released, which allows simulating taxis, shared mobility and self-driving taxis!
**Main Changes in 1.2.0**
* Add taxi (aka. shared mobility) functions
* A standard vehicle in UXsim just travel from A to B and disappear. This is like a private owned vehicle.
* From this update, a Vehicle with mode="taxi" behave like a taxi. Specifically, they travel through a network by passing through specific nodes that are dynamically updated, simulating passenger pickup and drop-off.
* New sub-module uxsim.TaxiHandler handles these matters.
* Built-in vehicle-to-passneger matching methods are also available.
* This addresses Issue #41
* From now on, we follow the Semantic Versioning rigorously.
**UXsim**
[UXsim](https://github.com/toruseo/UXsim) is a free, open-source macroscopic and mesoscopic network traffic flow simulator written in Python. It simulates the movements of car travelers and traffic congestion in road networks. It is suitable for simulating large-scale (e.g., city-scale) traffic phenomena. UXsim is especially useful for scientific and educational purposes because of its simple, lightweight, and customizable features, but users are free to use UXsim for any purpose.
/r/Python
https://redd.it/1ccmzr8
[Version 1.2.0](https://github.com/toruseo/UXsim/releases/tag/v1.2.0) of UXsim is released, which allows simulating taxis, shared mobility and self-driving taxis!
**Main Changes in 1.2.0**
* Add taxi (aka. shared mobility) functions
* A standard vehicle in UXsim just travel from A to B and disappear. This is like a private owned vehicle.
* From this update, a Vehicle with mode="taxi" behave like a taxi. Specifically, they travel through a network by passing through specific nodes that are dynamically updated, simulating passenger pickup and drop-off.
* New sub-module uxsim.TaxiHandler handles these matters.
* Built-in vehicle-to-passneger matching methods are also available.
* This addresses Issue #41
* From now on, we follow the Semantic Versioning rigorously.
**UXsim**
[UXsim](https://github.com/toruseo/UXsim) is a free, open-source macroscopic and mesoscopic network traffic flow simulator written in Python. It simulates the movements of car travelers and traffic congestion in road networks. It is suitable for simulating large-scale (e.g., city-scale) traffic phenomena. UXsim is especially useful for scientific and educational purposes because of its simple, lightweight, and customizable features, but users are free to use UXsim for any purpose.
/r/Python
https://redd.it/1ccmzr8
GitHub
Release v1.2.0 - Taxi (shared mobility) update Β· toruseo/UXsim
Main changes
Add taxi (aka. shared mobility) functions
A standard vehicle in UXsim just travel from A to B and disappear. This is like a private owned vehicle.
From this update, a Vehicle with mo...
Add taxi (aka. shared mobility) functions
A standard vehicle in UXsim just travel from A to B and disappear. This is like a private owned vehicle.
From this update, a Vehicle with mo...
Adding table to product model
Can I add a table to the model of my product? I want it so it can show a certain characteristic of the product in goo alignment. It would would have an uncertain number of lines with 3 columns.
/r/django
https://redd.it/1ccvip2
Can I add a table to the model of my product? I want it so it can show a certain characteristic of the product in goo alignment. It would would have an uncertain number of lines with 3 columns.
/r/django
https://redd.it/1ccvip2
Reddit
From the django community on Reddit
Explore this post and more from the django community
how to implement django template with react js ?
can i implement django template with react js without building the react js into production and also without django rest frameworks just using react js code as a template.
/r/django
https://redd.it/1ccxp7t
can i implement django template with react js without building the react js into production and also without django rest frameworks just using react js code as a template.
/r/django
https://redd.it/1ccxp7t
Reddit
From the django community on Reddit
Explore this post and more from the django community
D Why transformers are not trained layer-wise?
It seems to me that thanks to the residual path the gradient that flows to each layer is the same regardless of the transformer layer/block. Example:
ProjectionAndCost(X + L1(X) + L2(X + L1(X)) + L3(X + L1(X) + L2(X + L1(X))) ...)
Since the input to ProjectionAndCost is just sum of outputs from all layers and initial embeddings then the gradient that comes to the layer L1 is the same as the gradient that comes to L2 or L3.
So we could:
first train only L1: ProjectionAndCost(X + L1(X))
freeze L1, include L2 and train: ProjectionAndCost(X + L1(X) + L2(X + L1(X)))
freeze L1 and L2, include L3 and train: ProjectionAndCost(X + L1(X) + L2(X + L1(X)) + L3(X + L1(X) + L2(X + L1(X))))
.. and so on
We can't train first L2 then L1, because the input to L2 depends on L1, but we could train lower layers first then gradually add and train deeper layers. Is there any problem with that approach?
/r/MachineLearning
https://redd.it/1cct38r
It seems to me that thanks to the residual path the gradient that flows to each layer is the same regardless of the transformer layer/block. Example:
ProjectionAndCost(X + L1(X) + L2(X + L1(X)) + L3(X + L1(X) + L2(X + L1(X))) ...)
Since the input to ProjectionAndCost is just sum of outputs from all layers and initial embeddings then the gradient that comes to the layer L1 is the same as the gradient that comes to L2 or L3.
So we could:
first train only L1: ProjectionAndCost(X + L1(X))
freeze L1, include L2 and train: ProjectionAndCost(X + L1(X) + L2(X + L1(X)))
freeze L1 and L2, include L3 and train: ProjectionAndCost(X + L1(X) + L2(X + L1(X)) + L3(X + L1(X) + L2(X + L1(X))))
.. and so on
We can't train first L2 then L1, because the input to L2 depends on L1, but we could train lower layers first then gradually add and train deeper layers. Is there any problem with that approach?
/r/MachineLearning
https://redd.it/1cct38r
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
HELP CORS / ERROR
​
https://preview.redd.it/ffgya7fxnowc1.png?width=1093&format=png&auto=webp&s=76d42d220d9aecc5211566be9b807d3191f80988
https://preview.redd.it/z9usuf8ynowc1.png?width=670&format=png&auto=webp&s=82558e369a1a74182e83f7c91706ed837bdfebfb
https://preview.redd.it/oox3y1eznowc1.png?width=670&format=png&auto=webp&s=9f147e5df408a18b3b2f5222ed66ea62d2a3ee98
/r/flask
https://redd.it/1cd1edn
​
https://preview.redd.it/ffgya7fxnowc1.png?width=1093&format=png&auto=webp&s=76d42d220d9aecc5211566be9b807d3191f80988
https://preview.redd.it/z9usuf8ynowc1.png?width=670&format=png&auto=webp&s=82558e369a1a74182e83f7c91706ed837bdfebfb
https://preview.redd.it/oox3y1eznowc1.png?width=670&format=png&auto=webp&s=9f147e5df408a18b3b2f5222ed66ea62d2a3ee98
/r/flask
https://redd.it/1cd1edn
Python Test 219: Building Django Apps & SaaS Pegasus - Cory Zue
Listen at podcast.pythontest.com/219
When starting a SaaS project using Django, there are tons of decisions. I've asked Cory Zue, creator of SaaS Pegasus, to help me sift through some common SaaS/Django decisions.
/r/Python
https://redd.it/1cctlon
Listen at podcast.pythontest.com/219
When starting a SaaS project using Django, there are tons of decisions. I've asked Cory Zue, creator of SaaS Pegasus, to help me sift through some common SaaS/Django decisions.
/r/Python
https://redd.it/1cctlon
Python Test
Python Test | 219: Building Django Apps & SaaS Pegasus - Cory Zue
I'm starting a SaaS project using Django, and there are tons of decisions right out of the gate. To help me navigate these decisions, I've brought on Cory Zue. Cory is the creator of SaaS Pegasus...
π OpenTelemetry Architecture: Python SDK Overview
Hey folks,
I have just posted an article for those who want to go a little bit beyond the basic usage of OTEL and understand how it works under the hood. The post quickly touches on:
\- π History and the idea of OpenTelemetry
\- π§΅ Distributed traces & spans. How span collection happens on the service side
\- πΌ Baggage & trace ctx propagation
\- π Metrics collection. Views & aggregations. Metrics readers
\- π OTEL Logging integration
\- π€ Semantic conventions and why that is important
Blog Post: https://www.romaglushko.com/blog/opentelemetry-sdk/
Let me know what do you think and hope this is helpful for someone π
/r/Python
https://redd.it/1ccn8vf
Hey folks,
I have just posted an article for those who want to go a little bit beyond the basic usage of OTEL and understand how it works under the hood. The post quickly touches on:
\- π History and the idea of OpenTelemetry
\- π§΅ Distributed traces & spans. How span collection happens on the service side
\- πΌ Baggage & trace ctx propagation
\- π Metrics collection. Views & aggregations. Metrics readers
\- π OTEL Logging integration
\- π€ Semantic conventions and why that is important
Blog Post: https://www.romaglushko.com/blog/opentelemetry-sdk/
Let me know what do you think and hope this is helpful for someone π
/r/Python
https://redd.it/1ccn8vf
Roman Glushko
OTel SDK - Blog by Roman Glushko
Logs, metrics, traces collection in OTel SDK
Django PDF Templates
We currently use django-wkhtmltopdf and have noticed a number of bugs recently when trying to implement more complicated templates. Looks like wkhtmltopdf is no longer maintained so we are looking for suggestions on alternative packages. Required functionality:
Tables of data
Image resizing (either css or another method)
Control over pdf quality (for affected file size)
A method to better paginate if possible when data extends over multiple pages (rows tables for example)
​
​
​
​
/r/django
https://redd.it/1cd1rrc
We currently use django-wkhtmltopdf and have noticed a number of bugs recently when trying to implement more complicated templates. Looks like wkhtmltopdf is no longer maintained so we are looking for suggestions on alternative packages. Required functionality:
Tables of data
Image resizing (either css or another method)
Control over pdf quality (for affected file size)
A method to better paginate if possible when data extends over multiple pages (rows tables for example)
​
​
​
​
/r/django
https://redd.it/1cd1rrc
Reddit
From the django community on Reddit
Explore this post and more from the django community
Installing ffmpeg in Vercel?
Hey is it possible to install ffmpeg in Vercel in the system path something like the below
I'm using flask for the backend
/r/flask
https://redd.it/1cd9z2g
Hey is it possible to install ffmpeg in Vercel in the system path something like the below
sudo apt install ffmpeg
I'm using flask for the backend
/r/flask
https://redd.it/1cd9z2g
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday ποΈ
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! π
/r/Python
https://redd.it/1cd6xa3
# Weekly Thread: Meta Discussions and Free Talk Friday ποΈ
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! π
/r/Python
https://redd.it/1cd6xa3
Redditinc
Reddit Rules
Reddit Rules - Reddit
D What are your horror stories from being tasked impossible ML problems
ML is very good at solving a niche set of problems, but most of the technical nuances are lost on tech bros and managers. What are some problems you have been told to solve which would be impossible (no data, useless data, unrealistic expectations) or a misapplication of ML (can you have this LLM do all of out accounting).
/r/MachineLearning
https://redd.it/1ccz2cq
ML is very good at solving a niche set of problems, but most of the technical nuances are lost on tech bros and managers. What are some problems you have been told to solve which would be impossible (no data, useless data, unrealistic expectations) or a misapplication of ML (can you have this LLM do all of out accounting).
/r/MachineLearning
https://redd.it/1ccz2cq
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Issue with Concurrency in Flask and IIS
Let me preface this by saying I'm a fairly novice web developer. I have a degree in CS and have built a few websites during my education but that's about all my experience in web dev.
I've built a website with Python & Flask on the back end with html, css and JavaScript on the front end that will be used by my company internally to reset a password in a simple system we use for our business. It will save countless calls to the service desk team yearly. I've been stuck for a few weeks now with an issue I can only replicate in production on IIS and I'm not sure where to look or what to try at this point.
My website will only run one request at a time. If 2 or more people fire off requests to reset their password, they will have to wait until the requests fired off earlier complete. I tried several ways to do this. But the one I found to be the most clean and most effective was using the python queue data structure with a lock. Essentially it works like this
1. POST form submission enqueues parameters like username, employee id, etc.
2. Then
/r/flask
https://redd.it/1cd3ii1
Let me preface this by saying I'm a fairly novice web developer. I have a degree in CS and have built a few websites during my education but that's about all my experience in web dev.
I've built a website with Python & Flask on the back end with html, css and JavaScript on the front end that will be used by my company internally to reset a password in a simple system we use for our business. It will save countless calls to the service desk team yearly. I've been stuck for a few weeks now with an issue I can only replicate in production on IIS and I'm not sure where to look or what to try at this point.
My website will only run one request at a time. If 2 or more people fire off requests to reset their password, they will have to wait until the requests fired off earlier complete. I tried several ways to do this. But the one I found to be the most clean and most effective was using the python queue data structure with a lock. Essentially it works like this
1. POST form submission enqueues parameters like username, employee id, etc.
2. Then
/r/flask
https://redd.it/1cd3ii1
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
What's the best thing you've automated?
Mine is automating my social media posts with some AI magic.
Now I just have to check if the post is okay.
Took a lot of prompt mangling but hey it reduced a 10-mins task to 1-mins task. Over a course of a year, that's a lot of time.
So what's your thing?
/r/Python
https://redd.it/1cdctvv
Mine is automating my social media posts with some AI magic.
Now I just have to check if the post is okay.
Took a lot of prompt mangling but hey it reduced a 10-mins task to 1-mins task. Over a course of a year, that's a lot of time.
So what's your thing?
/r/Python
https://redd.it/1cdctvv
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Python for backend? Please enlighten me
I have finished my front-end web dev part. I'm confident in my skills and want to move to the backend section. But the problem is, most influencers promote MERN stack for the backend, and since it's easy to promote as both front end and back end use the same language.
While researching, I found Java, but it's been on a constant decline since 2017, with a 1 percent yearly fall. And languages like Golang and Python are on the rise.
In online debate threads on Reddit, people often mention Python as not scalable and secure, and being very slow. Is that true?
Also, there aren't many Golang courses online.
/r/Python
https://redd.it/1cdc65u
I have finished my front-end web dev part. I'm confident in my skills and want to move to the backend section. But the problem is, most influencers promote MERN stack for the backend, and since it's easy to promote as both front end and back end use the same language.
While researching, I found Java, but it's been on a constant decline since 2017, with a 1 percent yearly fall. And languages like Golang and Python are on the rise.
In online debate threads on Reddit, people often mention Python as not scalable and secure, and being very slow. Is that true?
Also, there aren't many Golang courses online.
/r/Python
https://redd.it/1cdc65u
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Python Quality Standards
Hey, happy Friday (don't push to prod). Me and some friends are building a no-code platform to run code improvement agents (really in BETA) .
We want to have a quality agent for each language, and I would really appreciate your feedback on python best practices and standards. The agents are created by defining the steps that you want to apply in natural language. Right now our Python agent has the following steps:
* Use descriptive naming for functions and variables.
* Add Type Hints.
* Add proper docstrings.
* Make docstrings follow PEP-257 standard.
* All variables and functions should be snake\_case.
* Add proper input validation that checks for type and not null. If the input validation fails raise an Exception.
* Add useful logs for debugging with the logging library.
In case you want to check our tool, we have a free playground right now at [GitGud](https://gitgud.autonoma.app?utm_source=reddit&utm_medium=post&utm_campaign=reddit-post&utm_id=reddit-post) and are working on github PR integrations.
Happy coding and thank you in advance for your help!
/r/Python
https://redd.it/1cdmls1
Hey, happy Friday (don't push to prod). Me and some friends are building a no-code platform to run code improvement agents (really in BETA) .
We want to have a quality agent for each language, and I would really appreciate your feedback on python best practices and standards. The agents are created by defining the steps that you want to apply in natural language. Right now our Python agent has the following steps:
* Use descriptive naming for functions and variables.
* Add Type Hints.
* Add proper docstrings.
* Make docstrings follow PEP-257 standard.
* All variables and functions should be snake\_case.
* Add proper input validation that checks for type and not null. If the input validation fails raise an Exception.
* Add useful logs for debugging with the logging library.
In case you want to check our tool, we have a free playground right now at [GitGud](https://gitgud.autonoma.app?utm_source=reddit&utm_medium=post&utm_campaign=reddit-post&utm_id=reddit-post) and are working on github PR integrations.
Happy coding and thank you in advance for your help!
/r/Python
https://redd.it/1cdmls1