D Conceptually/On a Code Basis - Why does Pytorch work with CUDA out of the box, with minimal setup required, but tensorflow would require all sorts of dependencies?
Hopefully this question doesn't break rule 6.
When I first learned machine learning, we primarily used TensorFlow on platforms like Google Colab or cloud platforms like Databricks, so I never had to worry about setting up Python or TensorFlow environments myself.
Now that I’m working on personal projects, I want to leverage my gaming PC to accelerate training using my GPU. Since I’m most familiar with the TensorFlow model training process, I started off with TensorFlow.
But my god—it was such a pain to set up. As you all probably know, getting it to work often involves very roundabout methods, like using WSL or setting up a Docker dev container.
Then I tried PyTorch, and realized how much easier it is to get everything running with CUDA. That got me thinking: conceptually, why does PyTorch require minimal setup to use CUDA, while TensorFlow needs all sorts of dependencies and is just generally a pain to get working?
/r/MachineLearning
https://redd.it/1lialoj
Hopefully this question doesn't break rule 6.
When I first learned machine learning, we primarily used TensorFlow on platforms like Google Colab or cloud platforms like Databricks, so I never had to worry about setting up Python or TensorFlow environments myself.
Now that I’m working on personal projects, I want to leverage my gaming PC to accelerate training using my GPU. Since I’m most familiar with the TensorFlow model training process, I started off with TensorFlow.
But my god—it was such a pain to set up. As you all probably know, getting it to work often involves very roundabout methods, like using WSL or setting up a Docker dev container.
Then I tried PyTorch, and realized how much easier it is to get everything running with CUDA. That got me thinking: conceptually, why does PyTorch require minimal setup to use CUDA, while TensorFlow needs all sorts of dependencies and is just generally a pain to get working?
/r/MachineLearning
https://redd.it/1lialoj
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
I made a FOSS feature rich Python template with SOTA tools, security, CI/CD, yet easy to use
## Introduction
Hey, created a FOSS Python library template with features I have never seen (especially in Python development) and which IMO is the most comprehensive, yet focused on usability (template setup is one click and one `pdm setup` command to setup locally, after that only `src`, `tests` and `pyproject.toml` should be of your concern), but I'll let you be the judge.
> GitHub repository: https://github.com/open-nudge/opentemplate
Feedback, questions, ideas, all are welcome, either here or on the GitHub's [discussions](https://github.com/open-nudge/opentemplate/discussions) or [issues](https://github.com/open-nudge/opentemplate/issues) (if you find some
bugs), thanks in advance!
- This was posted previously, but reposting as I think I did a very poor job describing what it does, hopefully I did a better job this time, but [here](https://www.reddit.com/r/Python/comments/1lelh8a/opentemplate_foss_python_template_focused_on/) it is anyway.
Also thanks to [u/wyattxdev](https://www.reddit.com/user/wyattxdev/) and his template [here](https://www.reddit.com/r/Python/comments/1lcz532/a_modern_python_project_cookiecutter_template/) for a great showcase how to present the project correctly!
- __This post is also featured on `r/cybersecurity` subreddit__ (focused more on the security side of things, but feel free to check it out if you are interested): https://www.reddit.com/r/cybersecurity/comments/1lim3k5/i_made_a_foss_python_template_with_cicd_security/
## TLDR Overview
- [__Truly open source__](https://open-nudge.github.io/opentemplate/template/about/philosophy): no tokens, no fees, no premium plans, open source software only
- [__State of the art__](https://open-nudge.github.io/opentemplate/template/details): best checkers for Python, YAML, Markdown, prose, and more unified
- [__Easy to use__](https://open-nudge.github.io/opentemplate/template/quickstart/usage): clone templated repo, run `pdm
/r/Python
https://redd.it/1lim6fb
## Introduction
Hey, created a FOSS Python library template with features I have never seen (especially in Python development) and which IMO is the most comprehensive, yet focused on usability (template setup is one click and one `pdm setup` command to setup locally, after that only `src`, `tests` and `pyproject.toml` should be of your concern), but I'll let you be the judge.
> GitHub repository: https://github.com/open-nudge/opentemplate
Feedback, questions, ideas, all are welcome, either here or on the GitHub's [discussions](https://github.com/open-nudge/opentemplate/discussions) or [issues](https://github.com/open-nudge/opentemplate/issues) (if you find some
bugs), thanks in advance!
- This was posted previously, but reposting as I think I did a very poor job describing what it does, hopefully I did a better job this time, but [here](https://www.reddit.com/r/Python/comments/1lelh8a/opentemplate_foss_python_template_focused_on/) it is anyway.
Also thanks to [u/wyattxdev](https://www.reddit.com/user/wyattxdev/) and his template [here](https://www.reddit.com/r/Python/comments/1lcz532/a_modern_python_project_cookiecutter_template/) for a great showcase how to present the project correctly!
- __This post is also featured on `r/cybersecurity` subreddit__ (focused more on the security side of things, but feel free to check it out if you are interested): https://www.reddit.com/r/cybersecurity/comments/1lim3k5/i_made_a_foss_python_template_with_cicd_security/
## TLDR Overview
- [__Truly open source__](https://open-nudge.github.io/opentemplate/template/about/philosophy): no tokens, no fees, no premium plans, open source software only
- [__State of the art__](https://open-nudge.github.io/opentemplate/template/details): best checkers for Python, YAML, Markdown, prose, and more unified
- [__Easy to use__](https://open-nudge.github.io/opentemplate/template/quickstart/usage): clone templated repo, run `pdm
/r/Python
https://redd.it/1lim6fb
GitHub
GitHub - open-nudge/opentemplate: All-in-one Python template. One click. Everything included.
All-in-one Python template. One click. Everything included. - open-nudge/opentemplate
R Reinforcement Learning Teachers of Test Time Scaling
TL;DR: The raw outputs of our new 7B RL model provide stronger distillation and cold-starting than the filtered and post-processed reasoning traces of orders-of-magnitude larger LMs such as DeepSeek-R1.
How did we achieve this result? We turned the RL task on its head. Rather than training to solve challenging problems from scratch, we optimize our models to generate clear, step-by-step "explanations" to "teach" their students, providing both the problem’s question and its solution already in their input prompt.
This makes the RL training task much easier and also directly aligned with downstream distillation, allowing us to train tiny 7B teachers, boosting the performance of even larger 32B students.
If you are interested to learn more, please check out our new work:
Paper: https://arxiv.org/abs/2506.08388
Blog: https://sakana.ai/rlt/
Open source code: https://github.com/SakanaAI/RLT
If you have any questions, please ask them below or feel free to get in touch, any discussion is more than welcome :)
/r/MachineLearning
https://redd.it/1lid95g
TL;DR: The raw outputs of our new 7B RL model provide stronger distillation and cold-starting than the filtered and post-processed reasoning traces of orders-of-magnitude larger LMs such as DeepSeek-R1.
How did we achieve this result? We turned the RL task on its head. Rather than training to solve challenging problems from scratch, we optimize our models to generate clear, step-by-step "explanations" to "teach" their students, providing both the problem’s question and its solution already in their input prompt.
This makes the RL training task much easier and also directly aligned with downstream distillation, allowing us to train tiny 7B teachers, boosting the performance of even larger 32B students.
If you are interested to learn more, please check out our new work:
Paper: https://arxiv.org/abs/2506.08388
Blog: https://sakana.ai/rlt/
Open source code: https://github.com/SakanaAI/RLT
If you have any questions, please ask them below or feel free to get in touch, any discussion is more than welcome :)
/r/MachineLearning
https://redd.it/1lid95g
arXiv.org
Reinforcement Learning Teachers of Test Time Scaling
Training reasoning language models (LMs) with reinforcement learning (RL) for one-hot correctness inherently relies on the LM being able to explore and solve its task with some chance at...
How to implement multi-tenancy with django-tenants for my SaaS ?
Hey devs,
I'm building a SaaS healthcare CRM targeting small or solo medical practices. I want each clinic (tenant) to have its own isolated database schema using django-tenants.
So far, I’ve done the following:
Created a Clinic model using TenantMixin and set autocreateschema = True
Added a Domain model for routing using DomainMixin
Created a custom User model for each tenant
Installed and configured django-tenants
But I still have questions to clarify the right implementation:
1. How should I structure the signup process?
Should I register the tenant (clinic), then switch to that schema and create users?
2. Should the user model be shared (in the public schema) or be tenant-specific?
I need users (doctors/staff) to be isolated per clinic.
3. How can I make sure user login works correctly and is scoped to the right schema?
4. What's the best way to handle domain/subdomain routing for tenants (ex: clinic1.mycrm.com, clinic2.mycrm.com)?
5. Any example repo, best practices, or gotchas I should be aware of?
I’d love to get some feedback or code architecture examples from anyone who’s implemented a similar setup. My goal is to keep tenant data fully isolated and support a clean onboarding experience for new clinics.
Thanks a lot in advance!
/r/django
https://redd.it/1lilzpg
Hey devs,
I'm building a SaaS healthcare CRM targeting small or solo medical practices. I want each clinic (tenant) to have its own isolated database schema using django-tenants.
So far, I’ve done the following:
Created a Clinic model using TenantMixin and set autocreateschema = True
Added a Domain model for routing using DomainMixin
Created a custom User model for each tenant
Installed and configured django-tenants
But I still have questions to clarify the right implementation:
1. How should I structure the signup process?
Should I register the tenant (clinic), then switch to that schema and create users?
2. Should the user model be shared (in the public schema) or be tenant-specific?
I need users (doctors/staff) to be isolated per clinic.
3. How can I make sure user login works correctly and is scoped to the right schema?
4. What's the best way to handle domain/subdomain routing for tenants (ex: clinic1.mycrm.com, clinic2.mycrm.com)?
5. Any example repo, best practices, or gotchas I should be aware of?
I’d love to get some feedback or code architecture examples from anyone who’s implemented a similar setup. My goal is to keep tenant data fully isolated and support a clean onboarding experience for new clinics.
Thanks a lot in advance!
/r/django
https://redd.it/1lilzpg
Reddit
From the django community on Reddit
Explore this post and more from the django community
If someone have pdf for django please send
I am learning django and yt tutorial are good but they explain less. While CBVs are considered best practices but many youtube tutorial are old or new just doesn't cover CBVs that much.if you have pdf please send me.
/r/djangolearning
https://redd.it/1lin4io
I am learning django and yt tutorial are good but they explain less. While CBVs are considered best practices but many youtube tutorial are old or new just doesn't cover CBVs that much.if you have pdf please send me.
/r/djangolearning
https://redd.it/1lin4io
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
How to export editing history of a model
Hi bro,
I have a Django web app
1. How can I export the add, editing history of a model. I want to export all the history of all objects of specific model
https://preview.redd.it/lfswatd76s8f1.png?width=917&format=png&auto=webp&s=fb1cab85d7175af24eadf6d0ba591b2f32af0f79
2. How can I export history activities of user?
Thank you very much
/r/django
https://redd.it/1liyuto
Hi bro,
I have a Django web app
1. How can I export the add, editing history of a model. I want to export all the history of all objects of specific model
https://preview.redd.it/lfswatd76s8f1.png?width=917&format=png&auto=webp&s=fb1cab85d7175af24eadf6d0ba591b2f32af0f79
2. How can I export history activities of user?
Thank you very much
/r/django
https://redd.it/1liyuto
Interview Advice for fresher role as backend Django Developer ( AWS is a plus )
Greetings to everyone,
I received an email saying there is an interview scheduled on upcoming wednesday 26june2025 this is my first interview which is technical round 1 (there are two+hr round). I am a bit nervous right now and wanted to ask for the resources or topics to prepare well for these interviews. The job opening is for freshers and hiring for django+aws.
About my resume : I have written two internships but those are frontend based and two projects which are of django and three certifications (aws,django,react).
As people here always help students therefore I came straight here to ask.
Thank you.
For the people who work in similar position, what do they expect you on your interview?
/r/django
https://redd.it/1linndz
Greetings to everyone,
I received an email saying there is an interview scheduled on upcoming wednesday 26june2025 this is my first interview which is technical round 1 (there are two+hr round). I am a bit nervous right now and wanted to ask for the resources or topics to prepare well for these interviews. The job opening is for freshers and hiring for django+aws.
About my resume : I have written two internships but those are frontend based and two projects which are of django and three certifications (aws,django,react).
As people here always help students therefore I came straight here to ask.
Thank you.
For the people who work in similar position, what do they expect you on your interview?
/r/django
https://redd.it/1linndz
Reddit
From the django community on Reddit
Explore this post and more from the django community
C++ in JupyterLite (WebAssembly) — Interpreting C++ in the Web
https://blog.jupyter.org/c-in-jupyter-interpreting-c-in-the-web-c9d93542f20b
/r/IPython
https://redd.it/1lj57en
https://blog.jupyter.org/c-in-jupyter-interpreting-c-in-the-web-c9d93542f20b
/r/IPython
https://redd.it/1lj57en
Medium
C++ in Jupyter — Interpreting C++ in the Web
A Jupyter kernel for C++ running in the Web browser
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/1liwla2
# 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/1liwla2
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
Is it good idea to use debug_toolbar to learn ORM and SQL?
I have recently found out about this tool and it has enormously helped me in understanding ORM and the SQL magic behind it
/r/django
https://redd.it/1lj5ccd
I have recently found out about this tool and it has enormously helped me in understanding ORM and the SQL magic behind it
/r/django
https://redd.it/1lj5ccd
Reddit
From the django community on Reddit
Explore this post and more from the django community
htmx accessibility gaps: data and recommendations
https://wagtail.org/blog/htmx-accessibility-gaps-data-and-recommendations/
/r/django
https://redd.it/1lj9vci
https://wagtail.org/blog/htmx-accessibility-gaps-data-and-recommendations/
/r/django
https://redd.it/1lj9vci
Wagtail CMS
htmx accessibility gaps: data and recommendations | Wagtail CMS
A look at available data, known gotchas, and how to address the gaps
D What's happening behind Google's AI Overviews?
Curious to know what happens behind the scenes of the AI Overview widget. The answers are good and the latency with which responses are returned is impressive.
Based on the citations displayed, I could infer that it is a RAG based system, but I wonder how the LLM knows to respond in a particular format for a given question.
/r/MachineLearning
https://redd.it/1lj3e0i
Curious to know what happens behind the scenes of the AI Overview widget. The answers are good and the latency with which responses are returned is impressive.
Based on the citations displayed, I could infer that it is a RAG based system, but I wonder how the LLM knows to respond in a particular format for a given question.
/r/MachineLearning
https://redd.it/1lj3e0i
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
How can I give out a webapp but not the source code?
I want to give someone a django app I made to use locally but I dont want them to be able to reproduce or make changes to the code. Whats a good way to do so?
Ive seen Obfuscation (pyarmor) and making Licens Keys is a good way to go but have no real knowledge of that process. Also saw Pyinstaller might be an option but again, no Idea. Any advice or usefull links are appreciated.
BONUS QUESTION: How can I make the install process fool proof for the user? Just as far as installing python and requirements goes along with the project in one install file.
/r/django
https://redd.it/1ljgvev
I want to give someone a django app I made to use locally but I dont want them to be able to reproduce or make changes to the code. Whats a good way to do so?
Ive seen Obfuscation (pyarmor) and making Licens Keys is a good way to go but have no real knowledge of that process. Also saw Pyinstaller might be an option but again, no Idea. Any advice or usefull links are appreciated.
BONUS QUESTION: How can I make the install process fool proof for the user? Just as far as installing python and requirements goes along with the project in one install file.
/r/django
https://redd.it/1ljgvev
Reddit
From the django community on Reddit
Explore this post and more from the django community
PyPDFForm v3.0.0 has released
Hello r/Python! About a year ago I made a post about an open source project I have been working on for about 5 years called PyPDFForm. It is a Python library that specializes in PDF form manipulations, providing essential functionalities such as inspect/edit form fields, filling forms, creating form fields, and many more.
The project received some very positive feedback from the community and has been evolving since then. Right now it's at about 14k monthly pip installs and I'm constantly getting new issues opened for different requests for the library. And because of the rise of its usage there are some groundbreaking major changes needed to happen to the library in order to address some of its legacy problems.
So it is my pleasure to announce that, just this morning, PyPDFForm has released its v3.0.0 major update. I wrote a long paragraph explaining why V3 is necessary. But here I will highlight some of the key changes in it:
1. Complete native PDF form filling. This is the legacy issue that V3 fixes. Instead of what used to be a watermark based approach, now every PDF form filled using PyPDFForm will be the same as if being filled by hand.
2. Best compatibility with Adobe Acrobat you will
/r/Python
https://redd.it/1ljas6t
Hello r/Python! About a year ago I made a post about an open source project I have been working on for about 5 years called PyPDFForm. It is a Python library that specializes in PDF form manipulations, providing essential functionalities such as inspect/edit form fields, filling forms, creating form fields, and many more.
The project received some very positive feedback from the community and has been evolving since then. Right now it's at about 14k monthly pip installs and I'm constantly getting new issues opened for different requests for the library. And because of the rise of its usage there are some groundbreaking major changes needed to happen to the library in order to address some of its legacy problems.
So it is my pleasure to announce that, just this morning, PyPDFForm has released its v3.0.0 major update. I wrote a long paragraph explaining why V3 is necessary. But here I will highlight some of the key changes in it:
1. Complete native PDF form filling. This is the legacy issue that V3 fixes. Instead of what used to be a watermark based approach, now every PDF form filled using PyPDFForm will be the same as if being filled by hand.
2. Best compatibility with Adobe Acrobat you will
/r/Python
https://redd.it/1ljas6t
Reddit
From the Python community on Reddit: PyPDFForm - A Python PDF Form Library
Explore this post and more from the Python community
Best WebSocket Library
Hi everyone! I am developing an application that requires real-time data fetching from an API, for which I need to use the WebSocket protocol. As of June 2025, what is the best library to implement WebSockets in Python? As of now, the module that handles fetching data from the API isn't very complex — its only requirement is to be able to smoothly handle around 50-100 concurrent connections with the API, where the rate of data flow is about 10 bytes per second for each connection. While the per-connection data-flow rate is expected to remain at only 10 bytes, the number of open concurrent connections may grow up to 3000, or even more. Thus, scalability is a factor that I need to consider.
I searched this sub and other related subs for discussions related to the websockets library, but couldn't find any useful threads. As a matter of fact, I couldn't find a lot of threads specifically about this library. This was unexpected, because I assumed that websockets was a popular library for implementing WebSockets in Python, and based on this assumption, I further assumed that there would be a lot of discussions related to it on Reddit. Now I
/r/Python
https://redd.it/1ljdlmw
Hi everyone! I am developing an application that requires real-time data fetching from an API, for which I need to use the WebSocket protocol. As of June 2025, what is the best library to implement WebSockets in Python? As of now, the module that handles fetching data from the API isn't very complex — its only requirement is to be able to smoothly handle around 50-100 concurrent connections with the API, where the rate of data flow is about 10 bytes per second for each connection. While the per-connection data-flow rate is expected to remain at only 10 bytes, the number of open concurrent connections may grow up to 3000, or even more. Thus, scalability is a factor that I need to consider.
I searched this sub and other related subs for discussions related to the websockets library, but couldn't find any useful threads. As a matter of fact, I couldn't find a lot of threads specifically about this library. This was unexpected, because I assumed that websockets was a popular library for implementing WebSockets in Python, and based on this assumption, I further assumed that there would be a lot of discussions related to it on Reddit. Now I
/r/Python
https://redd.it/1ljdlmw
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Ranking Alternatives to Streamlit
Hey!
What's the best Streamlit alternative for you?
Here's the ones I've got for the moment - you can checkout the leaderboard here https://streamlit-alt-leaderboard-davia.vercel.app
Gradio
Reflex
NiceGUI
Davia
Dash
Voila
Appsmith
Shiny
Panel
Would love to know which one you're using and why ! Also let me know if I'm missing one :)
/r/Python
https://redd.it/1ljn5t8
Hey!
What's the best Streamlit alternative for you?
Here's the ones I've got for the moment - you can checkout the leaderboard here https://streamlit-alt-leaderboard-davia.vercel.app
Gradio
Reflex
NiceGUI
Davia
Dash
Voila
Appsmith
Shiny
Panel
Would love to know which one you're using and why ! Also let me know if I'm missing one :)
/r/Python
https://redd.it/1ljn5t8
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
What do you use to test the django project? Unit test,Integration test, e2e test is what I'm talking about.
I currently have unit tests in ```tests.py``` generated by ```python "manage.py" startapp name``` (ignore double quotes reddit tried to turn it into a link).
Now I'm looking for recommendations or what you have used to do the integration testing, and e2e testing!
/r/django
https://redd.it/1ljmbhx
I currently have unit tests in ```tests.py``` generated by ```python "manage.py" startapp name``` (ignore double quotes reddit tried to turn it into a link).
Now I'm looking for recommendations or what you have used to do the integration testing, and e2e testing!
/r/django
https://redd.it/1ljmbhx
Reddit
From the django community on Reddit
Explore this post and more from the django community
FastAPI is usually the right choice
Digging through the big 3, it feels like FastAPI is going to be the right choice 9/10 times (with the 1 time being if you really want a full-stack all-in-one thing like Django) https://judoscale.com/blog/which-python-framework-is-best
/r/Python
https://redd.it/1ljrsti
Digging through the big 3, it feels like FastAPI is going to be the right choice 9/10 times (with the 1 time being if you really want a full-stack all-in-one thing like Django) https://judoscale.com/blog/which-python-framework-is-best
/r/Python
https://redd.it/1ljrsti
Judoscale
Choosing the Best Python Web Framework
The Python community is lucky enough to have great options to pick from when choosing the right framework. Read on to learn which one is best for your project.
Used Flask to Make a Game Mashup App
Hi, everyone! I made a web app to practice Python and Flask https://gamemashup-production.up.railway.app/use. It combines two games you provide and fuses them together into a new game. It's free, open source, and doesn't collect information. You can check it out as well as the source code.
https://github.com/SodaCatStudio/GameMashup
/r/flask
https://redd.it/1ljt288
Hi, everyone! I made a web app to practice Python and Flask https://gamemashup-production.up.railway.app/use. It combines two games you provide and fuses them together into a new game. It's free, open source, and doesn't collect information. You can check it out as well as the source code.
https://github.com/SodaCatStudio/GameMashup
/r/flask
https://redd.it/1ljt288
docker-pybuild: Embed Dockerfiles directly in your Python scripts
Hey r/Python! I wanted to share a small proof-of-concept I created that lets you build Docker images directly from Python scripts with embedded Dockerfiles.
# What My Project Does
docker-pybuild is a Docker CLI plugin inspired by PEP-723 (which allows you to specify Python version and dependencies in script metadata). It extends this concept to include a complete Dockerfile in your Python script's metadata.
# Target Audience
It's pretty much just a proof-of-concept at this point, but I thought someone might find it handy.
# Comparison
I'm not really aware of any similar projects, but I'd be happy to hear if someone knows of any alternatives.
# Example
# /// script
# requires-python = ">=3.11"
# dependencies =
# "requests<3"
#
# tool.docker
# Dockerfile = """
# FROM python:3.11
# RUN pip install pipx
# WORKDIR /app
# COPY application.py /app
# ENTRYPOINT "pipx", "run", "/app/application.py"
# """
# ///
/r/Python
https://redd.it/1lk3jst
Hey r/Python! I wanted to share a small proof-of-concept I created that lets you build Docker images directly from Python scripts with embedded Dockerfiles.
# What My Project Does
docker-pybuild is a Docker CLI plugin inspired by PEP-723 (which allows you to specify Python version and dependencies in script metadata). It extends this concept to include a complete Dockerfile in your Python script's metadata.
# Target Audience
It's pretty much just a proof-of-concept at this point, but I thought someone might find it handy.
# Comparison
I'm not really aware of any similar projects, but I'd be happy to hear if someone knows of any alternatives.
# Example
# /// script
# requires-python = ">=3.11"
# dependencies =
# "requests<3"
#
# tool.docker
# Dockerfile = """
# FROM python:3.11
# RUN pip install pipx
# WORKDIR /app
# COPY application.py /app
# ENTRYPOINT "pipx", "run", "/app/application.py"
# """
# ///
/r/Python
https://redd.it/1lk3jst
Python Enhancement Proposals (PEPs)
PEP 723 – Inline script metadata | peps.python.org
This PEP specifies a metadata format that can be embedded in single-file Python scripts to assist launchers, IDEs and other external tools which may need to interact with such scripts.