falcon

    1熱度

    1回答

    class Newuser(object): def on_get(self,req,resp): """ :param req: With request reads Original.exe and append the data with "echo.CUSTDATA:uuid.uuid4()" :param resp: with respons

    0熱度

    2回答

    我是新來的Python/Falcon。如何通過Python獲取userId的員工細節? falcontry.py 獵鷹例如: import falcon import json class ThingsResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 fp = ope

    2熱度

    1回答

    我使用Falcon框架和neomodel爲了與neo4j數據庫進行通信。 我在數據庫中有一些節點,我嘗試通過API(get methon)作爲JSON對象返回關於它們的信息。 爲了以檢索我使用的代碼信息people = Person.nodes 我遍歷THROU人: for p in people: print(p) ,我也得到: {'name': 'John', 'id': 0,

    0熱度

    3回答

    我如何獲得falcon中的req作爲json而不是字符串作爲單獨的鍵值對。 如果{「A:213」,「B」:32435} 我如何確保被通過,那麼獲得的

    0熱度

    1回答

    我在ubuntu 14.04上使用python 2.7.6與falcon web框架並嘗試運行簡單的Hello World程序。但是在運行這個例子時會出現以下錯誤。對此有何想法? 代碼: import falcon class ThingsResource(object): def on_get(self, req, resp): """Handles GET reque

    0熱度

    1回答

    在我的應用程序的服務級別,我提出了一個異常,我希望它被打印爲瀏覽器的JSON。 我實現它的文檔中所述: raise falcon.HTTPError( '12345 - My Custom Error', 'some text' ).to_json() 而且從控制檯輸出: TypeError: exceptions must derive from BaseExceptio

    0熱度

    1回答

    基於我的模型: from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, ForeignKey from sqlalchemy.orm import relationship Base = declarative_base() class

    5熱度

    2回答

    我正在爲我的應用程序編寫Falcon中間件。當我得到了我想要提出的錯誤,分割處理,回到我的自定義響應任何錯誤,看起來像: { "status": 503, "message": "No Token found. Token is required." } 但標準Falcon誤差實現不允許我設置自定義字段到我的反應。 如何正確解決這個問題?

    -1熱度

    1回答

    我想讓unity3d的nobint獵鷹作品。 我搜索了很多頁面,發現了一個開源項目falconunity。 但它不起作用比我的項目現在沒有進展。 PLZ幫助....

    2熱度

    1回答

    我正在使用Falcon CORS以允許僅從多個域訪問我的Web服務。但它不能正常工作。讓我解釋。 看看我的實現: ALLOWED_ORIGINS = ['*'] crossdomain_origin = CORS(allow_origins_list=[ALLOWED_ORIGINS], log_level='DEBUG') app = falcon.API(middleware=[Requ