sanic.Requestobject class gained the ability to add arbitrary attributes to the
requestclass. This is how
sanic-sessionstores your session against your incoming request. This was deprecated in Sanic v19.12 in favor of usign the
request.ctxcontext object. In v20.3.0 the deprecated feature was removed. Looks like
sanic-sessionhasn't caught up yet.
Hi All very simple question I might be thinking too much into, thanks in advance for taking a look
I am trying to access this cassandra client outside of these defined listeners below that get registered to a sanic main app.
I need the session in order to use an update query which will execute Asynchronously. I can definetly connect and event query from the 'setup_cassandra_session_listener' method below. But having tough time figuring how to call this Cassandra session outside and isolate so i can access else where.
@ashleysommer not required at all solved thank you for taking a look! :)
sanic-sessiongit repo recently. The maintainer has just pushed out the release with the submitted fix an hour ago. Would it be in the cards of the sanic organization to have an integration test dashboard to let users know what plugins are working ok on the latest version? It would be helpful to highlight to the community the compatibility status and let people know what might need some work when putting out breaking changes.
The Python 2 -> 3 migration had a dashboard like that and developers had in the past chose the flavor of Python they would use based on the availability of the packages they needed.
One of the reasons I got into sanic recently is indeed for the speed and the simplicity of the code. Sanic is indeed growing and I think having a way of showing what key modules are used and its stability would also be encouraging to enterprises that might be interested in using this stack. If enterprises start using it, I think the popularity of sanic could also grow.
debug sanic with pycharm when
, if we want to keep
debug=True we also have to explicitly mention auto_reload=False
Is this a bug?