Trouble with deploying Python programs as internal tools?
Hi all I have been trying to figure out better ways to manage internal tooling. Wondering what are everyones biggest blockers / pain-points when attempting to take a python program, whether it be a simple script, web app, or notebook, and converting it into a usable internal tool at your company?
Could be sharing it, deploying to cloud, building frontend UI, refactoring code to work better with non-technical users, etc.
/r/Python
https://redd.it/1nomupo
Hi all I have been trying to figure out better ways to manage internal tooling. Wondering what are everyones biggest blockers / pain-points when attempting to take a python program, whether it be a simple script, web app, or notebook, and converting it into a usable internal tool at your company?
Could be sharing it, deploying to cloud, building frontend UI, refactoring code to work better with non-technical users, etc.
/r/Python
https://redd.it/1nomupo
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Real-Time BLE Air Quality data into Adafruit IO using python
This project shows how to turn a BleuIO USB dongle into a tiny gateway that streams live air-quality data from a HibouAir sensor straight to Adafruit IO. The python script listens for Bluetooth Low Energy (BLE) advertising packets, decodes CO2, temperature, and humidity, and posts fresh readings to your Adafruit IO feeds every few seconds. The result is a clean, shareable dashboard that updates in real time—perfect for demos, labs, offices, classrooms, and proofs of concept.
Details of this tutorial and source code available at
https://www.bleuio.com/blog/real-time-ble-air-quality-monitoring-with-bleuio-and-adafruit-io/
/r/Python
https://redd.it/1nohze7
This project shows how to turn a BleuIO USB dongle into a tiny gateway that streams live air-quality data from a HibouAir sensor straight to Adafruit IO. The python script listens for Bluetooth Low Energy (BLE) advertising packets, decodes CO2, temperature, and humidity, and posts fresh readings to your Adafruit IO feeds every few seconds. The result is a clean, shareable dashboard that updates in real time—perfect for demos, labs, offices, classrooms, and proofs of concept.
Details of this tutorial and source code available at
https://www.bleuio.com/blog/real-time-ble-air-quality-monitoring-with-bleuio-and-adafruit-io/
/r/Python
https://redd.it/1nohze7
BleuIO - Create Bluetooth Low Energy application
Real-Time BLE Air Quality Monitoring with BleuIO and Adafruit IO - BleuIO - Create Bluetooth Low Energy application
This project shows how to turn a BleuIO USB dongle into a tiny gateway that streams live air-quality data from a HibouAir sensor straight to Adafruit IO. The script listens for Bluetooth Low Energy (BLE) advertising packets, decodes CO2, temperature, and…
Skylos dead code detector
Hola! I'm back! Yeap I've promoted this a couple of times, some of you lurkers might already know this. So anyway I'm back with quite a lot of new updates.
Skylos is yet another static analysis tool for Python codebases written in Python that detects dead code, secrets and dangerous code. Why skylos?
Some features include:
CST-safe removals: Uses LibCST to remove selected imports or functions
Framework-Aware Detection: Attempt at handling Flask, Django, FastAPI routes and decorators .. Still wip
Test File Exclusion: Auto excludes test files (you can include it back if you want)
Interactive Cleanup: Select specific items to remove from CLI
Dangerous Code detection
Secrets detection
CI/CD integration
You can read more in the repo's README
I have also recently released a new VSC extension that will give you feedback everytime you save the file. (search for skylos under the vsc marketplace). Will be releasing for other IDEs down the road.
Future plans in the next update
Expanding to more IDEs
Increasing the capability of the extension
Increasing the capabilities of searching for dead code as well as dangerous code
Target audience:
Python developers
Any collaborators/contributors will be welcome. If you found the repo useful please give it a star. If you
/r/Python
https://redd.it/1noj6sr
Hola! I'm back! Yeap I've promoted this a couple of times, some of you lurkers might already know this. So anyway I'm back with quite a lot of new updates.
Skylos is yet another static analysis tool for Python codebases written in Python that detects dead code, secrets and dangerous code. Why skylos?
Some features include:
CST-safe removals: Uses LibCST to remove selected imports or functions
Framework-Aware Detection: Attempt at handling Flask, Django, FastAPI routes and decorators .. Still wip
Test File Exclusion: Auto excludes test files (you can include it back if you want)
Interactive Cleanup: Select specific items to remove from CLI
Dangerous Code detection
Secrets detection
CI/CD integration
You can read more in the repo's README
I have also recently released a new VSC extension that will give you feedback everytime you save the file. (search for skylos under the vsc marketplace). Will be releasing for other IDEs down the road.
Future plans in the next update
Expanding to more IDEs
Increasing the capability of the extension
Increasing the capabilities of searching for dead code as well as dangerous code
Target audience:
Python developers
Any collaborators/contributors will be welcome. If you found the repo useful please give it a star. If you
/r/Python
https://redd.it/1noj6sr
Reddit
From the Python community on Reddit: Skylos dead code detector
Explore this post and more from the Python community
Django Chat (A project to learn django better)
# Starting My Django-Chat Project (Day 1 Progress)
Hey everyone!
I’ve recently started building Django-Chat, a chat-based web application where users will be able to text other members. I wanted to share my journey here to keep myself accountable and also to get feedback from the community as I go along.
What I worked on today (Day 1):
Set up a fresh Django project
Integrated Tailwind CSS + Flowbite into Django templates
Created Login & Sign Up pages
Built a User model and a signup form
Added two basic functional views to make authentication work
Why I’m sharing this
I’ve got this habit of starting projects but not finishing them . So I thought I’d share progress updates here—it’ll keep me on track and hopefully help me grow as a developer.
What’s next
Improving the UI/UX
Setting up real-time chat functionality (probably with Django Channels + WebSockets)
Slowly refining features while keeping things simple
Feedback
If you’ve got some time, I’d love for you to:
Review the GitHub repo (link below) and share any thoughts on the code
GitHub Repo: https://github.com/Nobody12here/DjangoChat
Thanks a lot, and looking forward to learning from your feedback! 🚀
/r/django
https://redd.it/1noc6wq
# Starting My Django-Chat Project (Day 1 Progress)
Hey everyone!
I’ve recently started building Django-Chat, a chat-based web application where users will be able to text other members. I wanted to share my journey here to keep myself accountable and also to get feedback from the community as I go along.
What I worked on today (Day 1):
Set up a fresh Django project
Integrated Tailwind CSS + Flowbite into Django templates
Created Login & Sign Up pages
Built a User model and a signup form
Added two basic functional views to make authentication work
Why I’m sharing this
I’ve got this habit of starting projects but not finishing them . So I thought I’d share progress updates here—it’ll keep me on track and hopefully help me grow as a developer.
What’s next
Improving the UI/UX
Setting up real-time chat functionality (probably with Django Channels + WebSockets)
Slowly refining features while keeping things simple
Feedback
If you’ve got some time, I’d love for you to:
Review the GitHub repo (link below) and share any thoughts on the code
GitHub Repo: https://github.com/Nobody12here/DjangoChat
Thanks a lot, and looking forward to learning from your feedback! 🚀
/r/django
https://redd.it/1noc6wq
GitHub
GitHub - Nobody12here/DjangoChat
Contribute to Nobody12here/DjangoChat development by creating an account on GitHub.
Plot Twist: After Years of Compiling Python, I’m Now Using AI to Speed It Up
Hi everyone,
This post: https://discuss.python.org/t/ai-python-compiler-transpile-python-to-golang-with-llms-for-10x-perf-gain-pypi-like-service-to-host-transpiled-packages/103759 motivated me to share my own journey with Python performance optimization.
As someone who has been passionate about Python performance in various ways, it's fascinating to see the diverse approaches people take towards it. There's Cython, the Faster CPython project, mypyc, and closer to my heart, Nuitka.
I started my OSS journey by contributing to Nuitka, mainly on the packaging side (support for third-party modules, their data files, and quirks), and eventually became a maintainer.
**A bit about Nuitka and its approach:**
For those unfamiliar, Nuitka is a Python compiler that translates Python code to C++ and then compiles it to machine code. Unlike transpilers that target other high-level languages, Nuitka aims for 100% Python compatibility while delivering significant performance improvements.
What makes Nuitka unique is its approach:
* It performs whole-program optimization by analyzing your entire codebase and its dependencies
* The generated C++ code mimics CPython's behavior closely, ensuring compatibility with even the trickiest Python features (metaclasses, dynamic imports, exec statements, etc.)
* It can create standalone executables that bundle Python and all dependencies, making deployment much simpler
* The optimization happens at multiple levels: from Python AST transformations to C++ compiler optimizations
One of the challenges I worked on was ensuring that
/r/Python
https://redd.it/1np0ijo
Hi everyone,
This post: https://discuss.python.org/t/ai-python-compiler-transpile-python-to-golang-with-llms-for-10x-perf-gain-pypi-like-service-to-host-transpiled-packages/103759 motivated me to share my own journey with Python performance optimization.
As someone who has been passionate about Python performance in various ways, it's fascinating to see the diverse approaches people take towards it. There's Cython, the Faster CPython project, mypyc, and closer to my heart, Nuitka.
I started my OSS journey by contributing to Nuitka, mainly on the packaging side (support for third-party modules, their data files, and quirks), and eventually became a maintainer.
**A bit about Nuitka and its approach:**
For those unfamiliar, Nuitka is a Python compiler that translates Python code to C++ and then compiles it to machine code. Unlike transpilers that target other high-level languages, Nuitka aims for 100% Python compatibility while delivering significant performance improvements.
What makes Nuitka unique is its approach:
* It performs whole-program optimization by analyzing your entire codebase and its dependencies
* The generated C++ code mimics CPython's behavior closely, ensuring compatibility with even the trickiest Python features (metaclasses, dynamic imports, exec statements, etc.)
* It can create standalone executables that bundle Python and all dependencies, making deployment much simpler
* The optimization happens at multiple levels: from Python AST transformations to C++ compiler optimizations
One of the challenges I worked on was ensuring that
/r/Python
https://redd.it/1np0ijo
Discussions on Python.org
"AI Python compiler" - Transpile Python to Golang with LLMs for 10x perf gain? PyPI-like service to host transpiled packages
TL;DR - Imagine you write the code in Python, and in CI an LLM tool rewrites it to Go, and re-exposes the Python API as Python package released with Go equivalent of maturin. You get the speed of Go, but you develop your code in Python. The users of your…
Should the Celery tasks be defined inside the Django application?
I am a little confused about where to define the tasks while working with Celery. What I've seen is that there are two ways to do it.
1. Define the tasks inside the Django application and create a celery.py as the starting point. Then create two Docker containers: one is the Django app, and the other is the Celery worker. So practically, I have two Django apps running, and I can call the Celery task from my Django app easily because it's defined in the same project by using
2. The second way is to have the Celery worker in a different project. So one Docker container will be the Django app, and the second one will be a lighter worker because it's not running the whole Django app. Now, the problem I've seen with this implementation is that because the task is defined in another project, the only way I can call them is to re-implement the task function signature again in the Django app. Therefore, I can reference it using
/r/django
https://redd.it/1np2mv6
I am a little confused about where to define the tasks while working with Celery. What I've seen is that there are two ways to do it.
1. Define the tasks inside the Django application and create a celery.py as the starting point. Then create two Docker containers: one is the Django app, and the other is the Celery worker. So practically, I have two Django apps running, and I can call the Celery task from my Django app easily because it's defined in the same project by using
task1.delay()2. The second way is to have the Celery worker in a different project. So one Docker container will be the Django app, and the second one will be a lighter worker because it's not running the whole Django app. Now, the problem I've seen with this implementation is that because the task is defined in another project, the only way I can call them is to re-implement the task function signature again in the Django app. Therefore, I can reference it using
task1.delay(). But it doesn't look right, because I will have to be aware of changing the function signature in the Django project when it changes in the Celery worker/r/django
https://redd.it/1np2mv6
Why do i keep getting cors errors on my react frontend?
"""
Django settings for complaintbackend project.
Generated by 'django-admin startproject' using Django 5.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/5.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/5.2/ref/settings/
"""
from pathlib import Path
from environs import Env # new
env = Env()
env.readenv()
# Build paths inside the project like this: BASEDIR / 'subdir'.
BASEDIR = Path(file).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRETKEY = env.str("SECRETKEY")
# SECURITY WARNING: don't run with debug turned on in production!
/r/django
https://redd.it/1nnw760
"""
Django settings for complaintbackend project.
Generated by 'django-admin startproject' using Django 5.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/5.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/5.2/ref/settings/
"""
from pathlib import Path
from environs import Env # new
env = Env()
env.readenv()
# Build paths inside the project like this: BASEDIR / 'subdir'.
BASEDIR = Path(file).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRETKEY = env.str("SECRETKEY")
# SECURITY WARNING: don't run with debug turned on in production!
/r/django
https://redd.it/1nnw760
Django Project
Django settings | Django documentation
The web framework for perfectionists with deadlines.
Always supposed to code even after work? How do you stay motivated for side projects without burning out
I keep hearing about the importance of building side projects to stand out and learn new things, but I'm finding it so hard to get motivated. I've been in the industry for a few years, and my work week consistently goes over 40 hours. By the time I'm done with my official work, all I want to do is log off and rest.
But then I see all these amazing projects on this sub, like the command-line music player or innovative apps, and I feel this immense pressure to be constantly building. It feels like to get anywhere—to switch jobs or get a promotion—your "passion" has to be another full-time job. It’s no longer about doing something for fun; it feels like a forced activity to prove you’re an “effective” developer.
On top of that, none of my own apps are making any money, so sometimes it feels like I’m putting in extra effort for zero reward. That makes it even harder to stay motivated when the “side hustle” just feels like… more work.
It feels like the “always-on” culture has crept into our personal time too. Are we really just supposed to be machines that code from morning to night?
How do you
/r/flask
https://redd.it/1np3aq5
I keep hearing about the importance of building side projects to stand out and learn new things, but I'm finding it so hard to get motivated. I've been in the industry for a few years, and my work week consistently goes over 40 hours. By the time I'm done with my official work, all I want to do is log off and rest.
But then I see all these amazing projects on this sub, like the command-line music player or innovative apps, and I feel this immense pressure to be constantly building. It feels like to get anywhere—to switch jobs or get a promotion—your "passion" has to be another full-time job. It’s no longer about doing something for fun; it feels like a forced activity to prove you’re an “effective” developer.
On top of that, none of my own apps are making any money, so sometimes it feels like I’m putting in extra effort for zero reward. That makes it even harder to stay motivated when the “side hustle” just feels like… more work.
It feels like the “always-on” culture has crept into our personal time too. Are we really just supposed to be machines that code from morning to night?
How do you
/r/flask
https://redd.it/1np3aq5
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Should every FastAPI route be async def?
I’m currently learning FastAPI and the course instructor wrote every route handler as async def, even when they only use a synchronous SQLAlchemy session.
I built a mini-project where every single route is async def, just following the way I was taught. Now I’m kind of confused why the instructor would teach it that way.
Here’s my code if anyone wants to take a look:
👉 https://github.com/crstnhllg/studyhub
My questions are:
• Should routes like this actually just be def instead of async def?
• Is it considered bad practice to make everything async by default, even when nothing inside is async?
• For a portfolio project, would it look unprofessional to leave async def everywhere?
Would love to hear how more experienced FastAPI developers handle this. Thanks 🙏
/r/Python
https://redd.it/1np3jz8
I’m currently learning FastAPI and the course instructor wrote every route handler as async def, even when they only use a synchronous SQLAlchemy session.
I built a mini-project where every single route is async def, just following the way I was taught. Now I’m kind of confused why the instructor would teach it that way.
Here’s my code if anyone wants to take a look:
👉 https://github.com/crstnhllg/studyhub
My questions are:
• Should routes like this actually just be def instead of async def?
• Is it considered bad practice to make everything async by default, even when nothing inside is async?
• For a portfolio project, would it look unprofessional to leave async def everywhere?
Would love to hear how more experienced FastAPI developers handle this. Thanks 🙏
/r/Python
https://redd.it/1np3jz8
GitHub
GitHub - crstnhllg/studyhub: StudyHub is a collaborative study management platform built with FastAPI.
StudyHub is a collaborative study management platform built with FastAPI. - crstnhllg/studyhub
Multi-Signal Trading Strategy with RSI and Moving Averages
Created a Python script that combines RSI and moving average indicators to generate trading signals with interactive visualizations.
Tech stack:
pandas-ta for technical indicators
yfinance for data
plotly for interactive charts with subplots
Custom signal logic with confirmation rules
The visualization shows price action, moving averages, RSI, and buy/sell signals all in one interactive chart.
Code walkthrough and explanation given here.
/r/Python
https://redd.it/1np6xet
Created a Python script that combines RSI and moving average indicators to generate trading signals with interactive visualizations.
Tech stack:
pandas-ta for technical indicators
yfinance for data
plotly for interactive charts with subplots
Custom signal logic with confirmation rules
The visualization shows price action, moving averages, RSI, and buy/sell signals all in one interactive chart.
Code walkthrough and explanation given here.
/r/Python
https://redd.it/1np6xet
Adnan's Random bytes
Building Your First Multi-Signal Trading Strategy with RSI and Moving Averages
Step-by-step guide to creating a RSI + Moving Average trading strategy. Includes Python implementation, signal generation rules, and TSLA examples.
Made a FastAPI Project Starter
## What My Project Does
I got tired of setting up FastAPI projects from scratch—databases, auth, background tasks, migrations, Docker… so I built a FastAPI project starter. It scaffolds a production-ready project in seconds, including PostgreSQL (async/sync), Celery+Redis, Loguru logging, Docker, middlewares (RequestID, Timer, CORS), Traefik, and MailPit. Post-deployment hooks start services automatically.
## Target Audience
Backend developers who want to quickly spin up production-ready FastAPI projects, small teams, or solo devs who need a consistent setup across projects.
## Comparison
Compared to starting from scratch or using minimal templates, this starter comes pre-configured with essentials like database, background tasks, logging, Docker, monitoring, and middlewares. Unlike other starters, it has post-deployment hooks and multiple middlewares out of the box, saving setup time and reducing errors.
## Links (for reference)
- GitHub: https://github.com/deveshshrestha20/FastAPIProjectStarter
- PyPI: https://pypi.org/project/fastapi-project-starter/
/r/Python
https://redd.it/1np8iyh
## What My Project Does
I got tired of setting up FastAPI projects from scratch—databases, auth, background tasks, migrations, Docker… so I built a FastAPI project starter. It scaffolds a production-ready project in seconds, including PostgreSQL (async/sync), Celery+Redis, Loguru logging, Docker, middlewares (RequestID, Timer, CORS), Traefik, and MailPit. Post-deployment hooks start services automatically.
## Target Audience
Backend developers who want to quickly spin up production-ready FastAPI projects, small teams, or solo devs who need a consistent setup across projects.
## Comparison
Compared to starting from scratch or using minimal templates, this starter comes pre-configured with essentials like database, background tasks, logging, Docker, monitoring, and middlewares. Unlike other starters, it has post-deployment hooks and multiple middlewares out of the box, saving setup time and reducing errors.
## Links (for reference)
- GitHub: https://github.com/deveshshrestha20/FastAPIProjectStarter
- PyPI: https://pypi.org/project/fastapi-project-starter/
/r/Python
https://redd.it/1np8iyh
Was anyone overwhelmed with official Django tutorial at the start?
This is my first framework I've touched so far. I'm stubborn and won't quit Django but I've been going at the official Django tutorial for the past 4 days and it's just so much. Some of the concepts are confusing and there's so much "magic", don't know how to put it better other than "magic".
Did anyone feel the same when starting out Django? Started with it just because everyone recommended it and feel a bit disheartened that I don't get it straight out the bat, just need some reassurance.
/r/django
https://redd.it/1np9afg
This is my first framework I've touched so far. I'm stubborn and won't quit Django but I've been going at the official Django tutorial for the past 4 days and it's just so much. Some of the concepts are confusing and there's so much "magic", don't know how to put it better other than "magic".
Did anyone feel the same when starting out Django? Started with it just because everyone recommended it and feel a bit disheartened that I don't get it straight out the bat, just need some reassurance.
/r/django
https://redd.it/1np9afg
Reddit
From the django community on Reddit
Explore this post and more from the django community
django-vite static assets being served but not loading on an Nginx deployment
Hello everyone, I've been fighting with this problem for 4 whole days to no avail. I'm trying to deploy a simple project on a local ubuntu server VM using docker. I have three containers, Postgres, nginx and Django. I used a lot of HTMX and DaisyUI, and on my dev environment they worked really nicely being served by a Bun dev server and using django-vite, now that I'm deploying, everything works perfectly fine, except for the static assets generated by django-vite. The weirdest part is the files are being delivered to the clients but not loading correctly (the app renders but only the static assets collected by Django, like icons, are being displayed. If I check the network tab on my devtools i see the django-vite files are being served). Any idea what could be causing this?
Here is my vite.config.mjs
import { defineConfig } from "vite";
import { resolve } from "path";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
base: "/static/",
build: {
manifest: "manifest.json",
/r/djangolearning
https://redd.it/1nok0qn
Hello everyone, I've been fighting with this problem for 4 whole days to no avail. I'm trying to deploy a simple project on a local ubuntu server VM using docker. I have three containers, Postgres, nginx and Django. I used a lot of HTMX and DaisyUI, and on my dev environment they worked really nicely being served by a Bun dev server and using django-vite, now that I'm deploying, everything works perfectly fine, except for the static assets generated by django-vite. The weirdest part is the files are being delivered to the clients but not loading correctly (the app renders but only the static assets collected by Django, like icons, are being displayed. If I check the network tab on my devtools i see the django-vite files are being served). Any idea what could be causing this?
Here is my vite.config.mjs
import { defineConfig } from "vite";
import { resolve } from "path";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
base: "/static/",
build: {
manifest: "manifest.json",
/r/djangolearning
https://redd.it/1nok0qn
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Pyrefly & Instagram - A Case Study on the Pain of Slow Code Navigation
Pyrefly, the new typechecker and language server for Python from Meta, is being battle-tested on Instagram's massive 20M LOC Python codebase. Some of the results have been shared in a new blog post:
> In real world use cases, developers who switched from Pyright (the default LSP for VSCode) to Pyrefly spent 98% less time waiting on hover results and go-to definition was ~10x faster. On the slowest files (p99), these IDE responses grew from an order of minutes to seconds (30x improvement). If those numbers are hard to visualise, the TL;DR is that this upgrade took instagram developers from questioning “is my editor frozen?” to not giving their IDE a second thought.
Full blog post: https://pyrefly.org/blog/2025/09/15/ide-extension/
Disclaimer: I'm one of the maintainers for Pyrefly
/r/Python
https://redd.it/1np9d42
Pyrefly, the new typechecker and language server for Python from Meta, is being battle-tested on Instagram's massive 20M LOC Python codebase. Some of the results have been shared in a new blog post:
> In real world use cases, developers who switched from Pyright (the default LSP for VSCode) to Pyrefly spent 98% less time waiting on hover results and go-to definition was ~10x faster. On the slowest files (p99), these IDE responses grew from an order of minutes to seconds (30x improvement). If those numbers are hard to visualise, the TL;DR is that this upgrade took instagram developers from questioning “is my editor frozen?” to not giving their IDE a second thought.
Full blog post: https://pyrefly.org/blog/2025/09/15/ide-extension/
Disclaimer: I'm one of the maintainers for Pyrefly
/r/Python
https://redd.it/1np9d42
pyrefly.org
Give your Python IDE a Glow-Up with Pyrefly | Pyrefly
Learn how Pyrefly's language server capabilities can help you navigate large Python codebases with ease.
Django Architecture versus FastAPI
After using Django for 10 years, I recently moved to FastAPI. The primary reason revolves around Async I/O, which is possible to do with Django. However, it seems to be easier with FastAPI.
We've been working with college students to give them some development experience. Our company benefits by staying abreast of the latest trends, learning from their wonderful creative ideas and drafting on their awesome energy.
This is the project the students are working with: [FastOpp](https://github.com/Oppkey/fastopp)
Prior to working on FastOpp, all the students were using Django.
These are the shortcomings we encountered with Django:
* **Sync-First Architecture**: Originally designed for synchronous operations
* **Async Retrofitting**: Adding async to existing sync code creates complexity
* **Mixed Patterns**: Developers must constantly think about sync vs async boundaries
* **DRF Complexity**: Additional layer adds complexity for API development
* **Cognitive Overhead**: Managing sync/async transitions can be error-prone
This is a more [detailed comparison](https://github.com/codetricity/htmx-tutorials/tree/main/docs).
As we were experienced with Django, we built tools around FastAPI to make the transition easier. As Django is opinionated and FastAPI is not, we structured the FastAPI tools around our opinion.
Have other people gone on the path of building asynchronous LLM applications with Django and then moved to FastAPI? I would like to hear your experience.
I'll
/r/django
https://redd.it/1npjknw
After using Django for 10 years, I recently moved to FastAPI. The primary reason revolves around Async I/O, which is possible to do with Django. However, it seems to be easier with FastAPI.
We've been working with college students to give them some development experience. Our company benefits by staying abreast of the latest trends, learning from their wonderful creative ideas and drafting on their awesome energy.
This is the project the students are working with: [FastOpp](https://github.com/Oppkey/fastopp)
Prior to working on FastOpp, all the students were using Django.
These are the shortcomings we encountered with Django:
* **Sync-First Architecture**: Originally designed for synchronous operations
* **Async Retrofitting**: Adding async to existing sync code creates complexity
* **Mixed Patterns**: Developers must constantly think about sync vs async boundaries
* **DRF Complexity**: Additional layer adds complexity for API development
* **Cognitive Overhead**: Managing sync/async transitions can be error-prone
This is a more [detailed comparison](https://github.com/codetricity/htmx-tutorials/tree/main/docs).
As we were experienced with Django, we built tools around FastAPI to make the transition easier. As Django is opinionated and FastAPI is not, we structured the FastAPI tools around our opinion.
Have other people gone on the path of building asynchronous LLM applications with Django and then moved to FastAPI? I would like to hear your experience.
I'll
/r/django
https://redd.it/1npjknw
GitHub
GitHub - Oppkey/fastopp: Easier AI Web Apps. FastAPI starter package for AI web applications pre-built admin components for functionality…
Easier AI Web Apps. FastAPI starter package for AI web applications pre-built admin components for functionality comparable to Django. Opinionated philosophy. - Oppkey/fastopp
Teaching my wife python!
Hey fellow redditors, I'm teaching my wife python, and I made a lesson plan to both keep me on track and keep her on track and busy. It seems to be working very well. Sharing it here in case its useful to anyone else. Link
/r/Python
https://redd.it/1nplhop
Hey fellow redditors, I'm teaching my wife python, and I made a lesson plan to both keep me on track and keep her on track and busy. It seems to be working very well. Sharing it here in case its useful to anyone else. Link
/r/Python
https://redd.it/1nplhop
GitHub
GitHub - Skidkidd/Teaching_Python: I created this to teach my wife Python. I'm uploading to help others with teaching Python or…
I created this to teach my wife Python. I'm uploading to help others with teaching Python or learning Python - Skidkidd/Teaching_Python
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/1nps3nn
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/1nps3nn
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Stuck on a Flask Security Issue: Is My Session Management Vulnerable?
I've been working on a small Flask web app with a basic user login system, and I'm getting a little paranoid about security. I've read about a few common vulnerabilities and I want to make sure I'm doing things right before I get too far along.
My app connects to a MySQL database and uses Flask's built-in sessions for user authentication. I've read that session cookies should be set to Secure=true and HttpOnly=true to prevent certain attacks, which I've done. I'm also using parameterized queries to prevent SQL injection, which I know is a huge deal.
My main concern is session management, particularly issues like session fixation and brute-force attacks . I'm wondering if a simple login system is enough, or if I need to be more proactive. I want to protect user credentials and prevent unauthorized access.
How do you guys handle things like locking out users after multiple failed login attempts ? What are your go-to security best practices for production-level Flask applications? Any advice on how to ensure my app is secure before it goes live would be a huge help.
/r/flask
https://redd.it/1npvkdf
I've been working on a small Flask web app with a basic user login system, and I'm getting a little paranoid about security. I've read about a few common vulnerabilities and I want to make sure I'm doing things right before I get too far along.
My app connects to a MySQL database and uses Flask's built-in sessions for user authentication. I've read that session cookies should be set to Secure=true and HttpOnly=true to prevent certain attacks, which I've done. I'm also using parameterized queries to prevent SQL injection, which I know is a huge deal.
My main concern is session management, particularly issues like session fixation and brute-force attacks . I'm wondering if a simple login system is enough, or if I need to be more proactive. I want to protect user credentials and prevent unauthorized access.
How do you guys handle things like locking out users after multiple failed login attempts ? What are your go-to security best practices for production-level Flask applications? Any advice on how to ensure my app is secure before it goes live would be a huge help.
/r/flask
https://redd.it/1npvkdf
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Does Django JSONField deserialize only when accessed, or immediately when the queryset is executed?
I am trying to determine whether Django's JSONField is deserialized when I access other non-JSON fields in a model instance, or if it only deserializes when the JSONField itself is accessed.
/r/django
https://redd.it/1npzz2a
I am trying to determine whether Django's JSONField is deserialized when I access other non-JSON fields in a model instance, or if it only deserializes when the JSONField itself is accessed.
/r/django
https://redd.it/1npzz2a
Reddit
From the django community on Reddit
Explore this post and more from the django community
What small Python automation projects turned out to be the most useful for you?
I’m trying to level up through practice and I’m leaning toward automation simple scripts or tools that actually make life or work easier.
What projects have been the most valuable for you? For example:
data parsers or scrapers
bots (Telegram/Discord)
file or document automation
small data analysis scripts
I’m especially curious about projects that solved a real problem for you, not just tutorial exercises.
I think a list like this could be useful not only for me but also for others looking for practical Python project ideas.
/r/Python
https://redd.it/1nq1588
I’m trying to level up through practice and I’m leaning toward automation simple scripts or tools that actually make life or work easier.
What projects have been the most valuable for you? For example:
data parsers or scrapers
bots (Telegram/Discord)
file or document automation
small data analysis scripts
I’m especially curious about projects that solved a real problem for you, not just tutorial exercises.
I think a list like this could be useful not only for me but also for others looking for practical Python project ideas.
/r/Python
https://redd.it/1nq1588
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Django to FastAPI
We've hit the scaling wall with our decade-old Django monolith. We handle 45,000 requests/minute (RPM) across 1,500+ database tables, and the synchronous ORM calls are now our critical bottleneck, even with async views. We need to migrate to an async-native Python framework.
To survive this migration, the alternative must meet these criteria:
1. Python-Based (for easy code porting).
2. ORM support similar to Django,
3. Stability & Community (not a niche/beta framework).
4. Feature Parity: Must have good equivalents for:
Admin Interface (crucial for ops).
Template system.
Signals/Receivers pattern.
CLI Tools for migrations (
5. We're looking at FastAPI (great async, but lacks ORM/Admin/Migrations batteries) and Sanic, but open to anything.
also please share if you have done this what are your experiences
/r/django
https://redd.it/1nq42ez
We've hit the scaling wall with our decade-old Django monolith. We handle 45,000 requests/minute (RPM) across 1,500+ database tables, and the synchronous ORM calls are now our critical bottleneck, even with async views. We need to migrate to an async-native Python framework.
To survive this migration, the alternative must meet these criteria:
1. Python-Based (for easy code porting).
2. ORM support similar to Django,
3. Stability & Community (not a niche/beta framework).
4. Feature Parity: Must have good equivalents for:
Admin Interface (crucial for ops).
Template system.
Signals/Receivers pattern.
CLI Tools for migrations (
makemigrations, migrate, custom management commands, shell).5. We're looking at FastAPI (great async, but lacks ORM/Admin/Migrations batteries) and Sanic, but open to anything.
also please share if you have done this what are your experiences
/r/django
https://redd.it/1nq42ez
Reddit
From the django community on Reddit
Explore this post and more from the django community