Why we wrote a new form library for Django
https://kodare.net/2024/09/11/why-we-wrote-a-new-form-library-for-django.html
/r/django
https://redd.it/1fe96ra
https://kodare.net/2024/09/11/why-we-wrote-a-new-form-library-for-django.html
/r/django
https://redd.it/1fe96ra
En kodare
Why we wrote a new form library for Django
Django comes with a form library, and yet we wrote a total replacement library as part of iommi (GitHub link). This might seem silly, but we struggled for years to not make our own form library. At a certain point we had to admit the truth: that Django forms…
how to scale a system to handle millions of concurrent updates on the backend?
i was recently asked an interview question how i would scale an architecture currently consisting of 3 boxes (a web server, a frontend, and a backend) in order to handle millions of updates to the inventory field in the database?
this could be an ecommerce website where thousands of concurrent users come in to
purchase their items 24x7 and as such the inventory field is updated constantly
and every second of the day.
the question asked was what change or an additional box i would add to scale the
current architecture containing 3 boxes so that the latest and updated
inventory information can be accessed via APIs with low latency?
note that this question is in the the same context i asked another question here couple of
days ago about the inventory data.
in this post i wanted to lay out the exact scenario what was asked by the interviewer as i am still
puzzled if another box or change in the current architecture would be necessary. i think with various cache options available today (e.g. redis etc. which was my answer) there shouldn't be a need to add an additional box but the interviewer didn't think
/r/flask
https://redd.it/1feo261
i was recently asked an interview question how i would scale an architecture currently consisting of 3 boxes (a web server, a frontend, and a backend) in order to handle millions of updates to the inventory field in the database?
this could be an ecommerce website where thousands of concurrent users come in to
purchase their items 24x7 and as such the inventory field is updated constantly
and every second of the day.
the question asked was what change or an additional box i would add to scale the
current architecture containing 3 boxes so that the latest and updated
inventory information can be accessed via APIs with low latency?
note that this question is in the the same context i asked another question here couple of
days ago about the inventory data.
in this post i wanted to lay out the exact scenario what was asked by the interviewer as i am still
puzzled if another box or change in the current architecture would be necessary. i think with various cache options available today (e.g. redis etc. which was my answer) there shouldn't be a need to add an additional box but the interviewer didn't think
/r/flask
https://redd.it/1feo261
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Django Docker best practices for dummies?
I have created a fair few small (and one giant sprawling) Django project that are in use by small groups of consistent people (think work groups).
Up to this point, I've built sites inside python venv's and hosted with Apache mod_wsgi, all on a couple of AWS virtual machines (EC2 instances).
As I make more little Django sites, it seems like it's getting time to move into containers to keep a bit more explicit definition around package requirements/versions, transition between servers, easier local testing, etc. It seems like most tutorials out there are for toy projects on bare metal (raises hand) or using Django for Kubernetes style dynamic deployment, load balancing, etc.
Does anyone have a good resource for building / deploying relatively simple Django projects to a container for general containerization. Things like, packaging process, pros and cons of running the database in the same container / different container / bare metal, etc.
/r/django
https://redd.it/1fel39i
I have created a fair few small (and one giant sprawling) Django project that are in use by small groups of consistent people (think work groups).
Up to this point, I've built sites inside python venv's and hosted with Apache mod_wsgi, all on a couple of AWS virtual machines (EC2 instances).
As I make more little Django sites, it seems like it's getting time to move into containers to keep a bit more explicit definition around package requirements/versions, transition between servers, easier local testing, etc. It seems like most tutorials out there are for toy projects on bare metal (raises hand) or using Django for Kubernetes style dynamic deployment, load balancing, etc.
Does anyone have a good resource for building / deploying relatively simple Django projects to a container for general containerization. Things like, packaging process, pros and cons of running the database in the same container / different container / bare metal, etc.
/r/django
https://redd.it/1fel39i
Reddit
From the django community on Reddit
Explore this post and more from the django community
SEO in django
Hello, im next to build a tiny website with django and im going to deploy it. I've thinking if there is a way to configure the ceo tags with django or if i have to do it manualy.
Sorry if isn't related to django and i would be very grateful if somebody can give some advices with this.
/r/django
https://redd.it/1fevex2
Hello, im next to build a tiny website with django and im going to deploy it. I've thinking if there is a way to configure the ceo tags with django or if i have to do it manualy.
Sorry if isn't related to django and i would be very grateful if somebody can give some advices with this.
/r/django
https://redd.it/1fevex2
Reddit
From the django community on Reddit
Explore this post and more from the django community
Typical developer processes for developing features in Flask?
As a new Flask developer, I'm curious about the typical process or checklist people work through when developing a new feature.
My current flow has been working 'inside-out' in the following order:
1. Start with the models
2. Write migrations/upgrade scripts
3. Implement the view functions
4. Set up the routes
5. Build out the templates
Is this a common or recommended approach? My thinking is that I can often add new models and db migrations, etc without breaking the working app and build from there. This seems to suit the CRUD-style app I'm developing.
Or does the development approach change depending on the feature? For example, would it be different for something more complex like a stepped process, like a bank loan application form?
If so, are there a bunch of developer process patterns I should be aware of?
/r/flask
https://redd.it/1feqqr5
As a new Flask developer, I'm curious about the typical process or checklist people work through when developing a new feature.
My current flow has been working 'inside-out' in the following order:
1. Start with the models
2. Write migrations/upgrade scripts
3. Implement the view functions
4. Set up the routes
5. Build out the templates
Is this a common or recommended approach? My thinking is that I can often add new models and db migrations, etc without breaking the working app and build from there. This seems to suit the CRUD-style app I'm developing.
Or does the development approach change depending on the feature? For example, would it be different for something more complex like a stepped process, like a bank loan application form?
If so, are there a bunch of developer process patterns I should be aware of?
/r/flask
https://redd.it/1feqqr5
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
PayPal vs. Stripe for Django Donations: Which Payment Gateway is Best for a Charity Site?
I’m building a charity website where the admin can manage content and handle donations. Historically, the client used PayPal for donations, but I’m considering using Stripe instead, given the better-maintained Django modules for Stripe.
Has anyone implemented both in a Django project? Which would be more straightforward for maintaining a reliable donation system? Any advice on pros/cons of sticking with PayPal vs. switching to Stripe for this use case?
/r/django
https://redd.it/1fefwpv
I’m building a charity website where the admin can manage content and handle donations. Historically, the client used PayPal for donations, but I’m considering using Stripe instead, given the better-maintained Django modules for Stripe.
Has anyone implemented both in a Django project? Which would be more straightforward for maintaining a reliable donation system? Any advice on pros/cons of sticking with PayPal vs. switching to Stripe for this use case?
/r/django
https://redd.it/1fefwpv
Reddit
From the django community on Reddit
Explore this post and more from the django community
how do you query a certain column without including it in the route's url?
Hey guys! I'll keep this concise,
Basically I'm trying to build a mini snowflake clone, and I have have this route which takes users to a SQL query interface for the worksheet they've selected (if you've used snowflake you'll know what I mean hahah).
@users.route("/<string:username>/query/<code>", methods='GET')
@loginrequired
def query(username, code):
if username != currentuser.username:
abort(403)
# what I currently have to do
selectedworksheet = Worksheet.query.filterby(code=code)
# what I'd like to be able to do
selectedworksheet = Worksheet.query.getor404(worksheetid)
# What I want to avoid doing as it seems to add the id to the url
worksheetid = request.args.get('worksheetid', type=int)
selectedworksheet = Worksheet.query.getor404(worksheetid)
# remaining code ...
each worksheet has an id, but they also have a code so the url can look something
/r/flask
https://redd.it/1fexjlx
Hey guys! I'll keep this concise,
Basically I'm trying to build a mini snowflake clone, and I have have this route which takes users to a SQL query interface for the worksheet they've selected (if you've used snowflake you'll know what I mean hahah).
@users.route("/<string:username>/query/<code>", methods='GET')
@loginrequired
def query(username, code):
if username != currentuser.username:
abort(403)
# what I currently have to do
selectedworksheet = Worksheet.query.filterby(code=code)
# what I'd like to be able to do
selectedworksheet = Worksheet.query.getor404(worksheetid)
# What I want to avoid doing as it seems to add the id to the url
worksheetid = request.args.get('worksheetid', type=int)
selectedworksheet = Worksheet.query.getor404(worksheetid)
# remaining code ...
each worksheet has an id, but they also have a code so the url can look something
/r/flask
https://redd.it/1fexjlx
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
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/1fep0y6
# 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/1fep0y6
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Which Python libraries would be most suitable for Time Series Forecasts and Multilinear Regression?
I am working on a project geared towards addressing the issue of software project time estimation bias. To gather data, I'm building a work-log system that gathers info with respect to time taken to accomplish commonly-known tasks. These data will subsequently be trained using time series and multi linear regression.
Which Python libraries would be the most suitable for achieving these goals?
/r/Python
https://redd.it/1fexk8e
I am working on a project geared towards addressing the issue of software project time estimation bias. To gather data, I'm building a work-log system that gathers info with respect to time taken to accomplish commonly-known tasks. These data will subsequently be trained using time series and multi linear regression.
Which Python libraries would be the most suitable for achieving these goals?
/r/Python
https://redd.it/1fexk8e
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Help with ORM query
I have 3 models: Activity, ActivityDates and ActivityAttendies. Activity has a M2M relationship with ActivityDates and ActivityAttendies has a M2M relationship with ActivityDates.
class Activity(models.Model):
FREQUENCY =
('Weekly', 'Weekly'),
('Monthly', 'Monthly')
activitydates = models.ManyToManyField('ActivityDates')
activityname = models.CharField(maxlength=200)
activityinterest = models.ForeignKey(Interest, ondelete=models.CASCADE)
additionalactivitydates = models.ManyToManyField('AdditionalActivityDates')
activityfrequency = models.CharField(maxlength=11, choices=FREQUENCY, default=None)
activitylocation = models.CharField(maxlength=200)
activitycost = models.DecimalField(maxdigits=6, decimalplaces=2)
activitystartdate = models.DateField(blank=True, null=True)
activityenddate = models.DateField(blank=True, null=True)
activityartwork = models.ImageField(uploadto='activityartwork', blank=True)
class ActivityDates(models.Model):
activitydate = models.DateField()
activityattendies = models.ManyToManyField(Person, relatedname='ActivityAttendies', through='ActivityAttendies', blank=True)
activitystarttime = models.TimeField()
activityendtime = models.TimeField()
class ActivityAttendies(models.Model):
/r/djangolearning
https://redd.it/1fexg7p
I have 3 models: Activity, ActivityDates and ActivityAttendies. Activity has a M2M relationship with ActivityDates and ActivityAttendies has a M2M relationship with ActivityDates.
class Activity(models.Model):
FREQUENCY =
('Weekly', 'Weekly'),
('Monthly', 'Monthly')
activitydates = models.ManyToManyField('ActivityDates')
activityname = models.CharField(maxlength=200)
activityinterest = models.ForeignKey(Interest, ondelete=models.CASCADE)
additionalactivitydates = models.ManyToManyField('AdditionalActivityDates')
activityfrequency = models.CharField(maxlength=11, choices=FREQUENCY, default=None)
activitylocation = models.CharField(maxlength=200)
activitycost = models.DecimalField(maxdigits=6, decimalplaces=2)
activitystartdate = models.DateField(blank=True, null=True)
activityenddate = models.DateField(blank=True, null=True)
activityartwork = models.ImageField(uploadto='activityartwork', blank=True)
class ActivityDates(models.Model):
activitydate = models.DateField()
activityattendies = models.ManyToManyField(Person, relatedname='ActivityAttendies', through='ActivityAttendies', blank=True)
activitystarttime = models.TimeField()
activityendtime = models.TimeField()
class ActivityAttendies(models.Model):
/r/djangolearning
https://redd.it/1fexg7p
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Do you have any ideas for simple Django tools?
hey all,
I decided to try my hand in creating simple tools for Django users. The first one I made is a Django Secret Generator (i know, there are many such sites out there, just trying something new, and learning django while doing it, some cur me some slack 🙈).
I'm planning to do a couple more. Here are some ideas I had:
Security checker (like, is admin page under /admin. I think there was one called django pony checker or something like that, but I'm not sure it still exists)
optimization checker (are your js and css files optimized)
I'm curious to hear from the community, if you have any ideas. Thanks a ton in advance.
/r/django
https://redd.it/1fezo43
hey all,
I decided to try my hand in creating simple tools for Django users. The first one I made is a Django Secret Generator (i know, there are many such sites out there, just trying something new, and learning django while doing it, some cur me some slack 🙈).
I'm planning to do a couple more. Here are some ideas I had:
Security checker (like, is admin page under /admin. I think there was one called django pony checker or something like that, but I'm not sure it still exists)
optimization checker (are your js and css files optimized)
I'm curious to hear from the community, if you have any ideas. Thanks a ton in advance.
/r/django
https://redd.it/1fezo43
Semantix : Make GenAI Functions easily
### What Semantix Does
Current methods for extracting structured outputs from LLMs often rely on libraries such as DSPy, OpenAI Structured Outputs, and Langchain JSON Schema. These libraries typically use Pydantic Models to create JSON schemas representing classes, enums, and types. However, this approach can be costly since many LLMs treat each element of the JSON schema (e.g.,
Semantix offers a different and more cost-effective solution. Instead of using JSON schemas, Semantix represents classes, enums, and objects in a more textual manner, reducing the number of tokens and lowering inference costs. Additionally, Semantix leverages Python's built-in typing system with minor modifications to provide meaning to parameters, function signatures, classes, enums, and functions. This approach eliminates the need for unnecessary Pydantic models and various classes for different prompting methods. Semantix also makes it easy for developers to create GenAI-powered functions.
### Target Audience
Semantix is designed for developers who have worked with libraries like Langchain and DSPy and are tired of dealing with Pydantic models and JSON schemas. It is also ideal for those who want to add AI features to existing or new applications without
/r/IPython
https://redd.it/1ff2pi5
### What Semantix Does
Current methods for extracting structured outputs from LLMs often rely on libraries such as DSPy, OpenAI Structured Outputs, and Langchain JSON Schema. These libraries typically use Pydantic Models to create JSON schemas representing classes, enums, and types. However, this approach can be costly since many LLMs treat each element of the JSON schema (e.g.,
{}, :, "$") as separate tokens, leading to increased costs due to the numerous tokens present in JSON schemas.Semantix offers a different and more cost-effective solution. Instead of using JSON schemas, Semantix represents classes, enums, and objects in a more textual manner, reducing the number of tokens and lowering inference costs. Additionally, Semantix leverages Python's built-in typing system with minor modifications to provide meaning to parameters, function signatures, classes, enums, and functions. This approach eliminates the need for unnecessary Pydantic models and various classes for different prompting methods. Semantix also makes it easy for developers to create GenAI-powered functions.
### Target Audience
Semantix is designed for developers who have worked with libraries like Langchain and DSPy and are tired of dealing with Pydantic models and JSON schemas. It is also ideal for those who want to add AI features to existing or new applications without
/r/IPython
https://redd.it/1ff2pi5
Reddit
From the IPython community on Reddit: Semantix : Make GenAI Functions easily
Explore this post and more from the IPython community
The a absolute high you get when you solve a coding problem.
2 years into my career that uses python. Cannot describe the high I get when solving a difficult coding problem after hours or days of dealing with it. I had to walk out one time and take a short walk due to the excitement.
Then again on the other side of that the absolute frustration feeling is awful haha.
/r/Python
https://redd.it/1ff847f
2 years into my career that uses python. Cannot describe the high I get when solving a difficult coding problem after hours or days of dealing with it. I had to walk out one time and take a short walk due to the excitement.
Then again on the other side of that the absolute frustration feeling is awful haha.
/r/Python
https://redd.it/1ff847f
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Welcome to our new moderators 🌈
Hi r/django, you might have noticed in the sub’s sidebar we have a lot of new moderators here. Welcome u/Educational-Bed-8524, u/starofthemoon1234, u/thibaudcolas, u/czue13, u/Prudent-Function-490 ❤️
We’re all members of the Django Software Foundation’s new social media working group launched earlier this year, and have decided to see where we could help with this subreddit. Some of us have pre-existing experience with Reddit, others not as much. We’ll do our best to make it work! We’re very invested in the health of the Django community in those kinds of social online spaces. That includes moderation per Django’s Code of Conduct but also hopefully helping promote things that are relevant to our community.
Thank you for having us! We’re also really interested in any and all feedback about the subreddit.
/r/django
https://redd.it/1ffew1d
Hi r/django, you might have noticed in the sub’s sidebar we have a lot of new moderators here. Welcome u/Educational-Bed-8524, u/starofthemoon1234, u/thibaudcolas, u/czue13, u/Prudent-Function-490 ❤️
We’re all members of the Django Software Foundation’s new social media working group launched earlier this year, and have decided to see where we could help with this subreddit. Some of us have pre-existing experience with Reddit, others not as much. We’ll do our best to make it work! We’re very invested in the health of the Django community in those kinds of social online spaces. That includes moderation per Django’s Code of Conduct but also hopefully helping promote things that are relevant to our community.
Thank you for having us! We’re also really interested in any and all feedback about the subreddit.
/r/django
https://redd.it/1ffew1d
GitHub
dsf-working-groups/active/social-media.md at main · django/dsf-working-groups
Working group mechanism for the DSF. Contribute to django/dsf-working-groups development by creating an account on GitHub.
Django E-commerce (Pharmacy Management): My Learning Project – Feedback Wanted!
I’m excited to share a project I’ve been working on as part of my journey to learn **Django**: **E-commerce** (Pharmacy Management) 🎉 This web application, built with **Django Rest Framework**
**Key Features:**
* 🔐 **User Authentication**
* 🛒 **Product Management**
* 🏪 **Pharmacy Management**
* 👤 **Profile Management**
* 📝 **Prescription Handling**
* 📦 **Order Management**
* 💳 **Secure Payments**
* 📂 **File Management**
**Technologies Used:**
* Django Rest Framework
* PostgreSQL
* Django Allauth, Simple JWT
* Swagger
* Docker, GitHub Actions, Nginx
* Dropbox for file management
**Hosting:**
* Deployed on **Azure** using **GitHub Actions** for continuous integration and deployment
**Github** [link](https://github.com/MohamedHamed12/E-commerce-Pharmacy-Back-End)
[https://github.com/MohamedHamed12/E-commerce-Pharmacy-Back-End](https://github.com/MohamedHamed12/E-commerce-Pharmacy-Back-End)
I’d love to hear any feedback or suggestions
/r/django
https://redd.it/1ff7btw
I’m excited to share a project I’ve been working on as part of my journey to learn **Django**: **E-commerce** (Pharmacy Management) 🎉 This web application, built with **Django Rest Framework**
**Key Features:**
* 🔐 **User Authentication**
* 🛒 **Product Management**
* 🏪 **Pharmacy Management**
* 👤 **Profile Management**
* 📝 **Prescription Handling**
* 📦 **Order Management**
* 💳 **Secure Payments**
* 📂 **File Management**
**Technologies Used:**
* Django Rest Framework
* PostgreSQL
* Django Allauth, Simple JWT
* Swagger
* Docker, GitHub Actions, Nginx
* Dropbox for file management
**Hosting:**
* Deployed on **Azure** using **GitHub Actions** for continuous integration and deployment
**Github** [link](https://github.com/MohamedHamed12/E-commerce-Pharmacy-Back-End)
[https://github.com/MohamedHamed12/E-commerce-Pharmacy-Back-End](https://github.com/MohamedHamed12/E-commerce-Pharmacy-Back-End)
I’d love to hear any feedback or suggestions
/r/django
https://redd.it/1ff7btw
GitHub
GitHub - MohamedHamed12/E-commerce-Pharmacy-Back-End
Contribute to MohamedHamed12/E-commerce-Pharmacy-Back-End development by creating an account on GitHub.
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/1ffh7id
# 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/1ffh7id
Redditinc
Reddit Rules
Reddit Rules - Reddit
DBOS-Transact: An Ultra-Lightweight Durable Execution Library
**What my project does**
Want to share our brand new Python library providing ultra-lightweight durable execution.
https://github.com/dbos-inc/dbos-transact-py
Durable execution means your program is resilient to any failure. If it is ever interrupted or crashes, all your workflows will automatically resume from the last completed step. If you want to see durable execution in action, check out this demo app:
https://demo-widget-store.cloud.dbos.dev/
Or if you’re like me and want to skip straight to the Python decorators in action, here’s the demo app’s backend – an online store with reliability and correctness in just 200 LOC:
https://github.com/dbos-inc/dbos-demo-apps/blob/main/python/widget-store/widget_store/main.py
No matter how many times you try to crash it, it always resumes from exactly where it left off! And yes, that button really does crash the app.
Under the hood, this works by storing your program's execution state (which workflows are currently executing and which steps they've completed) in a Postgres database. So all you need to use it is a Postgres database to connect to—there's no need for a "workflow server." This approach is also incredibly fast, for example 25x faster than AWS Step Functions.
Some more cool features include:
* Scheduled jobs—run your workflows exactly-once per time interval, no more need for cron.
* Exactly-once event processing—use workflows
/r/Python
https://redd.it/1ff8257
**What my project does**
Want to share our brand new Python library providing ultra-lightweight durable execution.
https://github.com/dbos-inc/dbos-transact-py
Durable execution means your program is resilient to any failure. If it is ever interrupted or crashes, all your workflows will automatically resume from the last completed step. If you want to see durable execution in action, check out this demo app:
https://demo-widget-store.cloud.dbos.dev/
Or if you’re like me and want to skip straight to the Python decorators in action, here’s the demo app’s backend – an online store with reliability and correctness in just 200 LOC:
https://github.com/dbos-inc/dbos-demo-apps/blob/main/python/widget-store/widget_store/main.py
No matter how many times you try to crash it, it always resumes from exactly where it left off! And yes, that button really does crash the app.
Under the hood, this works by storing your program's execution state (which workflows are currently executing and which steps they've completed) in a Postgres database. So all you need to use it is a Postgres database to connect to—there's no need for a "workflow server." This approach is also incredibly fast, for example 25x faster than AWS Step Functions.
Some more cool features include:
* Scheduled jobs—run your workflows exactly-once per time interval, no more need for cron.
* Exactly-once event processing—use workflows
/r/Python
https://redd.it/1ff8257
GitHub
GitHub - dbos-inc/dbos-transact-py: Lightweight Durable Python Workflows
Lightweight Durable Python Workflows. Contribute to dbos-inc/dbos-transact-py development by creating an account on GitHub.
Will there be any problem if I learn from a Django 4 Book?
I wanted to get into Django, and I already had a book laying around Django for Beginners: Build websites with Python & Django 4.0.
I saw that there was a newer version of this book that teaches with Django 5, should I get that book, or is my book good enough?
/r/djangolearning
https://redd.it/1ffa29n
I wanted to get into Django, and I already had a book laying around Django for Beginners: Build websites with Python & Django 4.0.
I saw that there was a newer version of this book that teaches with Django 5, should I get that book, or is my book good enough?
/r/djangolearning
https://redd.it/1ffa29n
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Are celery jobs reliable?
Hey everyone,
I have a product that currently uses fastapi+sqlite3 to implement the mvp. I have a scheduled task in fastapi to do a few python things every hour. Currently, it's been working great for me.
Looking to scale up my project and just wondering if celery is a reliable solution. I'll probably be using cookiecutter-django since it's built in and should workfor this project, but just wondering if celery is the right choice for this. It's important that it runs every hour.
Any advice would be appreciated,
Thanks!
/r/django
https://redd.it/1ffma1e
Hey everyone,
I have a product that currently uses fastapi+sqlite3 to implement the mvp. I have a scheduled task in fastapi to do a few python things every hour. Currently, it's been working great for me.
Looking to scale up my project and just wondering if celery is a reliable solution. I'll probably be using cookiecutter-django since it's built in and should workfor this project, but just wondering if celery is the right choice for this. It's important that it runs every hour.
Any advice would be appreciated,
Thanks!
/r/django
https://redd.it/1ffma1e
Reddit
From the django community on Reddit
Explore this post and more from the django community
Web platform to share and execute scripts...
Hi everyone, we are developing several scripts in my team for our colleagues and as of now we package them in .exe files. We would like to change approach: is there a way to share scripts internally in a much easier way? Is Flask a good option for doing this?Thanks.
/r/flask
https://redd.it/1ffo52b
Hi everyone, we are developing several scripts in my team for our colleagues and as of now we package them in .exe files. We would like to change approach: is there a way to share scripts internally in a much easier way? Is Flask a good option for doing this?Thanks.
/r/flask
https://redd.it/1ffo52b
Reddit
From the flask community on Reddit
Explore this post and more from the flask community