ttkbootstrap-icons 2.0 supports 8 new icon sets! material, font-awesome, remix, fluent, etc...
I'm excited to announce that ttkbootstrap-icons 2.0 has been release and now supports 8 new icon sets.
The icon sets are extensions and can be installed as needed for your project. Bootstrap icons are included by default, but you can now install the following icon providers:
pip install ttkbootstrap-icons-fa # Font Awesome (Free)
pip install ttkbootstrap-icons-fluent # Fluent System Icons
pip install ttkbootstrap-icons-gmi # Google Material Icons
pip install ttkbootstrap-icons-ion # Ionicons v2 (font)
pip install ttkbootstrap-icons-lucide # Lucide Icons
pip install ttkbootstrap-icons-mat # Material Design Icons (MDI)
pip install ttkbootstrap-icons-remix # Remix Icon
pip install ttkbootstrap-icons-simple # Simple Icons (community font)
pip install ttkbootstrap-icons-weather # Weather Icons
After installing, run `ttkbootstrap-icons` from your command line and you can preview and search for icons in any installed icon provider.
israel-dryer/ttkbootstrap-icons: Font-based icons for Tkinter/ttkbootstrap with a built-in Bootstrap set and installable providers: Font
/r/Python
[https://redd.it/1oh3x1p
I'm excited to announce that ttkbootstrap-icons 2.0 has been release and now supports 8 new icon sets.
The icon sets are extensions and can be installed as needed for your project. Bootstrap icons are included by default, but you can now install the following icon providers:
pip install ttkbootstrap-icons-fa # Font Awesome (Free)
pip install ttkbootstrap-icons-fluent # Fluent System Icons
pip install ttkbootstrap-icons-gmi # Google Material Icons
pip install ttkbootstrap-icons-ion # Ionicons v2 (font)
pip install ttkbootstrap-icons-lucide # Lucide Icons
pip install ttkbootstrap-icons-mat # Material Design Icons (MDI)
pip install ttkbootstrap-icons-remix # Remix Icon
pip install ttkbootstrap-icons-simple # Simple Icons (community font)
pip install ttkbootstrap-icons-weather # Weather Icons
After installing, run `ttkbootstrap-icons` from your command line and you can preview and search for icons in any installed icon provider.
israel-dryer/ttkbootstrap-icons: Font-based icons for Tkinter/ttkbootstrap with a built-in Bootstrap set and installable providers: Font
/r/Python
[https://redd.it/1oh3x1p
Reddit
From the Python community on Reddit: ttkbootstrap-icons 2.0 supports 8 new icon sets! material, font-awesome, remix, fluent, etc...
Explore this post and more from the Python community
Google PhD Fellowship recipients 2025 D
Google have just announced the 2025 recipients.
What are the criteria to get this fellowship?
https://research.google/programs-and-events/phd-fellowship/recipients/
/r/MachineLearning
https://redd.it/1ogy6z9
Google have just announced the 2025 recipients.
What are the criteria to get this fellowship?
https://research.google/programs-and-events/phd-fellowship/recipients/
/r/MachineLearning
https://redd.it/1ogy6z9
research.google
Google PhD Fellowship recipients
The Google PhD Fellowship Program recognizes outstanding graduate students doing exceptional work in computer science, related disciplines, or promising research areas. Meet the recipients.
Duron - Durable async runtime for Python
Hi r/Python!
I built **Duron**, a lightweight **durable execution runtime** for Python async workflows. It provides replayable execution primitives that can work standalone or serve as building blocks for complex workflow engines.
**GitHub:** [https://github.com/brian14708/duron](https://github.com/brian14708/duron)
## What My Project Does
Duron helps you write Python async workflows that can pause, resume, and continue even after a crash or restart.
It captures and replays async function progress through deterministic logs and pluggable storage backends, allowing consistent recovery and integration with custom workflow systems.
## Target Audience
* Embed simple durable workflows into application
* Building custom durable execution engines
* Exploring ideas for interactive, durable agents
## Comparison
Compared to temporal.io or restate.dev:
- Focuses purely on Python async runtime, not distributed scheduling or other languages
- Keeps things lightweight and embeddable
- Experimental features: tracing, signals, and streams
---
Still early-stage and experimental — any feedback, thoughts, or contributions are very welcome!
/r/Python
https://redd.it/1ohbuhl
Hi r/Python!
I built **Duron**, a lightweight **durable execution runtime** for Python async workflows. It provides replayable execution primitives that can work standalone or serve as building blocks for complex workflow engines.
**GitHub:** [https://github.com/brian14708/duron](https://github.com/brian14708/duron)
## What My Project Does
Duron helps you write Python async workflows that can pause, resume, and continue even after a crash or restart.
It captures and replays async function progress through deterministic logs and pluggable storage backends, allowing consistent recovery and integration with custom workflow systems.
## Target Audience
* Embed simple durable workflows into application
* Building custom durable execution engines
* Exploring ideas for interactive, durable agents
## Comparison
Compared to temporal.io or restate.dev:
- Focuses purely on Python async runtime, not distributed scheduling or other languages
- Keeps things lightweight and embeddable
- Experimental features: tracing, signals, and streams
---
Still early-stage and experimental — any feedback, thoughts, or contributions are very welcome!
/r/Python
https://redd.it/1ohbuhl
GitHub
GitHub - brian14708/duron: 🌀 Durable async runtime for Python
🌀 Durable async runtime for Python. Contribute to brian14708/duron development by creating an account on GitHub.
The PSF has withdrawn $1.5 million proposal to US government grant program
In January 2025, the PSF submitted a proposal to the US government National Science Foundation under the Safety, Security, and Privacy of Open Source Ecosystems program to address structural vulnerabilities in Python and PyPI. It was the PSF’s first time applying for government funding, and navigating the intensive process was a steep learning curve for our small team to climb. Seth Larson, PSF Security Developer in Residence, serving as Principal Investigator (PI) with Loren Crary, PSF Deputy Executive Director, as co-PI, led the multi-round proposal writing process as well as the months-long vetting process. We invested our time and effort because we felt the PSF’s work is a strong fit for the program and that the benefit to the community if our proposal were accepted was considerable.
We were honored when, after many months of work, our proposal was recommended for funding, particularly as only 36% of new NSF grant applicants are successful on their first attempt. We became concerned, however, when we were presented with the terms and conditions we would be required to agree to if we accepted the grant. These terms included affirming the statement that we “do not, and will not during the term of this financial
/r/Python
https://redd.it/1ohh6v2
In January 2025, the PSF submitted a proposal to the US government National Science Foundation under the Safety, Security, and Privacy of Open Source Ecosystems program to address structural vulnerabilities in Python and PyPI. It was the PSF’s first time applying for government funding, and navigating the intensive process was a steep learning curve for our small team to climb. Seth Larson, PSF Security Developer in Residence, serving as Principal Investigator (PI) with Loren Crary, PSF Deputy Executive Director, as co-PI, led the multi-round proposal writing process as well as the months-long vetting process. We invested our time and effort because we felt the PSF’s work is a strong fit for the program and that the benefit to the community if our proposal were accepted was considerable.
We were honored when, after many months of work, our proposal was recommended for funding, particularly as only 36% of new NSF grant applicants are successful on their first attempt. We became concerned, however, when we were presented with the terms and conditions we would be required to agree to if we accepted the grant. These terms included affirming the statement that we “do not, and will not during the term of this financial
/r/Python
https://redd.it/1ohh6v2
NSF - National Science Foundation
Safety, Security, and Privacy of Open-Source Ecosystems (Safe-OSE)
Retry manager for arbitrary code block
There are about two pages of retry decorators in Pypi. I know about it. But, I found one case which is not covered by all other retries libraries (correct me if I'm wrong).
I needed to retry an arbitrary block of code, and not to be limited to a lambda or a function.
So, I wrote a library loopretry which does this. It combines an iterator with a context manager to wrap any block into retry.
from loopretry import retries
import time
for retry in retries(10):
with retry():
# any code you want to retry in case of exception
print(time.time())
assert int(time.time()) % 10 == 0, "Not a round number!"
Is it a novel approach or not?
Library code (any critique is highly welcomed): at Github.
If you want to try it:
/r/Python
https://redd.it/1ohczpq
There are about two pages of retry decorators in Pypi. I know about it. But, I found one case which is not covered by all other retries libraries (correct me if I'm wrong).
I needed to retry an arbitrary block of code, and not to be limited to a lambda or a function.
So, I wrote a library loopretry which does this. It combines an iterator with a context manager to wrap any block into retry.
from loopretry import retries
import time
for retry in retries(10):
with retry():
# any code you want to retry in case of exception
print(time.time())
assert int(time.time()) % 10 == 0, "Not a round number!"
Is it a novel approach or not?
Library code (any critique is highly welcomed): at Github.
If you want to try it:
pip install loopretry./r/Python
https://redd.it/1ohczpq
Reddit
From the Python community on Reddit: Retry manager for arbitrary code block
Explore this post and more from the Python community
The State of Django 2025 is here – 4,600+ developers share how they use Django
/r/django
https://redd.it/1ohlesf
/r/django
https://redd.it/1ohlesf
Looking for a python course that’s worth it
Hi I am a BSBA major graduating this semester and have very basic experience with python. I am looking for a course that’s worth it and that would give me a solid foundation. Thanks
/r/Python
https://redd.it/1ohe75v
Hi I am a BSBA major graduating this semester and have very basic experience with python. I am looking for a course that’s worth it and that would give me a solid foundation. Thanks
/r/Python
https://redd.it/1ohe75v
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Lightweight Python Implementation of Shamir's Secret Sharing with Verifiable Shares
Hi r/Python!
I built a lightweight Python library for Shamir's Secret Sharing (SSS), which splits secrets (like keys) into shares, needing only a threshold to reconstruct. It also supports Feldman's Verifiable Secret Sharing to check share validity securely.
What my project does
Basically you have a secret(a password, a key, an access token, an API token, password for your cryptowallet, a secret formula/recipe, codes for nuclear missiles). You can split your secret in n shares between your friends, coworkers, partner etc. and to reconstruct your secret you will need at least k shares. For example: total of 5 shares but you need at least 3 to recover the secret). An impostor having less than k shares learns nothing about the secret(for context if he has 2 out of 3 shares he can't recover the secret even with unlimited computing power - unless he exploits the discrete log problem but this is infeasible for current computers). If you want to you can not to use this Feldman's scheme(which verifies the share) so your secret is safe even with unlimited computing power, even with unlimited quantum computers - mathematically with fewer than k shares it is impossible to recover the secret
Features:
Minimal deps (pycryptodome), pure Python.
/r/Python
https://redd.it/1oh8yh4
Hi r/Python!
I built a lightweight Python library for Shamir's Secret Sharing (SSS), which splits secrets (like keys) into shares, needing only a threshold to reconstruct. It also supports Feldman's Verifiable Secret Sharing to check share validity securely.
What my project does
Basically you have a secret(a password, a key, an access token, an API token, password for your cryptowallet, a secret formula/recipe, codes for nuclear missiles). You can split your secret in n shares between your friends, coworkers, partner etc. and to reconstruct your secret you will need at least k shares. For example: total of 5 shares but you need at least 3 to recover the secret). An impostor having less than k shares learns nothing about the secret(for context if he has 2 out of 3 shares he can't recover the secret even with unlimited computing power - unless he exploits the discrete log problem but this is infeasible for current computers). If you want to you can not to use this Feldman's scheme(which verifies the share) so your secret is safe even with unlimited computing power, even with unlimited quantum computers - mathematically with fewer than k shares it is impossible to recover the secret
Features:
Minimal deps (pycryptodome), pure Python.
/r/Python
https://redd.it/1oh8yh4
Reddit
Python
The official Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language.
---
If you have questions or are new to Python use r/LearnPython
---
If you have questions or are new to Python use r/LearnPython
Python Foundation goes ride or DEI, rejects government grant with strings attached
https://www.theregister.com/2025/10/27/pythonfoundationabandons15mnsf/
> The Python Software Foundation (PSF) has walked away from a $1.5 million government grant and you can blame the Trump administration's war on woke for effectively weakening some open source security.
/r/Python
https://redd.it/1ohqqgc
https://www.theregister.com/2025/10/27/pythonfoundationabandons15mnsf/
> The Python Software Foundation (PSF) has walked away from a $1.5 million government grant and you can blame the Trump administration's war on woke for effectively weakening some open source security.
/r/Python
https://redd.it/1ohqqgc
Reddit
From the Python community on Reddit: Python Foundation goes ride or DEI, rejects government grant with strings attached
Explore this post and more from the Python community
R PKBoost: Gradient boosting that stays accurate under data drift (2% degradation vs XGBoost's 32%)
I've been working on a gradient boosting implementation that handles two problems I kept running into with XGBoost/LightGBM in production:
1. Performance collapse on extreme imbalance (under 1% positive class)
2. Silent degradation when data drifts (sensor drift, behavior changes, etc.)
Key Results
Imbalanced data (Credit Card Fraud - 0.2% positives):
- PKBoost: 87.8% PR-AUC
- LightGBM: 79.3% PR-AUC
- XGBoost: 74.5% PR-AUC
Under realistic drift (gradual covariate shift):
\- PKBoost: 86.2% PR-AUC (−2.0% degradation)
\- XGBoost: 50.8% PR-AUC (−31.8% degradation)
\- LightGBM: 45.6% PR-AUC (−42.5% degradation)
What's Different
The main innovation is using Shannon entropy in the split criterion alongside gradients. Each split maximizes:
Gain = GradientGain + λ·InformationGain
where λ adapts based on class imbalance. This explicitly optimizes for information gain on the minority class instead of just minimizing loss.
Combined with:
\- Quantile-based binning (robust to scale shifts)
\- Conservative regularization (prevents overfitting to majority)
\- PR-AUC early stopping (focuses on minority performance)
The architecture is inherently more robust to drift without needing online adaptation.
Trade-offs
The good:
\- Auto-tunes for your data (no hyperparameter search needed)
\- Works out-of-the-box on extreme imbalance
\- Comparable inference speed to XGBoost
The honest:
\- \~2-4x slower training (45s vs 12s on 170K samples)
\- Slightly behind on balanced data (use XGBoost there)
\- Built in Rust, so less Python ecosystem integration
Why I'm Sharing
This started as
/r/MachineLearning
https://redd.it/1ohbdgu
I've been working on a gradient boosting implementation that handles two problems I kept running into with XGBoost/LightGBM in production:
1. Performance collapse on extreme imbalance (under 1% positive class)
2. Silent degradation when data drifts (sensor drift, behavior changes, etc.)
Key Results
Imbalanced data (Credit Card Fraud - 0.2% positives):
- PKBoost: 87.8% PR-AUC
- LightGBM: 79.3% PR-AUC
- XGBoost: 74.5% PR-AUC
Under realistic drift (gradual covariate shift):
\- PKBoost: 86.2% PR-AUC (−2.0% degradation)
\- XGBoost: 50.8% PR-AUC (−31.8% degradation)
\- LightGBM: 45.6% PR-AUC (−42.5% degradation)
What's Different
The main innovation is using Shannon entropy in the split criterion alongside gradients. Each split maximizes:
Gain = GradientGain + λ·InformationGain
where λ adapts based on class imbalance. This explicitly optimizes for information gain on the minority class instead of just minimizing loss.
Combined with:
\- Quantile-based binning (robust to scale shifts)
\- Conservative regularization (prevents overfitting to majority)
\- PR-AUC early stopping (focuses on minority performance)
The architecture is inherently more robust to drift without needing online adaptation.
Trade-offs
The good:
\- Auto-tunes for your data (no hyperparameter search needed)
\- Works out-of-the-box on extreme imbalance
\- Comparable inference speed to XGBoost
The honest:
\- \~2-4x slower training (45s vs 12s on 170K samples)
\- Slightly behind on balanced data (use XGBoost there)
\- Built in Rust, so less Python ecosystem integration
Why I'm Sharing
This started as
/r/MachineLearning
https://redd.it/1ohbdgu
Reddit
From the MachineLearning community on Reddit: [R] PKBoost: Gradient boosting that stays accurate under data drift (2% degradation…
Explore this post and more from the MachineLearning community
Tuesday Daily Thread: Advanced questions
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1ohusug
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1ohusug
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Python mobile app
Hi, i just wanted to ask what to build my finance tracker app on, since I want others to use it too, so im looking for some good options.
/r/Python
https://redd.it/1ohuito
Hi, i just wanted to ask what to build my finance tracker app on, since I want others to use it too, so im looking for some good options.
/r/Python
https://redd.it/1ohuito
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
A Flask based service idea with supabase db and auth any thoughts on this
/r/flask
https://redd.it/1ohs5sz
/r/flask
https://redd.it/1ohs5sz
How I can use Django with MongoDB to have similar workflow when use Django with PostgreSQL?
I’m working on a project where I want to use the Django + Django ninja + MongoDb. I want a suggestions on this if I choose a good stack or not. If someone already has used these and have experience on them. Please provide suggestions on this?
/r/django
https://redd.it/1ohzim8
I’m working on a project where I want to use the Django + Django ninja + MongoDb. I want a suggestions on this if I choose a good stack or not. If someone already has used these and have experience on them. Please provide suggestions on this?
/r/django
https://redd.it/1ohzim8
Reddit
From the django community on Reddit
Explore this post and more from the django community
D For those who’ve published on code reasoning — how did you handle dataset collection and validation?
I’ve been diving into how people build datasets for code-related ML research — things like program synthesis, code reasoning, SWE-bench-style evaluation, or DPO/RLHF.
From what I’ve seen, most projects still rely on scraping or synthetic generation, with a lot of manual cleanup and little reproducibility.
Even published benchmarks vary wildly in annotation quality and documentation.
So I’m curious:
1. How are you collecting or validating your datasets for code-focused experiments?
2. Are you using public data, synthetic generation, or human annotation pipelines?
3. What’s been the hardest part — scale, quality, or reproducibility?
I’ve been studying this problem closely and have been experimenting with a small side project to make dataset creation easier for researchers (happy to share more if anyone’s interested).
Would love to hear what’s worked — or totally hasn’t — in your experience :)
/r/MachineLearning
https://redd.it/1ohge3t
I’ve been diving into how people build datasets for code-related ML research — things like program synthesis, code reasoning, SWE-bench-style evaluation, or DPO/RLHF.
From what I’ve seen, most projects still rely on scraping or synthetic generation, with a lot of manual cleanup and little reproducibility.
Even published benchmarks vary wildly in annotation quality and documentation.
So I’m curious:
1. How are you collecting or validating your datasets for code-focused experiments?
2. Are you using public data, synthetic generation, or human annotation pipelines?
3. What’s been the hardest part — scale, quality, or reproducibility?
I’ve been studying this problem closely and have been experimenting with a small side project to make dataset creation easier for researchers (happy to share more if anyone’s interested).
Would love to hear what’s worked — or totally hasn’t — in your experience :)
/r/MachineLearning
https://redd.it/1ohge3t
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
The State of Django 2025 is here – 4,600+ developers share how they use Django
The results of the annual Django Developers Survey, a joint initiative by the Django Software Foundation and JetBrains PyCharm, are out!
Here’s what stood out to us from more than 4,600 responses:
* HTMX and Alpine.js are the fastest-growing JavaScript frameworks used with Django.
* 38% of developers now use AI to learn or improve their Django skills.
* 3 out of 4 Django developers have over 3 years of professional coding experience.
* 63% of developers already use type hints, and more plan to.
* 76% of developers use PostgreSQL as their database backend.
What surprised you most? Are you using HTMX, AI tools, or type hints in your projects yet?
https://preview.redd.it/echnytaqlsxf1.png?width=1700&format=png&auto=webp&s=bc516c7398117e6fb878f92b00afb78e7578ddba
Get the full breakdown with charts and analysis: [https://lp.jetbrains.com/django-developer-survey-2025/](https://lp.jetbrains.com/django-developer-survey-2025/)
/r/djangolearning
https://redd.it/1oi2pw5
The results of the annual Django Developers Survey, a joint initiative by the Django Software Foundation and JetBrains PyCharm, are out!
Here’s what stood out to us from more than 4,600 responses:
* HTMX and Alpine.js are the fastest-growing JavaScript frameworks used with Django.
* 38% of developers now use AI to learn or improve their Django skills.
* 3 out of 4 Django developers have over 3 years of professional coding experience.
* 63% of developers already use type hints, and more plan to.
* 76% of developers use PostgreSQL as their database backend.
What surprised you most? Are you using HTMX, AI tools, or type hints in your projects yet?
https://preview.redd.it/echnytaqlsxf1.png?width=1700&format=png&auto=webp&s=bc516c7398117e6fb878f92b00afb78e7578ddba
Get the full breakdown with charts and analysis: [https://lp.jetbrains.com/django-developer-survey-2025/](https://lp.jetbrains.com/django-developer-survey-2025/)
/r/djangolearning
https://redd.it/1oi2pw5
About models and database engines
Hi, all. I'm developing an app for a company and their bureaucracy is killing me. So...
¿Can I develop an app with the default SQLite migrations and later deploy it on a PosgreSQL easily changing the DATABASES ENGINE in settings.py?
/r/django
https://redd.it/1oi3yr9
Hi, all. I'm developing an app for a company and their bureaucracy is killing me. So...
¿Can I develop an app with the default SQLite migrations and later deploy it on a PosgreSQL easily changing the DATABASES ENGINE in settings.py?
/r/django
https://redd.it/1oi3yr9
Reddit
From the django community on Reddit
Explore this post and more from the django community
Which linting rules do you always enable or disable?
I'm working on a Python LSP with a type checker and want to add some basic linting rules. So far I've worked on the rules from Pyflakes but was curious if there were any rules or rulesets that you always turn on or off for your projects?
Edit: thank you guys for sharing!
This is the project if you wanna take a look!
These are the rules I've committed to so far
/r/Python
https://redd.it/1oi1dkm
I'm working on a Python LSP with a type checker and want to add some basic linting rules. So far I've worked on the rules from Pyflakes but was curious if there were any rules or rulesets that you always turn on or off for your projects?
Edit: thank you guys for sharing!
This is the project if you wanna take a look!
These are the rules I've committed to so far
/r/Python
https://redd.it/1oi1dkm
GitHub
GitHub - stormlightlabs/beacon: Python LSP & Type Checker
Python LSP & Type Checker. Contribute to stormlightlabs/beacon development by creating an account on GitHub.
Learning Django Migrations
Hi everyone!
I recently joined a startup team, where I am creating the backend using Django. The startup originally hired overseas engineers through UpWork who decided to use Django over other languages and frameworks. Our code isn't live yet, and I run into even the smallest changes to a model,it blows up migrations & gives me error after error, and so I just wipe the local db and migrations and rebuild it.
Obviously, I can't do this when the code is live and has real data in it. Two questions: is this a pain point you face, and is it always this messy, or once you learn it does this 'mess' become manageable? and 2, what are some good resources that helped you improve your understanding of Django?
For context, I am a junior engineer and the only engineer at this startup, and I'm really anxious & stressed about how making updates to production is going to go if development is giving me such a hard time.
/r/django
https://redd.it/1ohjhhy
Hi everyone!
I recently joined a startup team, where I am creating the backend using Django. The startup originally hired overseas engineers through UpWork who decided to use Django over other languages and frameworks. Our code isn't live yet, and I run into even the smallest changes to a model,it blows up migrations & gives me error after error, and so I just wipe the local db and migrations and rebuild it.
Obviously, I can't do this when the code is live and has real data in it. Two questions: is this a pain point you face, and is it always this messy, or once you learn it does this 'mess' become manageable? and 2, what are some good resources that helped you improve your understanding of Django?
For context, I am a junior engineer and the only engineer at this startup, and I'm really anxious & stressed about how making updates to production is going to go if development is giving me such a hard time.
/r/django
https://redd.it/1ohjhhy
Reddit
From the django community on Reddit
Explore this post and more from the django community
Rookie alert - Facing a few race conditions / performance issues
Hi,
I built a micro-saas tool (Django backend, React frontend). Facing a bit of a race condition at times. I use firebase for the social login. Sometimes it takes a bit of time to login, but I have a redirect internally which redirects back to the login form if the required login info isn't available.
Looks like it is taking a couple of seconds to fetch the details from firebase and in the meantime the app simply goes back to the login page.
What are the best practices to handle these? Also what might be a good idea to measure some of the performance metrics?
P.S. I am beginner level coder (just getting started, so advanced apologies if this is a rookie question and thanks a lot for any support).
https://preview.redd.it/8o9u8wjpfvxf1.png?width=1560&format=png&auto=webp&s=36f0ca2bb65c9fd63990f10c67529f00abd04f86
https://preview.redd.it/4vww9wjpfvxf1.png?width=1014&format=png&auto=webp&s=d8015438c537ec59adb2521e80b4135d09d213c3
https://preview.redd.it/08dx1wjpfvxf1.png?width=1528&format=png&auto=webp&s=4ae326689894bd8d8ed50f82a2ca6ada1d3fff2b
/r/django
https://redd.it/1oibnhn
Hi,
I built a micro-saas tool (Django backend, React frontend). Facing a bit of a race condition at times. I use firebase for the social login. Sometimes it takes a bit of time to login, but I have a redirect internally which redirects back to the login form if the required login info isn't available.
Looks like it is taking a couple of seconds to fetch the details from firebase and in the meantime the app simply goes back to the login page.
What are the best practices to handle these? Also what might be a good idea to measure some of the performance metrics?
P.S. I am beginner level coder (just getting started, so advanced apologies if this is a rookie question and thanks a lot for any support).
https://preview.redd.it/8o9u8wjpfvxf1.png?width=1560&format=png&auto=webp&s=36f0ca2bb65c9fd63990f10c67529f00abd04f86
https://preview.redd.it/4vww9wjpfvxf1.png?width=1014&format=png&auto=webp&s=d8015438c537ec59adb2521e80b4135d09d213c3
https://preview.redd.it/08dx1wjpfvxf1.png?width=1528&format=png&auto=webp&s=4ae326689894bd8d8ed50f82a2ca6ada1d3fff2b
/r/django
https://redd.it/1oibnhn
IBM Flask App development KeyError
Hello, I am having an issue with a KeyError that wont go away and I really dont understand why. I am new to python and flask and have been following the IBM course (with a little googling inbetween). Can someone help with this problem? This is the error,
This is the error
This is my app code
This is my server code
This is all available from the IBM course online. I am so confused and dont know what to do, I tried changing the code to only use requests like this
changed code under advice from AI helper to access keys with .get\(\) method to avoid key error.... but it still gives me the error
still getting the same error even after removing traces of 'emotionPrediction' in my code.
emotionPrediction shows up as a nested dictionary as one of the first outputs that you have to format the output to only show emotions, which it does when I use the above code, it´s just not working in the app and leading to my confusion
this is the data before formatting i.e. the response object before formatting
Please let me know if there is any more info I can provide, and thanks in advance!
UPDATE: Thanks for your input everyone,
/r/flask
https://redd.it/1ohgl8h
Hello, I am having an issue with a KeyError that wont go away and I really dont understand why. I am new to python and flask and have been following the IBM course (with a little googling inbetween). Can someone help with this problem? This is the error,
This is the error
This is my app code
This is my server code
This is all available from the IBM course online. I am so confused and dont know what to do, I tried changing the code to only use requests like this
changed code under advice from AI helper to access keys with .get\(\) method to avoid key error.... but it still gives me the error
still getting the same error even after removing traces of 'emotionPrediction' in my code.
emotionPrediction shows up as a nested dictionary as one of the first outputs that you have to format the output to only show emotions, which it does when I use the above code, it´s just not working in the app and leading to my confusion
this is the data before formatting i.e. the response object before formatting
Please let me know if there is any more info I can provide, and thanks in advance!
UPDATE: Thanks for your input everyone,
/r/flask
https://redd.it/1ohgl8h