I'm a little unclear on what you're trying to do, because 'session' and 'requests' are used do describe actions , objects and libraries.
I'm reading this as possibly being pyramid interacts with a 3rd party API using the `requests` library? you want to run `requests` on some machine to interact with a 3rd party API and PyramidAPI you're talking about pyramid's request and request.session a few other things What I can share is this: If you're trying to use the `requests` library within `Pyramid` to use the JWT token, you will need to create/manage a new session object for the `requests` library on each `pyramid.request` (ie, "view"). Pyramid's `request.session` will persist across "requests" for a unique user, but `requests`' `Session` is usually used in a local scope. I'm not sure if it is safe or not to serialize and store in a pyramid session, so you might have to extract cookies and rebuild from scratch. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
