I uploaded my flask app in a shared hosting with cpanel, but getting 404 error
I uploaded my flask app and install that app as a package. I have no terminal access beacuse of shared hosting. All i can do is run script through cpanel run-script interface.
if i include blueprint or routing in
what is the solution, is there will be any problem if i use
thanks in advance.
/r/flask
https://redd.it/1kizc3x
I uploaded my flask app and install that app as a package. I have no terminal access beacuse of shared hosting. All i can do is run script through cpanel run-script interface.
if i include blueprint or routing in
__init__.py, at the root of the package where passenger_wsgi.py located all routing works without any error. But if i have routing or blueprints in app.py, even in that same directory, i get 404 error.what is the solution, is there will be any problem if i use
__init__.py thanks in advance.
/r/flask
https://redd.it/1kizc3x
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
D Best Way to Incorporate Edge Scores into Transformer After GNN?
Hi everyone,
I’m working on a social recommendation system using GNNs for link prediction. I want to add a Transformer after the GNN to refine embeddings and include score ratings (edge features).
I haven’t found papers that show how to pass score ratings into the Transformer. Some mention projecting the scalar into an embedding. Does adding the score rating or the relation scalar is not recommended ?
Has anyone dealt with this before please?
/r/MachineLearning
https://redd.it/1kj7ylw
Hi everyone,
I’m working on a social recommendation system using GNNs for link prediction. I want to add a Transformer after the GNN to refine embeddings and include score ratings (edge features).
I haven’t found papers that show how to pass score ratings into the Transformer. Some mention projecting the scalar into an embedding. Does adding the score rating or the relation scalar is not recommended ?
Has anyone dealt with this before please?
/r/MachineLearning
https://redd.it/1kj7ylw
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
🚀 I Built a Django App to Track Income, Expenses, Crypto & Bank Accounts – Django Income Tracking
# Hey everyone!
I'm excited to share a personal project I've been working on: **Django Income Tracking** – a web app built with Django to help you get a comprehensive overview of your finances.
Check out how it looks here -> [https://www.youtube.com/watch?v=piMv2jAwbo8](https://www.youtube.com/watch?v=piMv2jAwbo8)
Get the code here -> [https://github.com/vic-cieslak/portfolio-income-manager](https://github.com/vic-cieslak/portfolio-income-manager)
Let me know what you think! No strings attached ;p
# 💼 What can it do?
* **Track Income**: Log income from multiple sources, categorize it, and calculate totals based on hourly rates.
* **Manage Expenses**: Track and categorize your spending to stay on top of your budget.
* **Oversee Your Portfolio**: Monitor cryptocurrency investments (real-time prices via CoinGecko) and bank account balances.
* **Interactive Dashboard**: View your net worth, monthly summaries, portfolio breakdowns, and recent transactions – all visualized with dynamic charts.
* **User Settings**: Personalize your experience (currency preferences coming soon!).
* **Modern UI**: Cyberpunk-inspired, responsive design for both desktop and mobile.
# 🛠 Tech Stack
* **Backend**: Django, Python
* **Frontend**: HTML, CSS, JavaScript, Bootstrap 5
* **Database**: SQLite (default)
* **Charts**: Chart.js
* **Package Management**: Poetry
I built this to manage my own finances in one place and decided to share it with the community. It’s still evolving, with future features planned like advanced forecasting and client management.
The [`README.md`](http://README.md) includes full feature descriptions and
/r/django
https://redd.it/1kj9a50
# Hey everyone!
I'm excited to share a personal project I've been working on: **Django Income Tracking** – a web app built with Django to help you get a comprehensive overview of your finances.
Check out how it looks here -> [https://www.youtube.com/watch?v=piMv2jAwbo8](https://www.youtube.com/watch?v=piMv2jAwbo8)
Get the code here -> [https://github.com/vic-cieslak/portfolio-income-manager](https://github.com/vic-cieslak/portfolio-income-manager)
Let me know what you think! No strings attached ;p
# 💼 What can it do?
* **Track Income**: Log income from multiple sources, categorize it, and calculate totals based on hourly rates.
* **Manage Expenses**: Track and categorize your spending to stay on top of your budget.
* **Oversee Your Portfolio**: Monitor cryptocurrency investments (real-time prices via CoinGecko) and bank account balances.
* **Interactive Dashboard**: View your net worth, monthly summaries, portfolio breakdowns, and recent transactions – all visualized with dynamic charts.
* **User Settings**: Personalize your experience (currency preferences coming soon!).
* **Modern UI**: Cyberpunk-inspired, responsive design for both desktop and mobile.
# 🛠 Tech Stack
* **Backend**: Django, Python
* **Frontend**: HTML, CSS, JavaScript, Bootstrap 5
* **Database**: SQLite (default)
* **Charts**: Chart.js
* **Package Management**: Poetry
I built this to manage my own finances in one place and decided to share it with the community. It’s still evolving, with future features planned like advanced forecasting and client management.
The [`README.md`](http://README.md) includes full feature descriptions and
/r/django
https://redd.it/1kj9a50
Is there any huge diference between django 4 and 5?
Hello, I've just started learning django and I was looking for books to get deeper, and the question remains is, is there any huge diference between django 4 and 5, because all the books I've got is for django 4.
/r/djangolearning
https://redd.it/1kh75fp
Hello, I've just started learning django and I was looking for books to get deeper, and the question remains is, is there any huge diference between django 4 and 5, because all the books I've got is for django 4.
/r/djangolearning
https://redd.it/1kh75fp
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
I fully developed and deployed my first website!
\# What My Project Does
I've been learning to code for a few years now but all projects I've developed have either been too inconsequential or abandoned. That changed a few months back when a relative asked me to help him make a portfolio. I had three ways of going about it.
1. Make the project completely static and hard code every message and image in the HTML.
2. Use WordPress.
3. Fully develop it from scratch.
I decided to go with option 3 for three main reasons, making it fully static means every change they want to make to the site they would need me, WordPress would have been nice but the plugins ecosystem seemed way too expensive for the budget we were working with, and making it from scratch also means portfolio for myself so we both get a benefit out of it.
The website is an Interior Design portfolio. Content-wise it isn't too demanding, just images and text related to those images. The biggest issue came from making it fully editable, I had to develop an editor from scratch and it's the main reason I don't want to touch CSS ever again 😛.
The full stack is as follows. Everything is dockerized and put
/r/Python
https://redd.it/1kjdt6n
\# What My Project Does
I've been learning to code for a few years now but all projects I've developed have either been too inconsequential or abandoned. That changed a few months back when a relative asked me to help him make a portfolio. I had three ways of going about it.
1. Make the project completely static and hard code every message and image in the HTML.
2. Use WordPress.
3. Fully develop it from scratch.
I decided to go with option 3 for three main reasons, making it fully static means every change they want to make to the site they would need me, WordPress would have been nice but the plugins ecosystem seemed way too expensive for the budget we were working with, and making it from scratch also means portfolio for myself so we both get a benefit out of it.
The website is an Interior Design portfolio. Content-wise it isn't too demanding, just images and text related to those images. The biggest issue came from making it fully editable, I had to develop an editor from scratch and it's the main reason I don't want to touch CSS ever again 😛.
The full stack is as follows. Everything is dockerized and put
/r/Python
https://redd.it/1kjdt6n
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
No matter what i do, database record will not update while testing.
Hi, I'm trying to develop a simple crud app where user can save their contacts. Using django and htmx.
Naturally there must be a view to edit individual contacts. So the view works fine. Upon click, a htmx request is sent, a modal shows that will be populated with a form, and the form itself is prepopulated with that specific record data.
Upon submitting, a htmx post request is sent, record is updated, i trigger an event (using HX-Trigger) to clean up the form, close the modal, and refresh the table.
Everything is OK so far.
The problem is when i try to test this view. Using pytest (for fixtures) and pytest-django (for database access). The status code will return 200, but the record itself will NOT update (i check the record before and after the request).
Here is the code:
View (Contact is my model):
@loginrequired
def contactedit(request: HttpRequest, pk: int) -> HttpResponse:
context = {}
try:
item = Contact.objects.get(pk=pk)
if item.user != request.user:
raise Contact.DoesNotExist("Such
/r/django
https://redd.it/1kjimw2
Hi, I'm trying to develop a simple crud app where user can save their contacts. Using django and htmx.
Naturally there must be a view to edit individual contacts. So the view works fine. Upon click, a htmx request is sent, a modal shows that will be populated with a form, and the form itself is prepopulated with that specific record data.
Upon submitting, a htmx post request is sent, record is updated, i trigger an event (using HX-Trigger) to clean up the form, close the modal, and refresh the table.
Everything is OK so far.
The problem is when i try to test this view. Using pytest (for fixtures) and pytest-django (for database access). The status code will return 200, but the record itself will NOT update (i check the record before and after the request).
Here is the code:
View (Contact is my model):
@loginrequired
def contactedit(request: HttpRequest, pk: int) -> HttpResponse:
context = {}
try:
item = Contact.objects.get(pk=pk)
if item.user != request.user:
raise Contact.DoesNotExist("Such
/r/django
https://redd.it/1kjimw2
Reddit
From the django community on Reddit
Explore this post and more from the django community
are non-SPA websites outdated?
I am learning django, fairly new, developing a big project right now slowly to put on my resume and as a hobby in general, i have notice that to make the user experience smoother and to beat the dull atmosphere i'd need to incorporate alot of JS that i have never used, i've actually never touched js code which makes me intimidated by web development now, my question i guess is are non-SPA websites still fine where you wouldnt have all these cool transitions in the website and instead have a bunch of pages linking to each other and whatnot, because i dont want to rely on chatgpt to give me js code that i cant even read and put on a passion project.
/r/django
https://redd.it/1kj5x0i
I am learning django, fairly new, developing a big project right now slowly to put on my resume and as a hobby in general, i have notice that to make the user experience smoother and to beat the dull atmosphere i'd need to incorporate alot of JS that i have never used, i've actually never touched js code which makes me intimidated by web development now, my question i guess is are non-SPA websites still fine where you wouldnt have all these cool transitions in the website and instead have a bunch of pages linking to each other and whatnot, because i dont want to rely on chatgpt to give me js code that i cant even read and put on a passion project.
/r/django
https://redd.it/1kj5x0i
Reddit
From the django community on Reddit
Explore this post and more from the django community
fastAPI & flask
Has anyone ever built an end-to-end web app using fastAPI(to build the APIs) and flask(for the templates, ie frontend)?
I was wondering how this even looks like in practice. Say you're using the create app factory-blueprint method for your flask side. You need to register routes and all that stuff. How will you tie this to your API that uses fastAPI?
Putting a reverse proxy like caddy further complicates things(I think). Do you run the fastAPI app and the flask app separately??
I understand that you can technically build everything using fastAPI as it supports templating using Jinja. But I'm just wondering if fastAPI and flask is even possible.
/r/flask
https://redd.it/1kjmdlp
Has anyone ever built an end-to-end web app using fastAPI(to build the APIs) and flask(for the templates, ie frontend)?
I was wondering how this even looks like in practice. Say you're using the create app factory-blueprint method for your flask side. You need to register routes and all that stuff. How will you tie this to your API that uses fastAPI?
Putting a reverse proxy like caddy further complicates things(I think). Do you run the fastAPI app and the flask app separately??
I understand that you can technically build everything using fastAPI as it supports templating using Jinja. But I'm just wondering if fastAPI and flask is even possible.
/r/flask
https://redd.it/1kjmdlp
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Bootstrap 5 + Jinja + Forms
Can somebody recommend any decent library / macro set that will render Django form in jinja templates ? I don’t want to reinvent the wheel…
/r/django
https://redd.it/1kjbr9r
Can somebody recommend any decent library / macro set that will render Django form in jinja templates ? I don’t want to reinvent the wheel…
/r/django
https://redd.it/1kjbr9r
Reddit
From the django community on Reddit
Explore this post and more from the django 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/1kjnxrz
# 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/1kjnxrz
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Announcing Traeger 0.2.0, now with Rust bindings (and Python and Go).
Traeger is a portable Actor System written in C++ 17 with bindings for Python, Go and now Rust.
https://github.com/tigrux/traeger
The notable feature since version 0.1.0 is that it now provides bindings for Rust.
The Quickstart has been updated to show examples in the supported languages.
https://github.com/tigrux/traeger?tab=readme-ov-file#quick-start
For version 0.3.0 the plan is to provide support for loadable modules i.e. to instantiate actors from shared objects.
/r/Python
https://redd.it/1kjlcqm
Traeger is a portable Actor System written in C++ 17 with bindings for Python, Go and now Rust.
https://github.com/tigrux/traeger
The notable feature since version 0.1.0 is that it now provides bindings for Rust.
The Quickstart has been updated to show examples in the supported languages.
https://github.com/tigrux/traeger?tab=readme-ov-file#quick-start
For version 0.3.0 the plan is to provide support for loadable modules i.e. to instantiate actors from shared objects.
/r/Python
https://redd.it/1kjlcqm
GitHub
GitHub - tigrux/traeger: A portable Actor System for C++ and Python
A portable Actor System for C++ and Python. Contribute to tigrux/traeger development by creating an account on GitHub.
cybersecurity project using python
heyo! I tried to make a keylogger using python, it works well, any suggestion to make it better.
source: https://github.com/Debang5hu/Keylogger
btw im planning to just focus on windows and rewrite it using c++
kudos
/r/Python
https://redd.it/1kjvs81
heyo! I tried to make a keylogger using python, it works well, any suggestion to make it better.
source: https://github.com/Debang5hu/Keylogger
btw im planning to just focus on windows and rewrite it using c++
kudos
/r/Python
https://redd.it/1kjvs81
GitHub
GitHub - Debang5hu/keylogger: a simple keylogger in python that sends the keystrokes to the server (Telegram)
a simple keylogger in python that sends the keystrokes to the server (Telegram) - Debang5hu/keylogger
🚀 I built a lightweight task management system for Django projects
Hey r/django community!
I wanted to share a library I've been working on called **django-async-manager** \- a lightweight, database-backed task management system for Django projects.
# Why I built this
While working on Django projects, I often needed to run tasks asynchronously but found that Celery was sometimes overkill for simpler projects. I wanted something that:
* Didn't require additional infrastructure like Redis or RabbitMQ
* Was easy to set up and integrate with existing Django projects
* Provided essential task management features without complexity
* Used the database as a reliable task queue
# Key Features
* **Background Tasks**: Run Django functions asynchronously
* **Task Scheduling**: Schedule tasks using cron-like syntax
* **Task Dependencies**: Define dependencies between tasks
* **Priority Queues**: Process important tasks first
* **Automatic Retries**: Configure retries with exponential backoff
* **Multiple Workers**: Run workers using threads or processes
* **Task Timeouts**: Set timeouts for long-running tasks
* **Monitoring**: Track task status, execution time, and errors
# Super Easy to Use
Setting up is straightforward:
# 1. Install
pip install django-async-manager
# 2. Add to INSTALLED_APPS
# 3. Run migrations
python manage.py migrate django_async_manager
# 4. Define a
/r/django
https://redd.it/1kjx8o5
Hey r/django community!
I wanted to share a library I've been working on called **django-async-manager** \- a lightweight, database-backed task management system for Django projects.
# Why I built this
While working on Django projects, I often needed to run tasks asynchronously but found that Celery was sometimes overkill for simpler projects. I wanted something that:
* Didn't require additional infrastructure like Redis or RabbitMQ
* Was easy to set up and integrate with existing Django projects
* Provided essential task management features without complexity
* Used the database as a reliable task queue
# Key Features
* **Background Tasks**: Run Django functions asynchronously
* **Task Scheduling**: Schedule tasks using cron-like syntax
* **Task Dependencies**: Define dependencies between tasks
* **Priority Queues**: Process important tasks first
* **Automatic Retries**: Configure retries with exponential backoff
* **Multiple Workers**: Run workers using threads or processes
* **Task Timeouts**: Set timeouts for long-running tasks
* **Monitoring**: Track task status, execution time, and errors
# Super Easy to Use
Setting up is straightforward:
# 1. Install
pip install django-async-manager
# 2. Add to INSTALLED_APPS
# 3. Run migrations
python manage.py migrate django_async_manager
# 4. Define a
/r/django
https://redd.it/1kjx8o5
Reddit
From the django community on Reddit: 🚀 I built a lightweight task management system for Django projects
Explore this post and more from the django community
I Shared 290+ Python Data Science Videos on YouTube (Tutorials, Projects and Full-Courses)
Hello, I am sharing free Python Data Science Tutorials for over 2 years on YouTube and I wanted to share my playlists. I believe they are great for learning the field, I am sharing them below. Thanks for reading!
Data Science Full Courses & Projects: https://youtube.com/playlist?list=PLTsu3dft3CWiow7L7WrCd27ohlra\_5PGH&si=UTJdXl12Y559xJWj
End-to-End Data Science Projects: https://youtube.com/playlist?list=PLTsu3dft3CWg69zbIVUQtFSRx\_UV80OOg&si=xIU-ja-l-1ys9BmU
AI Tutorials (LangChain, LLMs & OpenAI Api): https://youtube.com/playlist?list=PLTsu3dft3CWhAAPowINZa5cMZ5elpfrxW&si=GyQj2QdJ6dfWjijQ
Machine Learning Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhSJh3x5T6jqPWTTg2i6jp1&si=6EqpB3yhCdwVWo2l
Deep Learning Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWghrjn4PmFZlxVBileBpMjj&si=H6grlZjgBFTpkM36
Natural Language Processing Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWjYPJi5RCCVAF6DxE28LoKD&si=BDEZb2Bfox27QxE4
Time Series Analysis Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWibrBga4nKVEl5NELXnZ402&si=sLvdV59dP-j1QFW2
Streamlit Based Web App Development Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhBViLMhL0Aqb75rkSz\_CL-&si=G10eO6-uh2TjjBiW
Data Cleaning Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhOUPyXdLw8DGy\_1l2oK1yy&si=WoKkxjbfRDKJXsQ1
Data Analysis Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhwPJcaAc-k6a8vAqBx2\_0t&si=gCRR8sW7-f7fquc9
/r/Python
https://redd.it/1kk1hx5
Hello, I am sharing free Python Data Science Tutorials for over 2 years on YouTube and I wanted to share my playlists. I believe they are great for learning the field, I am sharing them below. Thanks for reading!
Data Science Full Courses & Projects: https://youtube.com/playlist?list=PLTsu3dft3CWiow7L7WrCd27ohlra\_5PGH&si=UTJdXl12Y559xJWj
End-to-End Data Science Projects: https://youtube.com/playlist?list=PLTsu3dft3CWg69zbIVUQtFSRx\_UV80OOg&si=xIU-ja-l-1ys9BmU
AI Tutorials (LangChain, LLMs & OpenAI Api): https://youtube.com/playlist?list=PLTsu3dft3CWhAAPowINZa5cMZ5elpfrxW&si=GyQj2QdJ6dfWjijQ
Machine Learning Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhSJh3x5T6jqPWTTg2i6jp1&si=6EqpB3yhCdwVWo2l
Deep Learning Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWghrjn4PmFZlxVBileBpMjj&si=H6grlZjgBFTpkM36
Natural Language Processing Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWjYPJi5RCCVAF6DxE28LoKD&si=BDEZb2Bfox27QxE4
Time Series Analysis Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWibrBga4nKVEl5NELXnZ402&si=sLvdV59dP-j1QFW2
Streamlit Based Web App Development Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhBViLMhL0Aqb75rkSz\_CL-&si=G10eO6-uh2TjjBiW
Data Cleaning Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhOUPyXdLw8DGy\_1l2oK1yy&si=WoKkxjbfRDKJXsQ1
Data Analysis Tutorials: https://youtube.com/playlist?list=PLTsu3dft3CWhwPJcaAc-k6a8vAqBx2\_0t&si=gCRR8sW7-f7fquc9
/r/Python
https://redd.it/1kk1hx5
YouTube
Data Science Full Courses & Projects
Check out the "Data Science Full Courses & Projects" playlist, your go-to spot for diving deep into Data Analysis, Data Visualization, and Machine Learning. ...
Streamlit Alternatives with better State Management
Hi everyone,
I’m a developer at a small company (max 20 users), focusing on internal projects. I’ve built full applications using Python with FastAPI for the backend and React for the frontend. I also have experience with state management tools like Redux (Thunks, Sagas), Zustand, and Tanstack Query.
While FastAPI + React is powerful, it comes with significant overhead. You have to manage endpoints, handle server and client state separately in two different languages, and ensure schema alignment. This becomes cumbersome and slow.
Streamlit, on the other hand, is great for rapid prototyping. Everything is in Python, which is great for our analytics-heavy workflows. The challenge arises when the app gets more complex, mainly due to Streamlit's core principle of full-page re-renders on user input. It impacts speed, interactivity, and the ghost UI elements that make apps look hacky and unprofessional—poor UX overall. The newer versions with fragments help with rerenders, but only to a degree. Workarounds to avoid rerenders often lead to messy, hard-to-maintain code.
I’ve come across Reflex, which seems more state-centric than Streamlit. However, its user base is smaller, and I’m curious if there’s a reason for that. Does anyone have experience with Reflex and can share their insights? Or
/r/Python
https://redd.it/1kk3xtn
Hi everyone,
I’m a developer at a small company (max 20 users), focusing on internal projects. I’ve built full applications using Python with FastAPI for the backend and React for the frontend. I also have experience with state management tools like Redux (Thunks, Sagas), Zustand, and Tanstack Query.
While FastAPI + React is powerful, it comes with significant overhead. You have to manage endpoints, handle server and client state separately in two different languages, and ensure schema alignment. This becomes cumbersome and slow.
Streamlit, on the other hand, is great for rapid prototyping. Everything is in Python, which is great for our analytics-heavy workflows. The challenge arises when the app gets more complex, mainly due to Streamlit's core principle of full-page re-renders on user input. It impacts speed, interactivity, and the ghost UI elements that make apps look hacky and unprofessional—poor UX overall. The newer versions with fragments help with rerenders, but only to a degree. Workarounds to avoid rerenders often lead to messy, hard-to-maintain code.
I’ve come across Reflex, which seems more state-centric than Streamlit. However, its user base is smaller, and I’m curious if there’s a reason for that. Does anyone have experience with Reflex and can share their insights? Or
/r/Python
https://redd.it/1kk3xtn
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
SmolML: Machine Learning from scratch, explained!
# What my project does
Hello everyone! Some months ago I implemented a whole machine learning library from scratch in Python for educational purposes, just looking at the concepts and math behind. No external libraries used.
I've recently added comprehensive guides explaining every concept from the ground up – from automatic differentiation to backpropagation, n-dimensional arrays and tree-based algorithms. This isn't meant to replace production libraries (it's purposely slow since it's pure Python!), but rather to serve as a learning resource for anyone wanting to understand how ML actually works beneath all the abstractions.
The code is fully open source and available here: https://github.com/rodmarkun/SmolML
# Target audience
Students, developers, educators, or basically anyone who wants to learn how ML works on the inside. If you're learning ML or just curious about the inner workings of libraries like Scikit-learn or PyTorch, I'd love to hear your thoughts or feedback!
# Comparison
While other similar projects use already established libraries like NumPy or Scikit-learn, everything in SmolML is made from scratch. Guides are also provided in order to understand every concept included.
/r/Python
https://redd.it/1kjznn4
# What my project does
Hello everyone! Some months ago I implemented a whole machine learning library from scratch in Python for educational purposes, just looking at the concepts and math behind. No external libraries used.
I've recently added comprehensive guides explaining every concept from the ground up – from automatic differentiation to backpropagation, n-dimensional arrays and tree-based algorithms. This isn't meant to replace production libraries (it's purposely slow since it's pure Python!), but rather to serve as a learning resource for anyone wanting to understand how ML actually works beneath all the abstractions.
The code is fully open source and available here: https://github.com/rodmarkun/SmolML
# Target audience
Students, developers, educators, or basically anyone who wants to learn how ML works on the inside. If you're learning ML or just curious about the inner workings of libraries like Scikit-learn or PyTorch, I'd love to hear your thoughts or feedback!
# Comparison
While other similar projects use already established libraries like NumPy or Scikit-learn, everything in SmolML is made from scratch. Guides are also provided in order to understand every concept included.
/r/Python
https://redd.it/1kjznn4
GitHub
GitHub - rodmarkun/SmolML: A fully functional and simple Machine Learning library made entirely from scratch with Python.
A fully functional and simple Machine Learning library made entirely from scratch with Python. - GitHub - rodmarkun/SmolML: A fully functional and simple Machine Learning library made entirely fro...
How to make a flask app access an api via vpn?
Hi guys. I'm new to flask so this question may be a little strange.
I have a flask app that access a rest API that works only in Italy, that works fine in local.
But when I deploy my app on PythonAnywhere or Render, it won't work because it is deployed in europe (I think, like in Frankfurt) and it can't access the api (An error occurred: 403 Client Error: Forbidden for url: https://***.******.com/rest/v1/auth/login)
Is there a way to access to that api and bypass the geoblock like via vpn? And how to implement that in flask?
Any way to solve this situation would be appreciated. Thank You!
/r/flask
https://redd.it/1kk2ts1
Hi guys. I'm new to flask so this question may be a little strange.
I have a flask app that access a rest API that works only in Italy, that works fine in local.
But when I deploy my app on PythonAnywhere or Render, it won't work because it is deployed in europe (I think, like in Frankfurt) and it can't access the api (An error occurred: 403 Client Error: Forbidden for url: https://***.******.com/rest/v1/auth/login)
Is there a way to access to that api and bypass the geoblock like via vpn? And how to implement that in flask?
Any way to solve this situation would be appreciated. Thank You!
/r/flask
https://redd.it/1kk2ts1
Reddit
From the flask community on Reddit
Explore this post and more from the flask community