ImportError: cannot import name 'requestctxstack' from 'flask'
Any idea what cause the problem?
==================================================
Traceback (most recent call last):
File "/opt/flask\apps/runserver.py", line 2, in <module>
from invweb import app
File "/opt/flask_apps/invweb/__init__.py", line 19, in <module>
import invweb.views
File "/opt/flask_apps/invweb/views.py", line 3, in <module>
from flaskext.mysql import MySQL
File "/opt/flask_apps/.venv/lib/python3.10/site-packages/flaskext/mysql.py", line 7, in <module>
from flask import _request_ctx_stack as _ctx_stack
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/opt/flask_apps/.venv/lib/python3.10/site-packages/flask/__init__.py)
===================================================
Requirement.txt content:
====================================================
bcrypt==4.0.1
blinker==1.7.0
click==8.1.7
Flask==3.0.0
Flask-MySQL==1.5.2
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.3
PyMySQL==1.1.0
Werkzeug==3.0.1
===================================================
​
The server is ubuntu 22.04.04 LTS.
​
​
​
/r/flask
https://redd.it/184yhiq
Any idea what cause the problem?
==================================================
Traceback (most recent call last):
File "/opt/flask\apps/runserver.py", line 2, in <module>
from invweb import app
File "/opt/flask_apps/invweb/__init__.py", line 19, in <module>
import invweb.views
File "/opt/flask_apps/invweb/views.py", line 3, in <module>
from flaskext.mysql import MySQL
File "/opt/flask_apps/.venv/lib/python3.10/site-packages/flaskext/mysql.py", line 7, in <module>
from flask import _request_ctx_stack as _ctx_stack
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/opt/flask_apps/.venv/lib/python3.10/site-packages/flask/__init__.py)
===================================================
Requirement.txt content:
====================================================
bcrypt==4.0.1
blinker==1.7.0
click==8.1.7
Flask==3.0.0
Flask-MySQL==1.5.2
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.3
PyMySQL==1.1.0
Werkzeug==3.0.1
===================================================
​
The server is ubuntu 22.04.04 LTS.
​
​
​
/r/flask
https://redd.it/184yhiq
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Looking to hire a Django developer
Hi all,
I'm looking for a Django developer. I don't really trust Indeed or Linkedin because of the bots so I'm deciding to post the job here instead.
A bit about the company
Blendable ([blendable.ca](https://blendable.ca))
We provide insurance and group benefits to employers
Located in Canada
Relevant candidates
Intermediate developer (i.e. not a junior, not a senior)
2-3 years experience with Django
Candidates working from Canada will be given preference
Job details
95k salary
Fully remote
Work your own hours
You'll be collaborating with the rest of the development team to build out our web app.
How to apply
If you're interested, DM me with the following information:
Your name & email
Where you're located
A link to your website/portfolio/resume
Any questions about the role/job
/r/django
https://redd.it/185adey
Hi all,
I'm looking for a Django developer. I don't really trust Indeed or Linkedin because of the bots so I'm deciding to post the job here instead.
A bit about the company
Blendable ([blendable.ca](https://blendable.ca))
We provide insurance and group benefits to employers
Located in Canada
Relevant candidates
Intermediate developer (i.e. not a junior, not a senior)
2-3 years experience with Django
Candidates working from Canada will be given preference
Job details
95k salary
Fully remote
Work your own hours
You'll be collaborating with the rest of the development team to build out our web app.
How to apply
If you're interested, DM me with the following information:
Your name & email
Where you're located
A link to your website/portfolio/resume
Any questions about the role/job
/r/django
https://redd.it/185adey
Blendable
Blendable Home Page
Blendable provides flexible employee benefit plans that are tailormade for you and your needs.
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/185hzaf
# 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/185hzaf
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
How to deploy Django on VPS?
I purchased a VPS in Hostinger in order to deploy a django app, I haven't found any updated guides except this one: https://holamundo.io/2023/06/09/como-desplegar-tus-apps-de-python-con-hostinger-y-github-actions/
Still, I got to the part where I have to make the LiteSpeed point to my project:
​
https://preview.redd.it/30t8v2icsx2c1.png?width=1614&format=png&auto=webp&s=154b8f93562fa5416adac05f67b33e09dea41252
Config
My wsgi.py is in:
​
https://preview.redd.it/ysyls6ldsx2c1.png?width=1614&format=png&auto=webp&s=5fa6c547c041468e8dcb17d65f75940d20df63b0
wsgi.py
and my LiteSpeed config is:
​
https://preview.redd.it/a6nadj2esx2c1.png?width=936&format=png&auto=webp&s=da90b9568fec39860ab7ac909b5bde346369e68b
I believe everything is pointing correctly as it should be, but I still get a 500 error when I access the ip. Does anyone know what I'm doing wrong?
/r/djangolearning
https://redd.it/185ae01
I purchased a VPS in Hostinger in order to deploy a django app, I haven't found any updated guides except this one: https://holamundo.io/2023/06/09/como-desplegar-tus-apps-de-python-con-hostinger-y-github-actions/
Still, I got to the part where I have to make the LiteSpeed point to my project:
​
https://preview.redd.it/30t8v2icsx2c1.png?width=1614&format=png&auto=webp&s=154b8f93562fa5416adac05f67b33e09dea41252
Config
My wsgi.py is in:
​
https://preview.redd.it/ysyls6ldsx2c1.png?width=1614&format=png&auto=webp&s=5fa6c547c041468e8dcb17d65f75940d20df63b0
wsgi.py
and my LiteSpeed config is:
​
https://preview.redd.it/a6nadj2esx2c1.png?width=936&format=png&auto=webp&s=da90b9568fec39860ab7ac909b5bde346369e68b
I believe everything is pointing correctly as it should be, but I still get a 500 error when I access the ip. Does anyone know what I'm doing wrong?
/r/djangolearning
https://redd.it/185ae01
Hola Mundo
¿Cómo desplegar tus apps de Python con Hostinger y GitHub Actions?
Hola mundo, y bienvenidos a este artículo, en este vamos a describir la secuencia de pasos que tendrás que realizar para poder hacer despliegue de tus aplicaciones en un VPS o servidor, esto desde …
Google ads API not running on admin pod but is running on celery worker
So basically the title,
I am working on a project where I need to run a custom method in Django admin of some model, in this method I am acquiring a connection to the Google ads API and making a request to create something. While running this method in the admin pod, the process got stuck, but when I made a celery task it was fine and worked just as I expected, this is not the first project that this problem happened to our team, I couldn't find any explanation and I was wondering why did it happen, would love to get you insight on it.
/r/django
https://redd.it/185r1z1
So basically the title,
I am working on a project where I need to run a custom method in Django admin of some model, in this method I am acquiring a connection to the Google ads API and making a request to create something. While running this method in the admin pod, the process got stuck, but when I made a celery task it was fine and worked just as I expected, this is not the first project that this problem happened to our team, I couldn't find any explanation and I was wondering why did it happen, would love to get you insight on it.
/r/django
https://redd.it/185r1z1
Reddit
From the django community on Reddit
Explore this post and more from the django community
PEP 734: Multiple Interpreters in the Stdlib
https://peps.python.org/pep-0734/
/r/Python
https://redd.it/185pz99
https://peps.python.org/pep-0734/
/r/Python
https://redd.it/185pz99
Python Enhancement Proposals (PEPs)
PEP 734 – Multiple Interpreters in the Stdlib | peps.python.org
This PEP proposes to add a new module, interpreters, to support inspecting, creating, and running code in multiple interpreters in the current process. This includes Interpreter objects that represent the underlying interpreters. The module will also ...
miniloop: a minimal, pedagogical event loop implementation
https://github.com/roee30/miniloop
The PEPs introducing the async/await syntax don't specify exactly how event loops work, considering it an implementation detail. If you are curious about how event loops work in Python, you might have noticed that reading through asyncio's code is challenging, to say the least.
That's why I have created a minimal event loop implementation with step-by-step explanations. It shouldn't be used for anything other than learning purposes. It is 362 lines in size, but many of them are documentation. Before diving in, make sure you understand generators. You can use the
The implementation is inspired by asyncio, but I only added what was necessary in order to make a simple server work. In particular, my
I learned a lot writing this and I hope it will be useful to others as well.
/r/Python
https://redd.it/1859c26
https://github.com/roee30/miniloop
The PEPs introducing the async/await syntax don't specify exactly how event loops work, considering it an implementation detail. If you are curious about how event loops work in Python, you might have noticed that reading through asyncio's code is challenging, to say the least.
That's why I have created a minimal event loop implementation with step-by-step explanations. It shouldn't be used for anything other than learning purposes. It is 362 lines in size, but many of them are documentation. Before diving in, make sure you understand generators. You can use the
server.py script to see the loop in action.The implementation is inspired by asyncio, but I only added what was necessary in order to make a simple server work. In particular, my
Task and Future are roughly analogous to asyncio's, but I didn't find a need to implement Handles (perhaps because I didn't implement the call_* methods).I learned a lot writing this and I hope it will be useful to others as well.
/r/Python
https://redd.it/1859c26
GitHub
GitHub - roee30/miniloop: A minimal event loop implementation
A minimal event loop implementation. Contribute to roee30/miniloop development by creating an account on GitHub.
Wireup: Dependency Injection for Flask
https://github.com/maldoinc/wireup
/r/flask
https://redd.it/183vbsn
https://github.com/maldoinc/wireup
/r/flask
https://redd.it/183vbsn
GitHub
GitHub - maldoinc/wireup: Performant, concise, and easy-to-use dependency injection container for Python 3.8+.
Performant, concise, and easy-to-use dependency injection container for Python 3.8+. - maldoinc/wireup
The Python Rich Package: Unleash the Power of Console Text
https://realpython.com/python-rich-package/
/r/Python
https://redd.it/185xcm7
https://realpython.com/python-rich-package/
/r/Python
https://redd.it/185xcm7
Realpython
The Python Rich Package: Unleash the Power of Console Text – Real Python
Rich is a powerful library for constructing text-based user interfaces (TUIs) using Python. With it, you can make your code more readable by pretty-printing complex data structures, and you can make your app more attractive for your user with colored and…
Deploy Flask-app on IIS?
Hi all,
I have a simple Flask-app with the following structure that works fine locally on my machine:
\- app.py
\- static (folder)
\- scripts.js
\- styles.css
\- templates (folder)
\-index.html
app.py looks like this:
from flask import Flask, render_template
app = Flask(__name__)
# Ensure templates are auto-reloaded
app.config["TEMPLATES_AUTO_RELOAD"] = True
# Define the index page
@app.route("/", methods=["GET"])
def index():
resources = ['listhere']
instances = list(range(1,100))
# Add leading zero to first 10 digits
for i in range(9):
instances[i] = "0" + str(i + 1)
# Sort all lists just in case
resources = sorted(resources)
locations =
/r/flask
https://redd.it/185zp24
Hi all,
I have a simple Flask-app with the following structure that works fine locally on my machine:
\- app.py
\- static (folder)
\- scripts.js
\- styles.css
\- templates (folder)
\-index.html
app.py looks like this:
from flask import Flask, render_template
app = Flask(__name__)
# Ensure templates are auto-reloaded
app.config["TEMPLATES_AUTO_RELOAD"] = True
# Define the index page
@app.route("/", methods=["GET"])
def index():
resources = ['listhere']
instances = list(range(1,100))
# Add leading zero to first 10 digits
for i in range(9):
instances[i] = "0" + str(i + 1)
# Sort all lists just in case
resources = sorted(resources)
locations =
/r/flask
https://redd.it/185zp24
Reddit
From the flask community on Reddit: Deploy Flask-app on IIS?
Explore this post and more from the flask community
What are the best libraries to work with graphs?
The title says it all. I am working on a project involving some number theory and graphs.
What Python packages do you know that would make working with graphs the easiest? Perhaps SageMath?
/r/Python
https://redd.it/185xexg
The title says it all. I am working on a project involving some number theory and graphs.
What Python packages do you know that would make working with graphs the easiest? Perhaps SageMath?
/r/Python
https://redd.it/185xexg
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Just like in the real world, django also has F expressions. Quick tip
/r/django
https://redd.it/185rb8e
/r/django
https://redd.it/185rb8e
Django GraphDB
Hi everyone - never did a big Django project before but now I plan to start one which might grow in the future. It is an internal app and it will need to do some operations with Neo4j. My question is: is Django my best option or should I use another framework? I will need the basic admin over users etc but in terms of ""additional"" databases, I need to build a knowledge db with Neo4j (or any alternative graphdb). thanks in advance :)
/r/django
https://redd.it/185znuv
Hi everyone - never did a big Django project before but now I plan to start one which might grow in the future. It is an internal app and it will need to do some operations with Neo4j. My question is: is Django my best option or should I use another framework? I will need the basic admin over users etc but in terms of ""additional"" databases, I need to build a knowledge db with Neo4j (or any alternative graphdb). thanks in advance :)
/r/django
https://redd.it/185znuv
Reddit
From the django community on Reddit
Explore this post and more from the django community
pytest parametrize vs highly repetitive code?
In pytest ... or, for that matter, in the world of QA automation ... the coder is usually given the ability to parameterize variables that control the test cases. But at what point of adding successive parameters does this become overkill? What are your rules-of-thumb when deciding to write another test function or add a parameter (and perhaps an if-statement or more) to an existing test function?
I've always leaned toward the parameterize approach, only to, in the end, wish I hadn't made the primary test function so complicated and full of special-case if-statements. Having four or even eight nearly-identical test functions goes against the code-reuse theme that permeates s/w engineering. But sometimes code repetition is both easier to read and maintain - particularly in the domain of writing test automation.
/r/Python
https://redd.it/1866gj0
In pytest ... or, for that matter, in the world of QA automation ... the coder is usually given the ability to parameterize variables that control the test cases. But at what point of adding successive parameters does this become overkill? What are your rules-of-thumb when deciding to write another test function or add a parameter (and perhaps an if-statement or more) to an existing test function?
I've always leaned toward the parameterize approach, only to, in the end, wish I hadn't made the primary test function so complicated and full of special-case if-statements. Having four or even eight nearly-identical test functions goes against the code-reuse theme that permeates s/w engineering. But sometimes code repetition is both easier to read and maintain - particularly in the domain of writing test automation.
/r/Python
https://redd.it/1866gj0
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Which one is preferred: self.state.adding VS not self.pk?
I'm going to do some checks before object is saved in DB and I just came across this:
if self.state.adding: # do something
which I never used before. I only used:
if not self.pk: # do something
are they functionally equivalent for identifying new model instances? Does one method have advantages over the other in certain scenarios? Seeking insights on best practices and functional differences, if any.
Which one is preferred generally?
​
/r/django
https://redd.it/1867jpf
I'm going to do some checks before object is saved in DB and I just came across this:
if self.state.adding: # do something
which I never used before. I only used:
if not self.pk: # do something
are they functionally equivalent for identifying new model instances? Does one method have advantages over the other in certain scenarios? Seeking insights on best practices and functional differences, if any.
Which one is preferred generally?
​
/r/django
https://redd.it/1867jpf
Reddit
From the django community on Reddit
Explore this post and more from the django community
Wednesday Daily Thread: Beginner questions
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/186b1u1
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/186b1u1
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
How to configure django-markdown-editor to save upload images to local storage
Hi there,
Here is what is working:
* Create an new Django app, installed & configure with django markdown editor ([https://pypi.org/project/martor/](https://pypi.org/project/martor/)). register the application at [https://api.imgur.com/oauth2/addclient](https://api.imgur.com/oauth2/addclient) to get IMGUR\_CLIENT\_ID & IMGUR\_API\_KEY. It is working with no issue when uploading image but it saves to imgur's website ([https://i.imgur.com/dqHGHXp.jpg](https://i.imgur.com/dqHGHXp.jpg))
​
Here is not working:
I tried to configure & save the uploaded images to local storage based on it's wiki but it does NOT work
[https://github.com/agusmakmun/django-markdown-editor/wiki](https://github.com/agusmakmun/django-markdown-editor/wiki)
I have the following in my app's [urls.py](https://urls.py) but it never call "markdown\_uploader" function
\# [urls.py](https://urls.py)
urlpatterns = \[path('api/uploader/', markdown\_uploader, name='markdown\_uploader\_page'),\]
\# [views.py](https://views.py)
\# @ login\_requireddef markdown\_uploader(request):
print("got here???")
....
Has anyone able to save the upload images to either local storage or AWS S3?
​
/r/django
https://redd.it/186bx4o
Hi there,
Here is what is working:
* Create an new Django app, installed & configure with django markdown editor ([https://pypi.org/project/martor/](https://pypi.org/project/martor/)). register the application at [https://api.imgur.com/oauth2/addclient](https://api.imgur.com/oauth2/addclient) to get IMGUR\_CLIENT\_ID & IMGUR\_API\_KEY. It is working with no issue when uploading image but it saves to imgur's website ([https://i.imgur.com/dqHGHXp.jpg](https://i.imgur.com/dqHGHXp.jpg))
​
Here is not working:
I tried to configure & save the uploaded images to local storage based on it's wiki but it does NOT work
[https://github.com/agusmakmun/django-markdown-editor/wiki](https://github.com/agusmakmun/django-markdown-editor/wiki)
I have the following in my app's [urls.py](https://urls.py) but it never call "markdown\_uploader" function
\# [urls.py](https://urls.py)
urlpatterns = \[path('api/uploader/', markdown\_uploader, name='markdown\_uploader\_page'),\]
\# [views.py](https://views.py)
\# @ login\_requireddef markdown\_uploader(request):
print("got here???")
....
Has anyone able to save the upload images to either local storage or AWS S3?
​
/r/django
https://redd.it/186bx4o
PyPI
martor
Django Markdown Editor
What's up Python? New args syntax, subinterpreters FastAPI and cuda pandas…
https://www.bitecode.dev/p/whats-up-python-new-args-syntax-subinterpreters
/r/Python
https://redd.it/18676xd
https://www.bitecode.dev/p/whats-up-python-new-args-syntax-subinterpreters
/r/Python
https://redd.it/18676xd
www.bitecode.dev
What's up Python? New args syntax, subinterpreters FastAPI and cuda pandas…
October 2023
htmx or basic javascript?
almost finished a js course, and want to dive into learning django. was thinking of doing react until I found out about htmx. Here's the thing, can I skip htmx completely and just focus on basic js, since from some of the posts on this sub I hear that while htmx is great its not comprehensive like js. so if i've already invested time in js, can I just focus on that as everything htmx can do - js can do, but everything js can do - htmx can't do?
really knew to this stuff, dont want to invest time in something that i don't need.
thanks for reading
/r/django
https://redd.it/186gtej
almost finished a js course, and want to dive into learning django. was thinking of doing react until I found out about htmx. Here's the thing, can I skip htmx completely and just focus on basic js, since from some of the posts on this sub I hear that while htmx is great its not comprehensive like js. so if i've already invested time in js, can I just focus on that as everything htmx can do - js can do, but everything js can do - htmx can't do?
really knew to this stuff, dont want to invest time in something that i don't need.
thanks for reading
/r/django
https://redd.it/186gtej
Reddit
From the django community on Reddit
Explore this post and more from the django community
Flask-Muck: Flask REST Framework that generates complete CRUD APIs for your SqlAlchemy models in as little as 9 lines of code.
"With Flask-Muck you don't have to worry about the CRUD.
Flask-Muck is a batteries-included framework for automatically generating RESTful APIs with Create, Read, Update and Delete (CRUD) endpoints in a Flask/SqlAlchemy application stack."
Links: GitHub \- Documentation \- PyPi
​
After years of working in Flask/SqlAlchemy/Marshmallow apps I felt like there was a large gap in the tooling for creating standard REST APIs that perform basic CRUD operations. Especially when comparing it to the Django ecosystem. I'm hoping this can remove large amounts of boilerplate for folks and get some projects bootstrapped and off the ground much more quickly.
The library has just been released so I'm leaving the beta tag on the pypi releases for a bit until I get some strong feedback. I'm currently looking for early adopters to use it in personal/side projects.
If anyone would like to take it for a spin and report back on any missing features or bugs I'd love to work with you. I don't have much to offer but would be happy to credit you as a contributor to the project.
​
/r/Python
https://redd.it/186k0td
"With Flask-Muck you don't have to worry about the CRUD.
Flask-Muck is a batteries-included framework for automatically generating RESTful APIs with Create, Read, Update and Delete (CRUD) endpoints in a Flask/SqlAlchemy application stack."
Links: GitHub \- Documentation \- PyPi
​
After years of working in Flask/SqlAlchemy/Marshmallow apps I felt like there was a large gap in the tooling for creating standard REST APIs that perform basic CRUD operations. Especially when comparing it to the Django ecosystem. I'm hoping this can remove large amounts of boilerplate for folks and get some projects bootstrapped and off the ground much more quickly.
The library has just been released so I'm leaving the beta tag on the pypi releases for a bit until I get some strong feedback. I'm currently looking for early adopters to use it in personal/side projects.
If anyone would like to take it for a spin and report back on any missing features or bugs I'd love to work with you. I don't have much to offer but would be happy to credit you as a contributor to the project.
​
/r/Python
https://redd.it/186k0td
GitHub
GitHub - dtiesling/flask-muck at v0.0.3b6
🧹 Flask REST framework for generating CRUD APIs and OpenAPI specs in the SQLAlchemy, Marshmallow/Pydantic application stack. - GitHub - dtiesling/flask-muck at v0.0.3b6