What UI library do you recommend?
I am currently working on an app to display basic computer metrics (CPU, GPU, RAM, HDD, etc.) along with a quick action/quick launch for use on the computer. I am wanting it to be a modern looking application, but don’t know what to use.
I’m a Java developer for work, but I am wanting to broaden my horizons in development languages.
I have some experience with tkinter and PySimpleGui, but don’t know if they would be a modern solution.
/r/Python
https://redd.it/1edqp8l
I am currently working on an app to display basic computer metrics (CPU, GPU, RAM, HDD, etc.) along with a quick action/quick launch for use on the computer. I am wanting it to be a modern looking application, but don’t know what to use.
I’m a Java developer for work, but I am wanting to broaden my horizons in development languages.
I have some experience with tkinter and PySimpleGui, but don’t know if they would be a modern solution.
/r/Python
https://redd.it/1edqp8l
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
My first ever project! Any suggestions would be appreciated.
What My Project Does
My project is a simple number guesser that I made from my basic knowledge of python.
Target Audience
Just a fun toy, pretty bare bones.
Comparison
Doesn't really compare to anything, just a fun project
https://github.com/voltxge33/My-first-project
/r/Python
https://redd.it/1edrv44
What My Project Does
My project is a simple number guesser that I made from my basic knowledge of python.
Target Audience
Just a fun toy, pretty bare bones.
Comparison
Doesn't really compare to anything, just a fun project
https://github.com/voltxge33/My-first-project
/r/Python
https://redd.it/1edrv44
GitHub
GitHub - voltxge33/My-first-project: My first ever project
My first ever project. Contribute to voltxge33/My-first-project development by creating an account on GitHub.
POST request not being sent after successful preflight request/response on iphone
Hello,
I have a static web page with a form that sends data to a flask app on heroku. On desktop it works fine to send the data and getting it stored in the flask app.
however when trying to do the same thing on the mobile version site, a preflight (OPTIONS) request is sent, and a 200 ok response is sent back with the xcsrf token and the allowed headers etc.
but then after this, no subsequent POST request is being sent with the actual data.
Anyone knows if this is a known issue with iphone? Or if it should work?
/r/flask
https://redd.it/1ebzf67
Hello,
I have a static web page with a form that sends data to a flask app on heroku. On desktop it works fine to send the data and getting it stored in the flask app.
however when trying to do the same thing on the mobile version site, a preflight (OPTIONS) request is sent, and a 200 ok response is sent back with the xcsrf token and the allowed headers etc.
but then after this, no subsequent POST request is being sent with the actual data.
Anyone knows if this is a known issue with iphone? Or if it should work?
/r/flask
https://redd.it/1ebzf67
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1edud5n
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1edud5n
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How to you guys sharpen your coding skills?
How do you guys sharpen your coding skills, is it by coding challenges like leetcode or coders or doing random projects,
Me i do a ton of coding challenges and I want your suggestions to sharpen my skills more
one more question how do you guys find good open-source project to contribute?
/r/Python
https://redd.it/1eduua5
How do you guys sharpen your coding skills, is it by coding challenges like leetcode or coders or doing random projects,
Me i do a ton of coding challenges and I want your suggestions to sharpen my skills more
one more question how do you guys find good open-source project to contribute?
/r/Python
https://redd.it/1eduua5
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Flask-Admin now part of Pallets-Eco
https://github.com/pallets-eco/flask-admin is now part of pallets-eco and possibly releasing a v2.0 soon. Shoutout to the devs making this possible.
https://github.com/pallets-eco/flask-admin/issues/2451
/r/flask
https://redd.it/1ee1ina
https://github.com/pallets-eco/flask-admin is now part of pallets-eco and possibly releasing a v2.0 soon. Shoutout to the devs making this possible.
https://github.com/pallets-eco/flask-admin/issues/2451
/r/flask
https://redd.it/1ee1ina
GitHub
GitHub - pallets-eco/flask-admin: Simple and extensible administrative interface framework for Flask
Simple and extensible administrative interface framework for Flask - pallets-eco/flask-admin
How much Python should I learn to start with Django and what are the resources that you would recommend?
So as the title suggests, I want to start with Django mainly because I really want to contribute to an open-source organization for the upcoming GSoC 2025.
A bit about my coding experience:
I know JavaScript. In fact, it was the first language that I ever learned.
I learned React and Node.js too.
I built some projects with them (for example, a real-time multiplayer chess app).
I learned Data Structures and Algorithms in the past 2 months in C++ (I chose this because everyone suggested me to do so).
As you can see, I am not a complete beginner in this programming space. The problem is, I just don't know Python, and to contribute to that open-source organization (which uses JS and Django mainly), I would really need to learn Python first and then Django.
So now lets get to the point i.e. how much python do i need to learn to start with Django? What are all the resources(documentations or courses) that you would recommend to get started with python and then subsequently to Django?
/r/django
https://redd.it/1edokza
So as the title suggests, I want to start with Django mainly because I really want to contribute to an open-source organization for the upcoming GSoC 2025.
A bit about my coding experience:
I know JavaScript. In fact, it was the first language that I ever learned.
I learned React and Node.js too.
I built some projects with them (for example, a real-time multiplayer chess app).
I learned Data Structures and Algorithms in the past 2 months in C++ (I chose this because everyone suggested me to do so).
As you can see, I am not a complete beginner in this programming space. The problem is, I just don't know Python, and to contribute to that open-source organization (which uses JS and Django mainly), I would really need to learn Python first and then Django.
So now lets get to the point i.e. how much python do i need to learn to start with Django? What are all the resources(documentations or courses) that you would recommend to get started with python and then subsequently to Django?
/r/django
https://redd.it/1edokza
Reddit
From the django community on Reddit
Explore this post and more from the django community
Can I use flask in production?
I'm building a basic API to use with reactjs or nextjs and I think Django is overkill.
Is flask good in production? Any pointers appreciated?
/r/Python
https://redd.it/1ee2r83
I'm building a basic API to use with reactjs or nextjs and I think Django is overkill.
Is flask good in production? Any pointers appreciated?
/r/Python
https://redd.it/1ee2r83
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Should I choose Next.js or pure HTMX over Django?
I'm working on a startup and planning to build the backend using Python. I'm not a big fan of JS frameworks, so I prefer to let AI handle that while I focus solely on the backend without AI assistance. My current project aims to provide users with low-latency data.
1. Would I be making a mistake by choosing Next.js for the frontend?
2. Is it worthwhile to consider using HTMX with FastAPI or HTMX with Django for this project?
/r/django
https://redd.it/1ee67y3
I'm working on a startup and planning to build the backend using Python. I'm not a big fan of JS frameworks, so I prefer to let AI handle that while I focus solely on the backend without AI assistance. My current project aims to provide users with low-latency data.
1. Would I be making a mistake by choosing Next.js for the frontend?
2. Is it worthwhile to consider using HTMX with FastAPI or HTMX with Django for this project?
/r/django
https://redd.it/1ee67y3
Reddit
From the django community on Reddit
Explore this post and more from the django community
developing a project management interactive dashboard
Greetings,
I'm considering to develop an interactive dashboard that allows the below features
- allows orchestrating tasks between different teams, along with the ability to track the progress
- generate automated reports based on a predefined template
- has an interactive dashboard so I can see the number of tasks per X time and their status
- can be connected to Excel sheet as an input source
would you please advice on what libraries should I use and whether this work is a daunting task and I should go for a vendor-tool? I know the answer would depend on the details of my context, however I'd like to have a general estimation
thanks in advance
/r/Python
https://redd.it/1ee51yz
Greetings,
I'm considering to develop an interactive dashboard that allows the below features
- allows orchestrating tasks between different teams, along with the ability to track the progress
- generate automated reports based on a predefined template
- has an interactive dashboard so I can see the number of tasks per X time and their status
- can be connected to Excel sheet as an input source
would you please advice on what libraries should I use and whether this work is a daunting task and I should go for a vendor-tool? I know the answer would depend on the details of my context, however I'd like to have a general estimation
thanks in advance
/r/Python
https://redd.it/1ee51yz
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
system design mock interviews
Where should i take mock interviews on system design so i can learn more and improve myself
/r/flask
https://redd.it/1ee551q
Where should i take mock interviews on system design so i can learn more and improve myself
/r/flask
https://redd.it/1ee551q
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
How to pass context to render_template?
Hi,
I use Flask with htmx. In case its a normal request, I call `render_template` as usual. But in case the request is coming from htmx, I want to return only a part of the template.
I've created two templates each time I need to return either or.
```jinja2
# login.html
{% extends "base.html" %}
{% block main %}
{% include "login_form.html" %}
{% endblock main %}
```
```jinja2
# login_form.html
<form>
...
</form>
```
In my route I can easily do:
```python
from flask import render_template
if htmx: template = "login_form.html"
else: template = "login.html"
return render_template(template, ...)
```
Now I came across [Jinja2-Fragments](https://github.com/sponsfreixes/jinja2-fragments) which allows to render only individual blocks of a template. That means I wouldn't have to create the wrapper templates, which would be desirable.
Problem is, I now end up with something like:
```python
from flask import render_template
from jinja2_fragments.flask import render_block
if htmx: return render_block("login.html", "main", ...)
else: return render_template("login.html", ...)
```
Okay, cool. But if I pass n variables as context to the template, I have to repeat those in both function calls. Not exactly DRY.
I could create a dict like `vars = {"var1": var1, "var2": var2, ...}` and pass that to both function calls, but then in the template I need to prefix all variables with `vars.var1` which is not so pretty either.
Is
/r/flask
https://redd.it/1eebend
Hi,
I use Flask with htmx. In case its a normal request, I call `render_template` as usual. But in case the request is coming from htmx, I want to return only a part of the template.
I've created two templates each time I need to return either or.
```jinja2
# login.html
{% extends "base.html" %}
{% block main %}
{% include "login_form.html" %}
{% endblock main %}
```
```jinja2
# login_form.html
<form>
...
</form>
```
In my route I can easily do:
```python
from flask import render_template
if htmx: template = "login_form.html"
else: template = "login.html"
return render_template(template, ...)
```
Now I came across [Jinja2-Fragments](https://github.com/sponsfreixes/jinja2-fragments) which allows to render only individual blocks of a template. That means I wouldn't have to create the wrapper templates, which would be desirable.
Problem is, I now end up with something like:
```python
from flask import render_template
from jinja2_fragments.flask import render_block
if htmx: return render_block("login.html", "main", ...)
else: return render_template("login.html", ...)
```
Okay, cool. But if I pass n variables as context to the template, I have to repeat those in both function calls. Not exactly DRY.
I could create a dict like `vars = {"var1": var1, "var2": var2, ...}` and pass that to both function calls, but then in the template I need to prefix all variables with `vars.var1` which is not so pretty either.
Is
/r/flask
https://redd.it/1eebend
GitHub
GitHub - sponsfreixes/jinja2-fragments: Render Jinja2 template block as HTML page fragments on Python web frameworks.
Render Jinja2 template block as HTML page fragments on Python web frameworks. - sponsfreixes/jinja2-fragments
Cli scraper Dedicated to Alibaba v0.2.0
I have already showcased this package project. I just want to inform you all about my package evolution.
What My Project Does ?
Gathering data from Alibaba based on keywords provided by users and save them in database MySQL/sqlite
Targeted Audience
Thoses who want to build an ALIBABA datasets for analysis.
Comparisons
Asynchronous request to handle many page results.
New features:
Set your bright data api key to use async mode.
Export your scraped data to csv file (you must to have an updated sqlite file which will be converted to csv).
Future enhancements:
Add a rag to chat with your database and let him do your SQL query for you .
This will probably the least feature that in planning to add to this project.
Maybe I will make it croos plateform. Cause now it's only works on windows.
Still looking for testers an reviews and suggestions to improve.
Do you think this package have a potential to grow ? Is it useful ? If not how to make more interesting ?
Here is the repo : https://github.com/poneoneo/Alibaba-CLI-Scrapper
Also excuse me for orthography errors on 'scraper'
I'm find a way to rename my package but its seems to be hard and risky and I dont want to
/r/Python
https://redd.it/1ee79hd
I have already showcased this package project. I just want to inform you all about my package evolution.
What My Project Does ?
Gathering data from Alibaba based on keywords provided by users and save them in database MySQL/sqlite
Targeted Audience
Thoses who want to build an ALIBABA datasets for analysis.
Comparisons
Asynchronous request to handle many page results.
New features:
Set your bright data api key to use async mode.
Export your scraped data to csv file (you must to have an updated sqlite file which will be converted to csv).
Future enhancements:
Add a rag to chat with your database and let him do your SQL query for you .
This will probably the least feature that in planning to add to this project.
Maybe I will make it croos plateform. Cause now it's only works on windows.
Still looking for testers an reviews and suggestions to improve.
Do you think this package have a potential to grow ? Is it useful ? If not how to make more interesting ?
Here is the repo : https://github.com/poneoneo/Alibaba-CLI-Scrapper
Also excuse me for orthography errors on 'scraper'
I'm find a way to rename my package but its seems to be hard and risky and I dont want to
/r/Python
https://redd.it/1ee79hd
GitHub
GitHub - poneoneo/Alibaba-CLI-Scraper: Create your own Alibaba dataset and interact with it in plain English.
Create your own Alibaba dataset and interact with it in plain English. - poneoneo/Alibaba-CLI-Scraper
Django seems like a full-stack framework as opposed to a back-end framework, Is it right for me if I'm looking for a back-end framework?
Title basically sums it up. I wanna get into Django but the tutorials I've seen so far make it seem like it's more of a full-stack framework, and this is making it really difficult for me to know what I'm learning?
I plan on using it with frameworks like React, HTML, CSS, Next.js and more.
This might be a dumb question but I really need to know. Thanks!
/r/django
https://redd.it/1eeai8t
Title basically sums it up. I wanna get into Django but the tutorials I've seen so far make it seem like it's more of a full-stack framework, and this is making it really difficult for me to know what I'm learning?
I plan on using it with frameworks like React, HTML, CSS, Next.js and more.
This might be a dumb question but I really need to know. Thanks!
/r/django
https://redd.it/1eeai8t
Reddit
From the django community on Reddit
Explore this post and more from the django community
Cool services you've made with FastAPI
Hey Everyone, I was just wondering what kind of cool projects people have made using FastAPI? What did you like about the framework and what did you dislike? Is FastAPI used a lot with ML models or computer vision services. Would love to hear your experiences and projects!
/r/Python
https://redd.it/1eeeoti
Hey Everyone, I was just wondering what kind of cool projects people have made using FastAPI? What did you like about the framework and what did you dislike? Is FastAPI used a lot with ML models or computer vision services. Would love to hear your experiences and projects!
/r/Python
https://redd.it/1eeeoti
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
I built an e-commerce site
I built an e-commerce site. If you guys have some spare time, can you guys test out my site and give me some feedback, please? Any feedback will be greatly appreciated. Thank you very much. Here is the site at Pythonanywhere Here is the username and password: new_user1, testuser123
/r/djangolearning
https://redd.it/1ee9cwd
I built an e-commerce site. If you guys have some spare time, can you guys test out my site and give me some feedback, please? Any feedback will be greatly appreciated. Thank you very much. Here is the site at Pythonanywhere Here is the username and password: new_user1, testuser123
/r/djangolearning
https://redd.it/1ee9cwd
Pythonanywhere
Home
shop, online market, gadgets, PC, laptop
Giving the option to the user of allowing concurrent login
Hi there,
i am new to django. I implemented the disabling of concurrent login on the same account using different devices by the use of sessions.
So i thought of why not letting the user itself decide if he wants to allow concurrent login or not.
I tried searching for solutions to this but my search was fruitless.
Any help is appreciated !
/r/djangolearning
https://redd.it/1edpig2
Hi there,
i am new to django. I implemented the disabling of concurrent login on the same account using different devices by the use of sessions.
So i thought of why not letting the user itself decide if he wants to allow concurrent login or not.
I tried searching for solutions to this but my search was fruitless.
Any help is appreciated !
/r/djangolearning
https://redd.it/1edpig2
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Running Background Tasks in Production (Azure Web App)
have a Django backend project in which i use django-background-tasks to send scheduled emails in the background , in development environment i need a second terminal running the command :
now for the production environment i hosted the backend on azure web app and tried the approach of
supervisor (http://supervisord.org/configuration.html) creating a conf file that gets executed on the server but for now i have to manually connect to the server via ssh and run this file the whole point of using the module is to automate this part yet it doesn't seem to work
https://preview.redd.it/sb0urf0232fd1.png?width=833&format=png&auto=webp&s=076055d0f2ad8ea6f9786604aa31d031ef2f7528
also tried to add to the deployment workflow this part :
- name: Set up Supervisor
run: |
# Install Supervisor
pip install supervisor
# Create logs directory if it doesn't exist
mkdir -p logs
chmod 666 logs
# Start Supervisor
/r/djangolearning
https://redd.it/1edfdu1
have a Django backend project in which i use django-background-tasks to send scheduled emails in the background , in development environment i need a second terminal running the command :
python manage.py process_tasksnow for the production environment i hosted the backend on azure web app and tried the approach of
supervisor (http://supervisord.org/configuration.html) creating a conf file that gets executed on the server but for now i have to manually connect to the server via ssh and run this file the whole point of using the module is to automate this part yet it doesn't seem to work
https://preview.redd.it/sb0urf0232fd1.png?width=833&format=png&auto=webp&s=076055d0f2ad8ea6f9786604aa31d031ef2f7528
also tried to add to the deployment workflow this part :
- name: Set up Supervisor
run: |
# Install Supervisor
pip install supervisor
# Create logs directory if it doesn't exist
mkdir -p logs
chmod 666 logs
# Start Supervisor
/r/djangolearning
https://redd.it/1edfdu1
This media is not supported in your browser
VIEW IN TELEGRAM
My first flask app, got popular on Instagram (2m views, 50k+ users) what do you all think?
https://redd.it/1eelt6t
@pythondaily
https://redd.it/1eelt6t
@pythondaily
Starting a new django job tomorrow
what should I know? what its a must to study?
context: I have only basic notions of this framework, like already build a simple CRUD and thats all. even tho the company selected me because because, I dont really know why but they liked me, but its the only tech of the company Im not very familiar. Im very nervous
/r/django
https://redd.it/1eepb7o
what should I know? what its a must to study?
context: I have only basic notions of this framework, like already build a simple CRUD and thats all. even tho the company selected me because because, I dont really know why but they liked me, but its the only tech of the company Im not very familiar. Im very nervous
/r/django
https://redd.it/1eepb7o
Reddit
From the django community on Reddit
Explore this post and more from the django community