Category : falconframework

I set up a very basic Python API server with falcon along the example given in the documentation. And it seems to work just fine. Now I extended the code to support HTTPS requests using SSL certificates import ssl httpd = simple_server.make_server(”, 8000, app) httpd.socket = ssl.wrap_socket( httpd.socket, server_side=True, certfile=’cert.pem’, keyfile=’key.pem’) httpd.serve_forever() And again, it ..

Read more

I am getting this error: No module named ‘falcon.api’. I have tried the docs but that didn’t help. imported packages from fastapi import APIRouter, Depends, Response from falcon.api import Policy from falcon.types import API method @ROUTER.get(‘/policy’, tags=["policy api"]) def get_policy(response: Response, auth: Token = Depends(token)): ”’ Call the policy API to get a policy ”’ ..

Read more

I’m writing a backend using falcon and celery, and I multiple endpoints with the same logic with various objects, one of the endpoints should run synchronously with the same flow. The flow is built from several chains with link_error when something terrible happens and triggers another task to finish gracefully. If the chain run successfully, ..

Read more