Open-source AI-powered test automation library for mobile and web
Hey [r/Python](/r/Python/),
My name is Alex Rodionov and I'm a tech lead of the Selenium project. For the last 10 months, I’ve been working on **Alumnium**. I've already shared it [2 months ago](https://www.reddit.com/r/Python/comments/1jpo96u/i_built_an_opensource_aipowered_library_for_web/), but since then the project gained a lot of new features, notably:
* mobile applications support via Appium;
* built-in caching for faster test execution;
* fully local model support with Ollama and Mistral Small 3.1.
**What My Project Does**
It's an open-source Python library that automates testing for mobile and web applications by leveraging AI, natural language commands and Appium, Playwright, or Selenium.
**Target Audience**
Test automation engineers or anyone writing tests for web applications. It’s an early-stage project, not ready for production use in complex web applications.
**Comparison**
Unlike other similar projects (Shortest, LaVague, Hercules), Alumnium can be used in existing tests without changes to test runners, reporting tools, or any other test infrastructure. This allows me to gradually migrate my test suites (mostly Selenium) and revert whenever something goes wrong (this happens a lot, to be honest). Other major differences:
* dead cheap (works on low-tier models like gpt-4o-mini, costs $20 per month for 1k+ tests)
* not an AI agent (dumb enough to fail the test rather than working around to
/r/Python
https://redd.it/1kyjmwl
Hey [r/Python](/r/Python/),
My name is Alex Rodionov and I'm a tech lead of the Selenium project. For the last 10 months, I’ve been working on **Alumnium**. I've already shared it [2 months ago](https://www.reddit.com/r/Python/comments/1jpo96u/i_built_an_opensource_aipowered_library_for_web/), but since then the project gained a lot of new features, notably:
* mobile applications support via Appium;
* built-in caching for faster test execution;
* fully local model support with Ollama and Mistral Small 3.1.
**What My Project Does**
It's an open-source Python library that automates testing for mobile and web applications by leveraging AI, natural language commands and Appium, Playwright, or Selenium.
**Target Audience**
Test automation engineers or anyone writing tests for web applications. It’s an early-stage project, not ready for production use in complex web applications.
**Comparison**
Unlike other similar projects (Shortest, LaVague, Hercules), Alumnium can be used in existing tests without changes to test runners, reporting tools, or any other test infrastructure. This allows me to gradually migrate my test suites (mostly Selenium) and revert whenever something goes wrong (this happens a lot, to be honest). Other major differences:
* dead cheap (works on low-tier models like gpt-4o-mini, costs $20 per month for 1k+ tests)
* not an AI agent (dumb enough to fail the test rather than working around to
/r/Python
https://redd.it/1kyjmwl
Reddit
From the Python community on Reddit: I built an open-source AI-powered library for web testing
Explore this post and more from the Python community
Problems with Django Autocomplete Light
So, I'm stuck, I'm trying to make two selection boxes, one to select the state, the other to select the city. Both the code and the html are not crashing, but nothing is being loaded into the selection boxes.
Any help would be greatly appreciated!
#models.py
class City(models.Model):
country = models.CharField(maxlength=50)
state = models.CharField(maxlength=50)
city = models.CharField(maxlength=50)
def str(self):
return f"{self.name}, {self.state}"
class City(models.Model):
country = models.CharField(maxlength=50)
state = models.CharField(maxlength=50)
city = models.CharField(maxlength=50)
def str(self):
return f"{self.name}, {self.state}"
#forms.py
class CreateUserForm(forms.ModelForm):
def init(self, args, kwargs):
super().__init__(args, kwargs)
# Ensure city field has proper empty queryset initially
/r/djangolearning
https://redd.it/1kxt7bn
So, I'm stuck, I'm trying to make two selection boxes, one to select the state, the other to select the city. Both the code and the html are not crashing, but nothing is being loaded into the selection boxes.
Any help would be greatly appreciated!
#models.py
class City(models.Model):
country = models.CharField(maxlength=50)
state = models.CharField(maxlength=50)
city = models.CharField(maxlength=50)
def str(self):
return f"{self.name}, {self.state}"
class City(models.Model):
country = models.CharField(maxlength=50)
state = models.CharField(maxlength=50)
city = models.CharField(maxlength=50)
def str(self):
return f"{self.name}, {self.state}"
#forms.py
class CreateUserForm(forms.ModelForm):
def init(self, args, kwargs):
super().__init__(args, kwargs)
# Ensure city field has proper empty queryset initially
/r/djangolearning
https://redd.it/1kxt7bn
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
R How to add confidence intervals to your LLM-as-a-judge
Hi all – I recently built a system that automatically determines how many LLM-as-a-judge runs you need for statistically reliable scores. Key insight: treat each LLM evaluation as a noisy sample, then use confidence intervals to decide when to stop sampling.
The math shows reliability is surprisingly cheap (95% → 99% confidence only costs 1.7x more), but precision is expensive (doubling scale granularity costs 4x more).Also implemented "mixed-expert sampling" - rotating through multiple models (GPT-4, Claude, etc.) in the same batch for better robustness.
I also analyzed how latency, cost and reliability scale in this approach.Typical result: need 5-20 samples instead of guessing. Especially useful for AI safety evals and model comparisons where reliability matters.
Blog: https://www.sunnybak.net/blog/precision-based-sampling
GitHub: https://github.com/sunnybak/precision-based-sampling/blob/main/mixed\_expert.py
I’d love feedback or pointers to related work.
Thanks!
/r/MachineLearning
https://redd.it/1kyl04x
Hi all – I recently built a system that automatically determines how many LLM-as-a-judge runs you need for statistically reliable scores. Key insight: treat each LLM evaluation as a noisy sample, then use confidence intervals to decide when to stop sampling.
The math shows reliability is surprisingly cheap (95% → 99% confidence only costs 1.7x more), but precision is expensive (doubling scale granularity costs 4x more).Also implemented "mixed-expert sampling" - rotating through multiple models (GPT-4, Claude, etc.) in the same batch for better robustness.
I also analyzed how latency, cost and reliability scale in this approach.Typical result: need 5-20 samples instead of guessing. Especially useful for AI safety evals and model comparisons where reliability matters.
Blog: https://www.sunnybak.net/blog/precision-based-sampling
GitHub: https://github.com/sunnybak/precision-based-sampling/blob/main/mixed\_expert.py
I’d love feedback or pointers to related work.
Thanks!
/r/MachineLearning
https://redd.it/1kyl04x
www.sunnybak.net
How to Add Confidence Intervals to LLM Judges
Precision-Based Sampling for LLM Judges
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1kyq5i2
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1kyq5i2
Redditinc
Reddit Rules
Reddit Rules - Reddit
bulletchess, A high performance chess library
# What My Project Does
`bulletchess` is a high performance chess library, that implements the following and more:
* A complete game model with intuitive representations for pieces, moves, and positions.
* Extensively tested legal move generation, application, and undoing.
* Parsing and writing of positions specified in [Forsyth-Edwards Notation](https://www.chessprogramming.org/Forsyth-Edwards_Notation) (FEN), and moves specified in both [Long Algebraic Notation](https://www.chessprogramming.org/Algebraic_Chess_Notation#Long_Algebraic_Notation_.28LAN.29) and [Standard Algebraic Notation](https://www.chessprogramming.org/Algebraic_Chess_Notation#Standard_Algebraic_Notation_.28SAN.29).
* Methods to determine if a position is check, checkmate, stalemate, and each specific type of draw.
* Efficient hashing of positions using [Zobrist Keys](https://en.wikipedia.org/wiki/Zobrist_hashing).
* A [Portable Game Notation](https://thechessworld.com/articles/general-information/portable-chess-game-notation-pgn-complete-guide/) (PGN) file reader
* Utility functions for writing engines.
`bulletchess` is implemented as a C extension, similar to NumPy.
# Target Audience
I made this library after being frustrated with how slow `python-chess` was at large dataset analysis for machine learning and engine building. I hope it can be useful to anyone else looking for a fast interface to do any kind of chess ML in python.
# Comparison:
`bulletchess` has many of the same features as `python-chess`, but [is much faster](https://zedeckj.github.io/bulletchess/auto-examples/performance.html). I think the syntax of `bulletchess` is also a lot nicer to use. For example, instead of `python-chess`'s
board.piece_at(E1)
`bulletchess` uses:
board[E1]
You can install wheels with,
pip
/r/Python
https://redd.it/1kyoyds
# What My Project Does
`bulletchess` is a high performance chess library, that implements the following and more:
* A complete game model with intuitive representations for pieces, moves, and positions.
* Extensively tested legal move generation, application, and undoing.
* Parsing and writing of positions specified in [Forsyth-Edwards Notation](https://www.chessprogramming.org/Forsyth-Edwards_Notation) (FEN), and moves specified in both [Long Algebraic Notation](https://www.chessprogramming.org/Algebraic_Chess_Notation#Long_Algebraic_Notation_.28LAN.29) and [Standard Algebraic Notation](https://www.chessprogramming.org/Algebraic_Chess_Notation#Standard_Algebraic_Notation_.28SAN.29).
* Methods to determine if a position is check, checkmate, stalemate, and each specific type of draw.
* Efficient hashing of positions using [Zobrist Keys](https://en.wikipedia.org/wiki/Zobrist_hashing).
* A [Portable Game Notation](https://thechessworld.com/articles/general-information/portable-chess-game-notation-pgn-complete-guide/) (PGN) file reader
* Utility functions for writing engines.
`bulletchess` is implemented as a C extension, similar to NumPy.
# Target Audience
I made this library after being frustrated with how slow `python-chess` was at large dataset analysis for machine learning and engine building. I hope it can be useful to anyone else looking for a fast interface to do any kind of chess ML in python.
# Comparison:
`bulletchess` has many of the same features as `python-chess`, but [is much faster](https://zedeckj.github.io/bulletchess/auto-examples/performance.html). I think the syntax of `bulletchess` is also a lot nicer to use. For example, instead of `python-chess`'s
board.piece_at(E1)
`bulletchess` uses:
board[E1]
You can install wheels with,
pip
/r/Python
https://redd.it/1kyoyds
Mastering Modern Time Series Forecasting : The Complete Guide to Statistical, Machine Learning & Dee
I’ve been working on a Python-focused guide called Mastering Modern Time Series Forecasting — aimed at bridging the gap between theory and practice for time series modeling.
It covers a wide range of methods, from traditional models like ARIMA and SARIMA to deep learning approaches like Transformers, N-BEATS, and TFT. The focus is on practical implementation, using libraries like
I’m publishing the guide on Gumroad and LeanPub. I’ll drop a link in the comments in case anyone’s interested.
Always open to feedback from the community — thanks!
/r/Python
https://redd.it/1kz1tkt
I’ve been working on a Python-focused guide called Mastering Modern Time Series Forecasting — aimed at bridging the gap between theory and practice for time series modeling.
It covers a wide range of methods, from traditional models like ARIMA and SARIMA to deep learning approaches like Transformers, N-BEATS, and TFT. The focus is on practical implementation, using libraries like
statsmodels, scikit-learn, PyTorch, and Darts. I also dive into real-world topics like handling messy time series data, feature engineering, and model evaluation.I’m publishing the guide on Gumroad and LeanPub. I’ll drop a link in the comments in case anyone’s interested.
Always open to feedback from the community — thanks!
/r/Python
https://redd.it/1kz1tkt
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
🎉 Introducing TurboDRF - Auto Generate CRUD APIs from your django models
# What My Project Does:
🚀 [TurboDRF](https://github.com/alexandercollins/turbodrf) is a new drf module that auto generates endpoints by adding 1 class mixin to your django models:
- Autogenerate CRUD API endpoints with docs 🎉
- No more writng basic urls, views, view sets or serailizers
- Supports filtering, text search and granular perissions
After many years with DRF and spinning up new projects I've really gotten tired of writing basic views, urls and serializers so I've build turbodrf which will do all that for you.
🔗 You can access it here on my github: [https://github.com/alexandercollins/turbodrf](https://github.com/alexandercollins/turbodrf)
✅ Basically just **add 1 mixin to the model you want to expose as an endpoint** and then 1 method in that model which specifies the fields (could probably move this to Meta tbh) and boom 💥 your API is ready.
📜 It also generates swagger docs, integrates with django's default user permissions (and has its own static role based permission system with field level permissions too), plus you get advanced filtering, full-text search, automatic pagination, nested relationships with double underscore notation, and automatic query optimization with select_related/prefetch_related.
💻 Here's a quick example:
```
class Book(models.Model, TurboDRFMixin):
title = models.CharField(max_length=200)
author = models.ForeignKey(Author, on_delete=models.CASCADE)
price = models.DecimalField(max_digits=10,
/r/Python
https://redd.it/1kyywn0
# What My Project Does:
🚀 [TurboDRF](https://github.com/alexandercollins/turbodrf) is a new drf module that auto generates endpoints by adding 1 class mixin to your django models:
- Autogenerate CRUD API endpoints with docs 🎉
- No more writng basic urls, views, view sets or serailizers
- Supports filtering, text search and granular perissions
After many years with DRF and spinning up new projects I've really gotten tired of writing basic views, urls and serializers so I've build turbodrf which will do all that for you.
🔗 You can access it here on my github: [https://github.com/alexandercollins/turbodrf](https://github.com/alexandercollins/turbodrf)
✅ Basically just **add 1 mixin to the model you want to expose as an endpoint** and then 1 method in that model which specifies the fields (could probably move this to Meta tbh) and boom 💥 your API is ready.
📜 It also generates swagger docs, integrates with django's default user permissions (and has its own static role based permission system with field level permissions too), plus you get advanced filtering, full-text search, automatic pagination, nested relationships with double underscore notation, and automatic query optimization with select_related/prefetch_related.
💻 Here's a quick example:
```
class Book(models.Model, TurboDRFMixin):
title = models.CharField(max_length=200)
author = models.ForeignKey(Author, on_delete=models.CASCADE)
price = models.DecimalField(max_digits=10,
/r/Python
https://redd.it/1kyywn0
GitHub
GitHub - AlexanderCollins/TurboDRF: The dead simple Django REST Framework API generator with role-based permissions
The dead simple Django REST Framework API generator with role-based permissions - AlexanderCollins/TurboDRF
MigrateIt, A database migration tool
# What My Project Does
[MigrateIt](https://github.com/iagocanalejas/MigrateIt) allows to manage your database changes with simple migration files in plain SQL. Allowing to run/rollback them as you wish.
Avoids the need to learn a different sintax to configure database changes allowing to write them in the same SQL dialect your database use.
# Target Audience
Developers tired of having to synchronize databases between different environments or using tools that need to be configured in JSON or native ASTs instead of plain SQL.
# Comparison
Instead of:
```json
{ "databaseChangeLog": [
{
"changeSet": {
"changes": [
{
"createTable": {
"columns": [
{
"column": {
"name": "CREATED_BY",
"type": "VARCHAR2(255 CHAR)"
/r/Python
https://redd.it/1kz30mk
# What My Project Does
[MigrateIt](https://github.com/iagocanalejas/MigrateIt) allows to manage your database changes with simple migration files in plain SQL. Allowing to run/rollback them as you wish.
Avoids the need to learn a different sintax to configure database changes allowing to write them in the same SQL dialect your database use.
# Target Audience
Developers tired of having to synchronize databases between different environments or using tools that need to be configured in JSON or native ASTs instead of plain SQL.
# Comparison
Instead of:
```json
{ "databaseChangeLog": [
{
"changeSet": {
"changes": [
{
"createTable": {
"columns": [
{
"column": {
"name": "CREATED_BY",
"type": "VARCHAR2(255 CHAR)"
/r/Python
https://redd.it/1kz30mk
GitHub
GitHub - iagocanalejas/MigrateIt
Contribute to iagocanalejas/MigrateIt development by creating an account on GitHub.
Functional programming concepts that actually work in Python
Been incorporating more functional programming ideas into my Python/R workflow lately - immutability, composition, higher-order functions. Makes debugging way easier when data doesn't change unexpectedly.
Wrote about some practical FP concepts that work well even in non-functional languages: https://borkar.substack.com/p/why-care-about-functional-programming?r=2qg9ny&utm\_medium=reddit
Anyone else finding FP useful for data work?
/r/Python
https://redd.it/1kz6kx3
Been incorporating more functional programming ideas into my Python/R workflow lately - immutability, composition, higher-order functions. Makes debugging way easier when data doesn't change unexpectedly.
Wrote about some practical FP concepts that work well even in non-functional languages: https://borkar.substack.com/p/why-care-about-functional-programming?r=2qg9ny&utm\_medium=reddit
Anyone else finding FP useful for data work?
/r/Python
https://redd.it/1kz6kx3
Substack
Why You Should Care About Functional Programming (Even in 2025)
A History Lesson and Practical Introduction to Core Tenets of Functional Programming
HELP-Struggling to Scale Django App for High Concurrency
Hi everyone,
I'm working on scaling my Django app and facing performance issues under load. I've 5-6 API which hit concurrently by 300 users. Making almost 1800 request at once. I’ve gone through a bunch of optimizations but still seeing odd behavior.
# Tech Stack
\- Django backend
\- PostgreSQL (AWS RDS)
\- Gunicorn with `gthread` worker class
\- Nginx as reverse proxy
\- Load testing with `k6` (to simulate 500 to 5,000 concurrent requests)
\- Also tested with JMeter — it handles 2,000 requests without crashing
# Server Setup
Setup 1 (Current):
\- 10 EC2 servers
\- 9 Gunicorn `gthread` workers per server
\- 30 threads per worker
\- 4-core CPU per server
Setup 2 (Tested):
\- 2 EC2 servers
\- 21 Gunicorn `gthread` workers per server
\- 30 threads per worker
\- 10-core CPU per server
Note: No PgBouncer or DB connection pooling in use yet.
RDS `max_connections` = 3476.
# Load Test Scenario
\- 5–6 APIs are hit concurrently by around 300 users, totaling approximately 1,800 simultaneous requests.
\- Each API is I/O-bound, with 8–9 DB queries using annotate, aggregate, filter, and other Django ORM queries and some CPU bound logic.
/r/django
https://redd.it/1kzb8h0
Hi everyone,
I'm working on scaling my Django app and facing performance issues under load. I've 5-6 API which hit concurrently by 300 users. Making almost 1800 request at once. I’ve gone through a bunch of optimizations but still seeing odd behavior.
# Tech Stack
\- Django backend
\- PostgreSQL (AWS RDS)
\- Gunicorn with `gthread` worker class
\- Nginx as reverse proxy
\- Load testing with `k6` (to simulate 500 to 5,000 concurrent requests)
\- Also tested with JMeter — it handles 2,000 requests without crashing
# Server Setup
Setup 1 (Current):
\- 10 EC2 servers
\- 9 Gunicorn `gthread` workers per server
\- 30 threads per worker
\- 4-core CPU per server
Setup 2 (Tested):
\- 2 EC2 servers
\- 21 Gunicorn `gthread` workers per server
\- 30 threads per worker
\- 10-core CPU per server
Note: No PgBouncer or DB connection pooling in use yet.
RDS `max_connections` = 3476.
# Load Test Scenario
\- 5–6 APIs are hit concurrently by around 300 users, totaling approximately 1,800 simultaneous requests.
\- Each API is I/O-bound, with 8–9 DB queries using annotate, aggregate, filter, and other Django ORM queries and some CPU bound logic.
/r/django
https://redd.it/1kzb8h0
Reddit
From the django community on Reddit
Explore this post and more from the django community
[R] The Resurrection of the ReLU
Hello everyone, I’d like to share our new preprint on bringing ReLU back into the spotlight.
Over the years, activation functions such as GELU and SiLU have become the default choices in many modern architectures. Yet ReLU has remained popular for its simplicity and sparse activations despite the long-standing “dying ReLU” problem, where inactive neurons stop learning altogether.
Our paper introduces **SUGAR** (Surrogate Gradient Learning for ReLU), a straightforward fix:
* Forward pass: keep the standard ReLU.
* Backward pass: replace its derivative with a smooth surrogate gradient.
This simple swap can be dropped into almost any network—including convolutional nets, transformers, and other modern architectures—without code-level surgery. With it, previously “dead” neurons receive meaningful gradients, improving convergence and generalization while preserving the familiar forward behaviour of ReLU networks.
**Key results**
* Consistent accuracy gains in convolutional networks by stabilising gradient flow—even for inactive neurons.
* Competitive (and sometimes superior) performance compared with GELU-based models, while retaining the efficiency and sparsity of ReLU.
* Smoother loss landscapes and faster, more stable training—all without architectural changes.
We believe this reframes ReLU not as a legacy choice but as a revitalised classic made relevant through careful gradient handling. I’d be happy to hear any feedback or questions you have.
**Paper:** [https://arxiv.org/pdf/2505.22074](https://arxiv.org/pdf/2505.22074)
\[Throwaway because I do
/r/MachineLearning
https://redd.it/1kz5t16
Hello everyone, I’d like to share our new preprint on bringing ReLU back into the spotlight.
Over the years, activation functions such as GELU and SiLU have become the default choices in many modern architectures. Yet ReLU has remained popular for its simplicity and sparse activations despite the long-standing “dying ReLU” problem, where inactive neurons stop learning altogether.
Our paper introduces **SUGAR** (Surrogate Gradient Learning for ReLU), a straightforward fix:
* Forward pass: keep the standard ReLU.
* Backward pass: replace its derivative with a smooth surrogate gradient.
This simple swap can be dropped into almost any network—including convolutional nets, transformers, and other modern architectures—without code-level surgery. With it, previously “dead” neurons receive meaningful gradients, improving convergence and generalization while preserving the familiar forward behaviour of ReLU networks.
**Key results**
* Consistent accuracy gains in convolutional networks by stabilising gradient flow—even for inactive neurons.
* Competitive (and sometimes superior) performance compared with GELU-based models, while retaining the efficiency and sparsity of ReLU.
* Smoother loss landscapes and faster, more stable training—all without architectural changes.
We believe this reframes ReLU not as a legacy choice but as a revitalised classic made relevant through careful gradient handling. I’d be happy to hear any feedback or questions you have.
**Paper:** [https://arxiv.org/pdf/2505.22074](https://arxiv.org/pdf/2505.22074)
\[Throwaway because I do
/r/MachineLearning
https://redd.it/1kz5t16
Windows Task Scheduler & Simple Python Scripts
Putting this out there, for others to find, as other posts on this topic are "closed and archived", so I can't add to them.
Recurring issues with strange errors, and 0x1 results when trying to automate simple python scripts. (to accomplish simple tasks!)
Scripts work flawlessly in a command window, but the moment you try and automate... well... fail.
Lost a number of hours.
Anyhow - simple solution in the end - the extra "pip install" commands I had used in the command prompt, are "temporary", and disappear with the command prompt.
So - when scheduling these scripts (my first time doing this), the solution in the end was a batch file, that FIRST runs the py -m pip install "requests" first, that pulls in what my script needs... and then runs the actual script.
my batch:
py.exe -m pip install "requests"
py.exe fixip3.py
Working perfectly every time, I'm not even logged in... running in the background, just the way I need it to.
Hope that helps someone else!
Andrew
/r/Python
https://redd.it/1kzcj8w
Putting this out there, for others to find, as other posts on this topic are "closed and archived", so I can't add to them.
Recurring issues with strange errors, and 0x1 results when trying to automate simple python scripts. (to accomplish simple tasks!)
Scripts work flawlessly in a command window, but the moment you try and automate... well... fail.
Lost a number of hours.
Anyhow - simple solution in the end - the extra "pip install" commands I had used in the command prompt, are "temporary", and disappear with the command prompt.
So - when scheduling these scripts (my first time doing this), the solution in the end was a batch file, that FIRST runs the py -m pip install "requests" first, that pulls in what my script needs... and then runs the actual script.
my batch:
py.exe -m pip install "requests"
py.exe fixip3.py
Working perfectly every time, I'm not even logged in... running in the background, just the way I need it to.
Hope that helps someone else!
Andrew
/r/Python
https://redd.it/1kzcj8w
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
What is the best way to parse log files?
Hi,
I usually have to extract specific data from logs and display it in a certain way, or do other things.
The thing is those logs are tens of thousands of lines sometimes so I have to use a very specific Regex for each entry.
It is not just straight up "if a line starts with X take it" no, sometimes I have to get lists that are nested really deep.
Another problem is sometimes the logs change and I have to adjust the Regex to the new change which takes time
What would you use best to analyse these logs? I can't use any external software since the data I work with is extremely confidential.
Thanks!
/r/Python
https://redd.it/1kzhq0i
Hi,
I usually have to extract specific data from logs and display it in a certain way, or do other things.
The thing is those logs are tens of thousands of lines sometimes so I have to use a very specific Regex for each entry.
It is not just straight up "if a line starts with X take it" no, sometimes I have to get lists that are nested really deep.
Another problem is sometimes the logs change and I have to adjust the Regex to the new change which takes time
What would you use best to analyse these logs? I can't use any external software since the data I work with is extremely confidential.
Thanks!
/r/Python
https://redd.it/1kzhq0i
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
After 3 Years and 130k LOC, My Django + Rust Financial Planning App is Live
Hey all,
After about three years of development and ~130k lines of Rust and Python, I’ve just deployed the beta version of my self-directed financial planning web app:
https://finstant.com.au
It’s built with Django (using templates and CBVs) and HTMX for interactivity. The core modelling logic is written in Rust, exposed to Python using pyo3/maturin. This is my first proper web dev project, so I kept the frontend stack deliberately simple.
The app automates financial modelling for many of the most common strategies used in Australian financial advice — things like debt recycling, contribution strategy optimisation, investment structuring comparisons, and more. It also allows users to build custom goal-based scenarios.
It’s still in beta, so there might be a few rough edges — but I’d really appreciate any feedback, especially from Australians who can put the modelling through its paces.
Happy to answer any questions about the stack, modelling approach, or lessons learned along the way. Thanks!
/r/django
https://redd.it/1kypyhs
Hey all,
After about three years of development and ~130k lines of Rust and Python, I’ve just deployed the beta version of my self-directed financial planning web app:
https://finstant.com.au
It’s built with Django (using templates and CBVs) and HTMX for interactivity. The core modelling logic is written in Rust, exposed to Python using pyo3/maturin. This is my first proper web dev project, so I kept the frontend stack deliberately simple.
The app automates financial modelling for many of the most common strategies used in Australian financial advice — things like debt recycling, contribution strategy optimisation, investment structuring comparisons, and more. It also allows users to build custom goal-based scenarios.
It’s still in beta, so there might be a few rough edges — but I’d really appreciate any feedback, especially from Australians who can put the modelling through its paces.
Happy to answer any questions about the stack, modelling approach, or lessons learned along the way. Thanks!
/r/django
https://redd.it/1kypyhs
finstant.com.au
Finstant | Online Financial Planning Software for Individuals
Create your own personalised financial plan with Finstant. Explore expert-designed strategies for budgeting, investing, retirement planning, and buying your first home—all in one powerful, self-guided platform.
What is the best free way to host my Python Flask app online 24/7?
I recently built a notification application using React and Flask. The Python script responsible for sending reminders have to be online 24/7 since it needs to fetch data on regular intervals from Firebase and notify users.
Right now, I’m looking for a **free solution** to host this script so that it can run continuously in the background.
I've researched a few options:
* **Render Background Worker** – looks good but not free.
* **GitHub Actions** – possible but feels hacky and might not be reliable long-term.
* **PythonAnywhere** – seems promising, but wondering if there are better alternatives.
Has anyone found a reliable **free** way to keep such a Python script running continuously? Open to cloud functions, cron-like services, or anything else that works.
/r/flask
https://redd.it/1kz5wle
I recently built a notification application using React and Flask. The Python script responsible for sending reminders have to be online 24/7 since it needs to fetch data on regular intervals from Firebase and notify users.
Right now, I’m looking for a **free solution** to host this script so that it can run continuously in the background.
I've researched a few options:
* **Render Background Worker** – looks good but not free.
* **GitHub Actions** – possible but feels hacky and might not be reliable long-term.
* **PythonAnywhere** – seems promising, but wondering if there are better alternatives.
Has anyone found a reliable **free** way to keep such a Python script running continuously? Open to cloud functions, cron-like services, or anything else that works.
/r/flask
https://redd.it/1kz5wle
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
I made a 100% FREE AI Image Generator - Flask, Diffusers & Pytorch - Check It Out!
https://codejana.com/free-ai-image-generator-ai-art-generator/
/r/flask
https://redd.it/1kzch43
https://codejana.com/free-ai-image-generator-ai-art-generator/
/r/flask
https://redd.it/1kzch43
Code Jana
🎨 FREE AI Image Generator 2025: Meet CDAI Lite – The Ultimate FREE AI Art Generator 2025 - Code Jana
Free AI Image Generator - Generate beautiful AI images for free — whether it's for fun, for print-on-demand designs, educational projects, or AI art inspiration
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1kzjfrf
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1kzjfrf
YouTube
Data Structures and Algorithms in Python - Full Course for Beginners
A beginner-friendly introduction to common data structures (linked lists, stacks, queues, graphs) and algorithms (search, sorting, recursion, dynamic programming) in Python. This course will help you prepare for coding interviews and assessments.
🔗 Course…
🔗 Course…
D Monthly Who's Hiring and Who wants to be Hired?
For Job Postings please use this template
>Hiring: [Location\], Salary:[\], [Remote | Relocation\], [Full Time | Contract | Part Time\] and [Brief overview, what you're looking for\]
For Those looking for jobs please use this template
>Want to be Hired: [Location\], Salary Expectation:[\], [Remote | Relocation\], [Full Time | Contract | Part Time\] Resume: [Link to resume\] and [Brief overview, what you're looking for\]
​
Please remember that this community is geared towards those with experience.
/r/MachineLearning
https://redd.it/1kzmd2e
For Job Postings please use this template
>Hiring: [Location\], Salary:[\], [Remote | Relocation\], [Full Time | Contract | Part Time\] and [Brief overview, what you're looking for\]
For Those looking for jobs please use this template
>Want to be Hired: [Location\], Salary Expectation:[\], [Remote | Relocation\], [Full Time | Contract | Part Time\] Resume: [Link to resume\] and [Brief overview, what you're looking for\]
​
Please remember that this community is geared towards those with experience.
/r/MachineLearning
https://redd.it/1kzmd2e
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
D Chart shows that FP8 for training becoming more popular
https://preview.redd.it/h17gse15qy3f1.png?width=1200&format=png&auto=webp&s=585c06a9cefa61f1f6ad571c1741a371ee0ee820
https://x.com/EpochAIResearch/status/1927826918159655116
/r/MachineLearning
https://redd.it/1kzbphg
https://preview.redd.it/h17gse15qy3f1.png?width=1200&format=png&auto=webp&s=585c06a9cefa61f1f6ad571c1741a371ee0ee820
https://x.com/EpochAIResearch/status/1927826918159655116
/r/MachineLearning
https://redd.it/1kzbphg
Learning CBVs and guidance
Hi all, i'm currently learning Class based views, and i just want to make sure i'm doing everything as "standard" and actually doing this correct, thanks in advance! This is all just a test-project and learning purposes also.
To start off, i've got my own package which i created, and essentially works as a mini 'git', i recreated the normal fundamentals (repo, commit, etc).
I wanted "users" to be able to create a Repo, view the repo, and add files/documents.
to start with, i created an app called minigit_viewer. Inside i have a few urls:
urlpatterns =
path("repo/new/", RepoCreateForm.as_view(), name="repo_new"),
path("repo/<int:pk>/", RepoViewForm.as_view(), name="repo_view"),
And in my views i have:
class RepoViewForm(DetailView):
model = RepositoryModel
templatename = "minigitviewer/repoformview.html"
def getcontextdata(self, kwargs):
context = super().getcontextdata(kwargs)
return context
class RepoCreateForm(SuccessMessageMixin, CreateView):
model = RepositoryModel
fields =
/r/djangolearning
https://redd.it/1kz0zqi
Hi all, i'm currently learning Class based views, and i just want to make sure i'm doing everything as "standard" and actually doing this correct, thanks in advance! This is all just a test-project and learning purposes also.
To start off, i've got my own package which i created, and essentially works as a mini 'git', i recreated the normal fundamentals (repo, commit, etc).
I wanted "users" to be able to create a Repo, view the repo, and add files/documents.
to start with, i created an app called minigit_viewer. Inside i have a few urls:
urlpatterns =
path("repo/new/", RepoCreateForm.as_view(), name="repo_new"),
path("repo/<int:pk>/", RepoViewForm.as_view(), name="repo_view"),
And in my views i have:
class RepoViewForm(DetailView):
model = RepositoryModel
templatename = "minigitviewer/repoformview.html"
def getcontextdata(self, kwargs):
context = super().getcontextdata(kwargs)
return context
class RepoCreateForm(SuccessMessageMixin, CreateView):
model = RepositoryModel
fields =
/r/djangolearning
https://redd.it/1kz0zqi
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community