All Questions
15 questions
0
votes
0
answers
42
views
Best Practices for Commit/Rollback in Python’s Unit of Work Pattern for Layered Architecture
I have an image below illustrating a layered architecture from the book Architecture Patterns in Python.
Layer architecture image
When implementing this pattern in Python, as shown in the code below, ...
0
votes
1
answer
414
views
Retry post request Mechanism in Backend in python flask
Context: I have one API, where inside the API 3 different external POST APIs are called. And behaviour should be if all 3 APIs give success response, then only overall API should be success. And even ...
0
votes
1
answer
426
views
IoT Python application architecture with Flask on Raspberry Pi [duplicate]
I've started working with Raspberry Pi and I've faced with architecture problem.
I want to make python app which blink the LED using GPIO and have Web interface to start and stop blinking.
In the Web ...
0
votes
0
answers
224
views
flask db migrate not detecting Schema from models folder
Hi guys i am trying to implement MVC pattern in my flask rest API application but I am facing some issues like flask migration and writing scalable code.
For flask migration I'm not able to detect ...
0
votes
1
answer
48
views
Designing a maintainable/editable website for a society
first of all apologies for the vague question, I thought I would clarify it in the body.
So basically, I am looking to design a website for my society, as a person with a fair amount of software ...
0
votes
1
answer
70
views
Can I avoid using a database in this scenario?
I'm building a web-app with Flask and have an philosophical/architecture related question for all you with more experience than I.
The user enters some basic search criteria in my app, my app then ...
-1
votes
1
answer
942
views
Database design for meeting room availability and booking
I am trying to create a scheduling system for our office meeting rooms.
currently we have three meeting rooms, each one in a different size , different floor and not all of them are available the ...
5
votes
0
answers
260
views
Python microservice for Elastic logic
I want to implement Python Flask microservice for serving Elasticsearch queries.
Before I dive in, I would like to know some pros and cons of approaches I can take.
Send passive cURL requests and ...
2
votes
1
answer
2k
views
Application-wide request hooks in Flask. How to implement?
Is it ok to define a shared request hook inside the application factory?
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
db.init_app(app)
...
0
votes
1
answer
265
views
DispatcherMiddleware accessing distributed apps on local/remote servers
I am trying to run a Flask app locally which also needs to access resources run on a separate Flask app deployed on a remote server on the local network. I thought this may be possible using a ...
3
votes
0
answers
234
views
Avoiding DB polling in python-rq app [closed]
I have a Flask application that schedules long running jobs to run using python-rq. One of my requirements is that the user can specify the number of jobs running at any given time.
The app doesn't ...
0
votes
0
answers
442
views
Intermediate page in Python Flask, then continue original Request
Kind of a conceptual question here. In a Flask app, I'd like to introduce an intermediate confirmation page to the user, before firing the next complex action that requires the Flask request object. ...
0
votes
1
answer
282
views
Logic in Primary Jinja Template
In my app.py file, I've stored my navigation in a dict. The keys being the main navigation and the values being the submenus.
navigation = {"Search": ["Google","Yahoo","Bing"]}
In my layout.html ...
3
votes
1
answer
2k
views
Efficiently serving large static files to many clients after login with Flask
I have to serve very large static files to multiple clients, but some clients do not have access to all files, so my server has to check for the file permissions for each client, and I cannot use ...
1
vote
1
answer
86
views
Storing constant data of site/
I doubt if should use SQL database for storing some kind of information, but i do not want to "hardcode" this information directly to my templates.
For example, now I'm working at my freelancer's ...