falconframework Questions
1
I am trying to check celery results from the command line but get a No Result Backend Configured error. I have setup redis as my result backend and am now at a loss.
I have the celery app setup l...
Eastbound asked 21/7, 2017 at 14:45
2
Solved
I'm using Falcon, I need pass variable from middleware to resource, how can I do that?
main.py
app = falcon.API(middleware=[
AuthMiddleware()
])
app.add_route('/', Resource())
and auth
class...
Chichi asked 7/8, 2018 at 6:20
8
I try to use falcon package in my project. Problem is I didn't find a way to get body data from the HTTP post request.
I used code from example, but req.stream.read() doesn't return JSON as expect...
Tamtam asked 8/2, 2018 at 6:42
1
I'm using selenium to make a headless scraping of a website within an endpoint of an API using Flask for Python. I made several tests and my selenium scraping code works perfectly within a script a...
Boniface asked 3/9, 2021 at 2:50
4
Solved
so currently I am trying to upload a file, and save it on the Google Clouds. But I am stuck at how to get the input file using React-Redux.
Basically, my back-end part already finish, I tested it ...
Radack asked 15/9, 2017 at 7:0
2
Solved
When Falcon(-Framework) could not find a route for a specific request, 404 is returned. How can I override this default handler? I want to extend the handler with a custom response.
Desiderative asked 20/12, 2015 at 21:32
2
Solved
I'm setting up a webapp with a frontend and a backend that communicates with the frontend soley through RESTful methods. How do I make sure that the backend endpoints are only accessed by my own fr...
Embattled asked 25/1, 2019 at 16:39
2
Solved
I'm wondering where the best place would be to create a scoped session for use in falcon.
From reading the flask-sqlalchemy code, it, in a round about way, does something like this:
from sqlalche...
Waw asked 10/8, 2016 at 1:55
4
Solved
I am writing an API using python3 + falcon combination.
There are lot of places in methods where I can send a reply to a client but because of some heavy code which does DB, i/o operations, etc it...
Tiossem asked 4/12, 2014 at 14:55
3
Solved
Is there a way in Falcon framework to respond with HTTP 500 status on any unspecific exception that is not handled in resource handler? I've tried to add following handler for Exception:
api.add_e...
Savick asked 19/9, 2016 at 10:16
3
Ho do you configure the app to have following features:
Have an api-endpoint defined as app.add_route('/v1/tablets', TabletsCollection())
And still be able to use QueryParams like this https://e...
Insanity asked 19/10, 2017 at 14:14
2
Solved
import falcon
import json
from tasks import add
from waitress import serve
class tasksresource:
def on_get(self, req, resp):
"""Handles GET requests"""
self.result = add.delay(1, 2)
self.cont...
Grumble asked 17/1, 2017 at 12:30
1
Solved
I'm moving my code from Flask to Falcon and a small annoyance is that I can't seem to find way to run my Falcon-based app from the __main__ method. In my Flask app I had this:
if __name__ == '__ma...
Gardie asked 19/3, 2019 at 23:54
2
Solved
I just started to learn Falcon (http://falcon.readthedocs.org/en/latest/user/quickstart.html)
but it need a web server running and docs suggesting use uwsgi or gunicorn.
though they have mentione...
Nathalie asked 6/6, 2014 at 18:6
2
I'm trying to implement OAuth2 server for a RESTfull API with a login option through social platforms (Github, Facebook, Instagram) using Python and Falcon web framework.
But I've struggled to unde...
Rustin asked 14/10, 2018 at 20:45
2
Solved
My routes are as follows:
app.add_route('/v1/my_route', MyResource())
app.add_route('/v1/my_route/{app_id}', MyResource())
app.add_route('/v1/my_route2/any_route', AnyRouteResource())
app.add_rout...
Kaylor asked 17/8, 2018 at 7:46
3
I'm creating a REST API for an application using Falcon. When launching two or more requests to the API on different endpoints, there's no multi-threaded execution (One request has to be finished t...
Titustityus asked 2/11, 2016 at 7:36
1
Solved
I have implemented a web service using Falcon. This service stores a state machine (pytransitions) that is passed to service's resources in the constructor. The service is runs with gunicorn.
The ...
Unscrupulous asked 14/5, 2018 at 6:59
2
I'm trying to implement POST request for uploading files with Falcon framework (python).
I have used falcon-multipart in order to multipart/form-data, this allow me to retrieve my file in a cgi.F...
Neper asked 23/2, 2018 at 3:12
3
Solved
I am new to python and hence falcon. I started developing a RESTful API and falcon so far is great for it. There is some other requirement to serve a static web page and I dont want to write an app...
Machicolate asked 16/1, 2016 at 0:7
1
Solved
I've a simple falcon app which I'm running on the terminal using the following command,
gunicorn -b 0.0.0.0:5000 main:app --reload
main.py is the python file which instantiates app = falcon.API(...
Ewell asked 23/11, 2017 at 23:3
1
I am new to Website Development. I am using React-Redux, and Python as my backend(Falcon framework) and what I did were:
1) Receive a formData() from frontEnd, using Dispatch to POST :
my Dispatc...
Retene asked 18/9, 2017 at 5:6
1
Solved
I'm using the Falcon framework and Pillow to upload a profile picture of a contact to S3, then resizing that picture for a thumbnail, and then uploading that thumbnail.
I've looked at other answer...
Betsybetta asked 23/7, 2017 at 17:31
1
Solved
Is there a way to define optional path parameters in the Falcon web framework? Currently, I'm declaring separate routes for modifying the same resource.
app.add_route('/users/', users_api_post)
ap...
Abortion asked 7/9, 2016 at 7:39
0
What is the most convenient and comprehensive way of validating incoming requests in Falcon views against Swagger 2.0 specification written in json?
I used to do the same for Pyramid apps with gre...
Oldline asked 30/7, 2016 at 10:0
1 Next >
© 2022 - 2024 — McMap. All rights reserved.