The features of Python's h*lp() function
Note: I censored the word "help" b/c it's not allowed in titles, but this blog post is about the function help(), not asking for help.
[https://www.pythonmorsels.com/help-features/](https://www.pythonmorsels.com/help-features/)
I almost always just append \`?\` to things in the REPL so I did not know that \`help()\` accepted string representations of objects, which will save me the work of instantiating an object just to get access to its method to ask for help:
>>> help("math.prod")
Help on built-in function prod in math:
math.prod = prod(iterable, /, *, start=1)
Calculate the product of all the elements in the input iterable.
>>> help("math.prod")
Help on built-in function prod in math:
math.prod = prod(iterable, /, *, start=1)
...
Even works for symbols:
>>> help("**")
The power operator
******************
The power operator binds more tightly than unary operators on its
left; it binds less tightly than unary operators on
/r/Python
https://redd.it/1j43yho
Note: I censored the word "help" b/c it's not allowed in titles, but this blog post is about the function help(), not asking for help.
[https://www.pythonmorsels.com/help-features/](https://www.pythonmorsels.com/help-features/)
I almost always just append \`?\` to things in the REPL so I did not know that \`help()\` accepted string representations of objects, which will save me the work of instantiating an object just to get access to its method to ask for help:
>>> help("math.prod")
Help on built-in function prod in math:
math.prod = prod(iterable, /, *, start=1)
Calculate the product of all the elements in the input iterable.
>>> help("math.prod")
Help on built-in function prod in math:
math.prod = prod(iterable, /, *, start=1)
...
Even works for symbols:
>>> help("**")
The power operator
******************
The power operator binds more tightly than unary operators on its
left; it binds less tightly than unary operators on
/r/Python
https://redd.it/1j43yho
Pythonmorsels
The features of Python's help() function
Python's help() function accepts more than functions, modules, and objects. The help() function can lookup help for symbols, keywords, and topics!
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/1j4i2gh
# 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/1j4i2gh
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Serverless desktop python example
Examples of implementing serverless communication between python and a webview. This demonstrates how to communication between python and javascript using a bridge and webview. https://github.com/non-npc/Serverless-Desktop-Python
/r/Python
https://redd.it/1j4c0mj
Examples of implementing serverless communication between python and a webview. This demonstrates how to communication between python and javascript using a bridge and webview. https://github.com/non-npc/Serverless-Desktop-Python
/r/Python
https://redd.it/1j4c0mj
GitHub
GitHub - non-npc/Serverless-Desktop-Python: A serverless desktop python demo for games and apps
A serverless desktop python demo for games and apps - non-npc/Serverless-Desktop-Python
Why is the Django docs in Korean?
https://preview.redd.it/jyxze0iqywme1.png?width=1892&format=png&auto=webp&s=2f3d0e26aa76425f44859db4dc6fabef0b5d89e7
The language is English, but all the pages are in Korean
/r/django
https://redd.it/1j4a0ch
https://preview.redd.it/jyxze0iqywme1.png?width=1892&format=png&auto=webp&s=2f3d0e26aa76425f44859db4dc6fabef0b5d89e7
The language is English, but all the pages are in Korean
/r/django
https://redd.it/1j4a0ch
Django production for dummies
Hello all, I am not a legit developer. I know enough to be dangerous.
I've built a few simple projects I wish to deploy into production, however I have gotten used to the easy built in dev server of vscode.
Now that I wish to deploy, I am a bit lost. Using YouTube videos I managed to get one going on a EC2 instance including HTTPS but it was a hell of a journey. Here are my pain points:
- getting static files served
- using a web server besides the manage.py script
- keeping the server running when I disconnect
- 1000 different ways to handle environment variables
- how to see what's going on when debug is disabled (API calls, login attempts etc)
- having to modify settings for production, assuming I need to keep a seperate production branch on git avoid this headache??
So I know I'm in way over my head... But it seems like deploying a "simple" project requires dozens of steps. I feel like I'm probably over complicating things too. Is there not an easier way????
/r/django
https://redd.it/1j45tpe
Hello all, I am not a legit developer. I know enough to be dangerous.
I've built a few simple projects I wish to deploy into production, however I have gotten used to the easy built in dev server of vscode.
Now that I wish to deploy, I am a bit lost. Using YouTube videos I managed to get one going on a EC2 instance including HTTPS but it was a hell of a journey. Here are my pain points:
- getting static files served
- using a web server besides the manage.py script
- keeping the server running when I disconnect
- 1000 different ways to handle environment variables
- how to see what's going on when debug is disabled (API calls, login attempts etc)
- having to modify settings for production, assuming I need to keep a seperate production branch on git avoid this headache??
So I know I'm in way over my head... But it seems like deploying a "simple" project requires dozens of steps. I feel like I'm probably over complicating things too. Is there not an easier way????
/r/django
https://redd.it/1j45tpe
Reddit
From the django community on Reddit
Explore this post and more from the django community
Using Fish? dirvenv.fish automagically activates your virtualenv
What My Project Does
I wrote dirvenv.fish so I don't have to manually activate and deactivate virtualenvs, and I think it might help more people – so, sharing it here ; )
Target Audience
Python developers using Fish shell.
Comparison
I know
/r/Python
https://redd.it/1j4omal
What My Project Does
I wrote dirvenv.fish so I don't have to manually activate and deactivate virtualenvs, and I think it might help more people – so, sharing it here ; )
Target Audience
Python developers using Fish shell.
Comparison
I know
virtualfish but I don't wanna manage virtualenvs myself; uv does that for me. Also, I don't want to uv run every command. So I came up with that solution./r/Python
https://redd.it/1j4omal
GitHub
GitHub - cuducos/dirvenv.fish: 🐍 Automagically activated and deactivates virtualenv in Fish
🐍 Automagically activated and deactivates virtualenv in Fish - cuducos/dirvenv.fish
Trouble with Staticfiles in Django
I am Django beginner learning Django with tutorials, i do understand the tutorial and i do make a note in a way that I understand and i do update my notes when I practice but i also made notes on how to setup staticfiles and add images in Django, but i am having trouble everytime I practice the images part every other part works fine except the images part, i do everything as mentioned in my notes but in the end it just fails (the image doesn’t load up) the last time it happened it was some syntax error and based on that I updated my notes and this time the same thing is happening again and i am not able to figure out at all as to why it’s happening.
Is there any issue in Django which makes the image load sometimes and not load sometimes or am i doing something wrong?
/r/djangolearning
https://redd.it/1j4cx2a
I am Django beginner learning Django with tutorials, i do understand the tutorial and i do make a note in a way that I understand and i do update my notes when I practice but i also made notes on how to setup staticfiles and add images in Django, but i am having trouble everytime I practice the images part every other part works fine except the images part, i do everything as mentioned in my notes but in the end it just fails (the image doesn’t load up) the last time it happened it was some syntax error and based on that I updated my notes and this time the same thing is happening again and i am not able to figure out at all as to why it’s happening.
Is there any issue in Django which makes the image load sometimes and not load sometimes or am i doing something wrong?
/r/djangolearning
https://redd.it/1j4cx2a
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
best practices re passing parameters as keyword, rather than positional
I've been a professional programmer for 20 years but I have seen a peculiar trend in the last few years. A lot of newer or more junior developers specify arguments as keyword arguments if there are 2 or more. So for something like the below where there are no optional or keyword-only args (i.e. the function is defined
widgets = getwidgets(dbsession, companycode, page, rowsperpage)
They will insist on writing it as:
widgets = getwidgets(
dbsession=dbsession,
companycode=companycode,
page=page,
rowsperpage=rowsperpage
)
To me this kind of thing is really peculiar and quite redundant. Is this something that is getting taught during, say, "Intro to Data Engineering" courses or introductions Python in general? It's kinda grating to me and now I'm seeing some of them requesting changes to Pull Requests they're assigned to review, asking that method/function calls be rewritten this way.
Am I right in considering this to be weird, or is this considered to be current best practice in Python?
/r/Python
https://redd.it/1j4wdwo
I've been a professional programmer for 20 years but I have seen a peculiar trend in the last few years. A lot of newer or more junior developers specify arguments as keyword arguments if there are 2 or more. So for something like the below where there are no optional or keyword-only args (i.e. the function is defined
def get_widgets(db_session:Session, company_code:str, page:int, rows_per_page:int) -> list[Widget]):widgets = getwidgets(dbsession, companycode, page, rowsperpage)
They will insist on writing it as:
widgets = getwidgets(
dbsession=dbsession,
companycode=companycode,
page=page,
rowsperpage=rowsperpage
)
To me this kind of thing is really peculiar and quite redundant. Is this something that is getting taught during, say, "Intro to Data Engineering" courses or introductions Python in general? It's kinda grating to me and now I'm seeing some of them requesting changes to Pull Requests they're assigned to review, asking that method/function calls be rewritten this way.
Am I right in considering this to be weird, or is this considered to be current best practice in Python?
/r/Python
https://redd.it/1j4wdwo
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Self-hosted RSS/ATOM reader with LLM-generated tags, scoring, filtering, and sorting
Check it on github: [https://github.com/Tiendil/feeds.fun](https://github.com/Tiendil/feeds.fun) \[Python on backend\]
# What My Project Does
It behaves like a regular news reader, but has extra tag-related features:
How it works:
* For each news entry, the reader automatically assigns a lot of tags.
* You can create rules like `books + sci-fi -> +5 score`, `politics + new-york -> -10 score`.
* News are sorted by score, so you always see the most interesting news first.
# Target Audience
Those who are overwhelmed by news and want to save their own time.
The code is stable and should run smoothly in production.
For me it saves over 80% of news-reading time, simply by filtering out most of the non-relevant news.
# Comparison
The nearest reader with similar functionality is Tiny Tiny RSS. I was testing the idea with LLM-tags on it, but I found its tag-related features too limited and hard to patch.
/r/Python
https://redd.it/1j472bj
Check it on github: [https://github.com/Tiendil/feeds.fun](https://github.com/Tiendil/feeds.fun) \[Python on backend\]
# What My Project Does
It behaves like a regular news reader, but has extra tag-related features:
How it works:
* For each news entry, the reader automatically assigns a lot of tags.
* You can create rules like `books + sci-fi -> +5 score`, `politics + new-york -> -10 score`.
* News are sorted by score, so you always see the most interesting news first.
# Target Audience
Those who are overwhelmed by news and want to save their own time.
The code is stable and should run smoothly in production.
For me it saves over 80% of news-reading time, simply by filtering out most of the non-relevant news.
# Comparison
The nearest reader with similar functionality is Tiny Tiny RSS. I was testing the idea with LLM-tags on it, but I found its tag-related features too limited and hard to patch.
/r/Python
https://redd.it/1j472bj
GitHub
GitHub - Tiendil/feeds.fun: News reader with tags, scoring, and AI
News reader with tags, scoring, and AI. Contribute to Tiendil/feeds.fun development by creating an account on GitHub.
A way I make money with Python without committing to a full-time job
I have some free time but not enough for a regular job. I’m looking for ways to earn by coding small projects, like building a simple website, automating tasks with scripts, or debugging Python code. Please tell me if there are any platforms or other recommendations for finding these types of projects.
/r/Python
https://redd.it/1j5058h
I have some free time but not enough for a regular job. I’m looking for ways to earn by coding small projects, like building a simple website, automating tasks with scripts, or debugging Python code. Please tell me if there are any platforms or other recommendations for finding these types of projects.
/r/Python
https://redd.it/1j5058h
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Remake of an old flash game called Ores using Pyxel, and it runs in the browser.
# What My Project Does:
I remade an old flash game called Ores using Pyxels that I call Stack Pusher. You can play it in your browser and I think thats pretty neat. Any constructive feedback is absolutely welcomed.
# Target Audience:
Anyone on earth with internet.
# Comparison:
Here is a video of the original https://www.youtube.com/watch?v=vVu9ROoBZKQ
# How To Play:
Stop the blocks from being pushed of the screen! Destroy touching blocks of the same color to earn points towards leveling up. When you level up the screen restarts, but gets tougher every level. If the blocks go off the left side of the screen you lose.
# Links:
Stack Pusher Github (https://github.com/wyattferguson/stack-pusher)
Play in your browser (https://wyattferguson.github.io)
/r/Python
https://redd.it/1j54j94
# What My Project Does:
I remade an old flash game called Ores using Pyxels that I call Stack Pusher. You can play it in your browser and I think thats pretty neat. Any constructive feedback is absolutely welcomed.
# Target Audience:
Anyone on earth with internet.
# Comparison:
Here is a video of the original https://www.youtube.com/watch?v=vVu9ROoBZKQ
# How To Play:
Stop the blocks from being pushed of the screen! Destroy touching blocks of the same color to earn points towards leveling up. When you level up the screen restarts, but gets tougher every level. If the blocks go off the left side of the screen you lose.
# Links:
Stack Pusher Github (https://github.com/wyattferguson/stack-pusher)
Play in your browser (https://wyattferguson.github.io)
/r/Python
https://redd.it/1j54j94
YouTube
MINICLIP ORES Tutorial
Miniclip Ores tutorial walkthrough and gameplay. Tutorial until 2mins 30secs, then gameplay, check out the new outro at the end :)
Play at: http://www.miniclip.com/games/ores/en/
Intro Song: Kraddy - Android Porn
Kraddy's website: http://www.kraddyodaddy.com/…
Play at: http://www.miniclip.com/games/ores/en/
Intro Song: Kraddy - Android Porn
Kraddy's website: http://www.kraddyodaddy.com/…
Should I be using more data structures?
A long time ago, I learned a lot about Hashmap, Red-Black-Trees and a many, many more. However in my day-to-day Data Centric Programming in Python I only use sets, lists, dicts and Dataframes. I do use trees if I have a recursive structure, but rarely.
Am I missing out and could improve my code by revisiting data structures or are these just a non-issue when doing high level data pipelines in Python?
/r/Python
https://redd.it/1j57nj3
A long time ago, I learned a lot about Hashmap, Red-Black-Trees and a many, many more. However in my day-to-day Data Centric Programming in Python I only use sets, lists, dicts and Dataframes. I do use trees if I have a recursive structure, but rarely.
Am I missing out and could improve my code by revisiting data structures or are these just a non-issue when doing high level data pipelines in Python?
/r/Python
https://redd.it/1j57nj3
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
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/1j5a404
# 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/1j5a404
Redditinc
Reddit Rules
Reddit Rules - Reddit
Seeking Python Backend Projects – Developer Upskilling in Django, Flask, FastAPI, SQL
Hi everyone,
I’m currently working in Python automation and have recently been dedicating time to upskilling in backend development. I’ve been learning frameworks like Django, Flask, FastAPI, and working with SQL, and I’m eager to put these skills into practice on real projects.
I’m reaching out to see if anyone is working on a project that could use an extra pair of hands for Python backend development. Whether it’s a side project, a startup idea, or an open-source initiative, I’m excited to contribute, learn, and grow through hands-on experience.
I believe in continuously pushing myself, not just in coding but also in maintaining a balanced lifestyle. A good coding session followed by a solid gym workout has always helped me stay motivated and clear-headed—sometimes, the best ideas come when you’re not at the desk!
If you have any opportunities or know someone who might be looking for help, please feel free to reach out. I’m open to collaboration and would appreciate any advice or pointers as I navigate this transition into more backend-focused roles.
Thanks for reading and have a great day!
Looking forward to connecting with you all.
/r/djangolearning
https://redd.it/1j5d0hw
Hi everyone,
I’m currently working in Python automation and have recently been dedicating time to upskilling in backend development. I’ve been learning frameworks like Django, Flask, FastAPI, and working with SQL, and I’m eager to put these skills into practice on real projects.
I’m reaching out to see if anyone is working on a project that could use an extra pair of hands for Python backend development. Whether it’s a side project, a startup idea, or an open-source initiative, I’m excited to contribute, learn, and grow through hands-on experience.
I believe in continuously pushing myself, not just in coding but also in maintaining a balanced lifestyle. A good coding session followed by a solid gym workout has always helped me stay motivated and clear-headed—sometimes, the best ideas come when you’re not at the desk!
If you have any opportunities or know someone who might be looking for help, please feel free to reach out. I’m open to collaboration and would appreciate any advice or pointers as I navigate this transition into more backend-focused roles.
Thanks for reading and have a great day!
Looking forward to connecting with you all.
/r/djangolearning
https://redd.it/1j5d0hw
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Looking for a couple of senior Django devs
We’re building a mental health practice management app that will offer unparalleled automation and more features than anything currently available in the US. There are some technically challenging components, so we’re looking for two Senior Django Developers:
* One Senior++ Dev with architecture experience (top range of the budget: \~$7K)
* One Senior Dev without architecture duties ($5K-$6K range)
* (We're also open to mid-senior devs for which the range would be around $4K-$5K)
We need strong Python backend developers with experience in Django or FastAPI (we're using Django, and need quick ramp-up, so I believe these two would be the most relevant experience), SQL, Celery, security, and API performance optimization. Bonus if you know AWS, OpenAPI, CI/CD or have startup/healthcare experience.
The details:
* Contract: Independent contractor (Self-employed/LLC)
* Salary: $4K-$7K/month (gross), depending on seniority
* Hours: Mon-Fri, 12:00 - 21:00 EET (incl. 1h lunch) - these are the hours that our current devs work, but we're flexible as long as there's an overlap
* Culture: no BS, no useless meetings, we want to get stuff done
I want to make sure no one falls through the cracks, and with Reddit messages, there’s a chance I might miss some. To make sure your application is seen, upload it to[
/r/django
https://redd.it/1j505g3
We’re building a mental health practice management app that will offer unparalleled automation and more features than anything currently available in the US. There are some technically challenging components, so we’re looking for two Senior Django Developers:
* One Senior++ Dev with architecture experience (top range of the budget: \~$7K)
* One Senior Dev without architecture duties ($5K-$6K range)
* (We're also open to mid-senior devs for which the range would be around $4K-$5K)
We need strong Python backend developers with experience in Django or FastAPI (we're using Django, and need quick ramp-up, so I believe these two would be the most relevant experience), SQL, Celery, security, and API performance optimization. Bonus if you know AWS, OpenAPI, CI/CD or have startup/healthcare experience.
The details:
* Contract: Independent contractor (Self-employed/LLC)
* Salary: $4K-$7K/month (gross), depending on seniority
* Hours: Mon-Fri, 12:00 - 21:00 EET (incl. 1h lunch) - these are the hours that our current devs work, but we're flexible as long as there's an overlap
* Culture: no BS, no useless meetings, we want to get stuff done
I want to make sure no one falls through the cracks, and with Reddit messages, there’s a chance I might miss some. To make sure your application is seen, upload it to[
/r/django
https://redd.it/1j505g3
Reddit
From the django community on Reddit: Looking for a couple of senior Django devs
Explore this post and more from the django community
I built DjipFast - a shipfast alternative but for django
Marc Lou's Shipfast is great. I wanted something like this - but for Django.
I know that Django already has "Batteries included", but when it comes down to it, there are a lot of pitfalls and configuration errors that took me days to fix in the past.
If you are using DaisyUI + Tailwind i think you might especially appreciate the *no Node.js* dev workflow of compiling the CSS.
Let me know what you think :)
https://djipfast.com
/r/django
https://redd.it/1j5insz
Marc Lou's Shipfast is great. I wanted something like this - but for Django.
I know that Django already has "Batteries included", but when it comes down to it, there are a lot of pitfalls and configuration errors that took me days to fix in the past.
If you are using DaisyUI + Tailwind i think you might especially appreciate the *no Node.js* dev workflow of compiling the CSS.
Let me know what you think :)
https://djipfast.com
/r/django
https://redd.it/1j5insz
Djipfast
DjipFast is a Django boilerplate with all you need to get your product in front of customers. Ship your startup, focus on what matters
Docker and Kubernetes
Hi all,
I’ve worked mostly on backend in terms of creating models, APIs having OpenAPI specification docs etc and also have used docker containers and tied multi containers using docker compose.
Now I’ve been introduced to Kubernetes and this one pod one container is so confusing to me.
Why do we need pods? Make it manageable? Why not someone include these management/ scaling methods etc in docker itself? It feels like adding additional wrapper to docker and repeating writing config files etc.
If I have a VM then I can only have one Kubernetes to manage all the docker files?
E.g. In one VM I can setup multiple website/ backends right? How does Kubernetes help me there?
/r/django
https://redd.it/1j5c3hy
Hi all,
I’ve worked mostly on backend in terms of creating models, APIs having OpenAPI specification docs etc and also have used docker containers and tied multi containers using docker compose.
Now I’ve been introduced to Kubernetes and this one pod one container is so confusing to me.
Why do we need pods? Make it manageable? Why not someone include these management/ scaling methods etc in docker itself? It feels like adding additional wrapper to docker and repeating writing config files etc.
If I have a VM then I can only have one Kubernetes to manage all the docker files?
E.g. In one VM I can setup multiple website/ backends right? How does Kubernetes help me there?
/r/django
https://redd.it/1j5c3hy
Reddit
From the django community on Reddit
Explore this post and more from the django community
Rio Hits 100K Downloads & 2K GitHub Stars – Open Source Python Web Apps
Hey everyone,
Over the past 10 months, my friends and I created Rio, an open-source framework to help Python developers build modern web apps without needing HTML, CSS, or JavaScript. Today, we’re excited to share that Rio surpassed 100,000 downloads and over 2,300 GitHub stars since launch! 🎉
A huge thank you to this amazing community for the support, feedback, and contributions that have helped us improve Rio!
What is Rio?
Rio lets you build full-stack web apps entirely in Python. With Rio, the UI is defined using Python components, inspired by React and Flutter. Instead of writing HTML/CSS, you compose reusable UI elements in Python and let Rio handle rendering and state updates. The backend and frontend stay seamlessly connected using WebSockets, so data syncs automatically without manual API calls. Since Rio is fully Python-native, you can integrate it with any Python library, from data science tools to AI models.
We’ve seen people build everything from CRM tools to dashboards, LLM interfaces, and interactive reports using Rio, but we’re always looking for ways to improve. If you’re a Python developer interested in web apps, we’d love to hear:
* What do you like about Rio?
* What’s missing?
* What features would you love to see?
[https://github.com/rio-labs/rio](https://github.com/rio-labs/rio)
/r/Python
https://redd.it/1j5ofdj
Hey everyone,
Over the past 10 months, my friends and I created Rio, an open-source framework to help Python developers build modern web apps without needing HTML, CSS, or JavaScript. Today, we’re excited to share that Rio surpassed 100,000 downloads and over 2,300 GitHub stars since launch! 🎉
A huge thank you to this amazing community for the support, feedback, and contributions that have helped us improve Rio!
What is Rio?
Rio lets you build full-stack web apps entirely in Python. With Rio, the UI is defined using Python components, inspired by React and Flutter. Instead of writing HTML/CSS, you compose reusable UI elements in Python and let Rio handle rendering and state updates. The backend and frontend stay seamlessly connected using WebSockets, so data syncs automatically without manual API calls. Since Rio is fully Python-native, you can integrate it with any Python library, from data science tools to AI models.
We’ve seen people build everything from CRM tools to dashboards, LLM interfaces, and interactive reports using Rio, but we’re always looking for ways to improve. If you’re a Python developer interested in web apps, we’d love to hear:
* What do you like about Rio?
* What’s missing?
* What features would you love to see?
[https://github.com/rio-labs/rio](https://github.com/rio-labs/rio)
/r/Python
https://redd.it/1j5ofdj
GitHub
GitHub - rio-labs/rio: WebApps in pure Python. No JavaScript, HTML and CSS needed
WebApps in pure Python. No JavaScript, HTML and CSS needed - rio-labs/rio
Are There Any Tools for Detecting Unhandled Exceptions or Hidden Asynchronous Calls in Python?
Title: Any Tools to Detect Unhandled Exceptions or Hidden asyncio.run() Calls in Python?
Hey Python devs,
I often struggle with unhandled exceptions and hidden async issues in Python. Existing tools (mypy, pylint, pyright) help, but they don’t fully solve these problems.
1. Unhandled Exceptions
When calling third-party functions, it’s unclear what exceptions they raise:
import somelibrary
def process():
result = somelibrary.dosomething() # What exceptions can this raise?
return result
• No easy way to detect **undocumented exceptions**.
• Hard to ensure **exceptions are properly handled across the call stack**.
**2. Hidden asyncio.run() Calls**
A function might internally use asyncio.run(), breaking if called from another event loop:
async def process():
result = something() # Is there already an asyncio.run() inside?
def outsideprocess():
asyncio.run(process()) # Will this break?
• Detecting nested asyncio.run() calls is tricky.
• Some libraries use async without making it obvious.
Questions for the Community:
• Are there tools that statically analyze these issues?
• Would it be worth starting an open-source project for exception tracking and async validation?
Would love to hear your thoughts! 🚀
/r/Python
https://redd.it/1j5pged
Title: Any Tools to Detect Unhandled Exceptions or Hidden asyncio.run() Calls in Python?
Hey Python devs,
I often struggle with unhandled exceptions and hidden async issues in Python. Existing tools (mypy, pylint, pyright) help, but they don’t fully solve these problems.
1. Unhandled Exceptions
When calling third-party functions, it’s unclear what exceptions they raise:
import somelibrary
def process():
result = somelibrary.dosomething() # What exceptions can this raise?
return result
• No easy way to detect **undocumented exceptions**.
• Hard to ensure **exceptions are properly handled across the call stack**.
**2. Hidden asyncio.run() Calls**
A function might internally use asyncio.run(), breaking if called from another event loop:
async def process():
result = something() # Is there already an asyncio.run() inside?
def outsideprocess():
asyncio.run(process()) # Will this break?
• Detecting nested asyncio.run() calls is tricky.
• Some libraries use async without making it obvious.
Questions for the Community:
• Are there tools that statically analyze these issues?
• Would it be worth starting an open-source project for exception tracking and async validation?
Would love to hear your thoughts! 🚀
/r/Python
https://redd.it/1j5pged
Reddit
From the Python community on Reddit
Explore this post and more from the Python community