home.social

#contextvars — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #contextvars, aggregated by home.social.

  1. Anyone understand #ContextVars in #python ? I'm trying to add support to #svcs so that when there isn't a web framework with a context to glom onto, that you can use the thread/thread.local/ContextVars and an alternative to the Application/Request that a web framework would provide.

    So far, I can only get it to "work" if the ContextVars are globals.

    gist.github.com/matthewdeanmar

  2. Anyone understand #ContextVars in #python ? I'm trying to add support to #svcs so that when there isn't a web framework with a context to glom onto, that you can use the thread/thread.local/ContextVars and an alternative to the Application/Request that a web framework would provide.

    So far, I can only get it to "work" if the ContextVars are globals.

    gist.github.com/matthewdeanmar

  3. Anyone understand #ContextVars in #python ? I'm trying to add support to #svcs so that when there isn't a web framework with a context to glom onto, that you can use the thread/thread.local/ContextVars and an alternative to the Application/Request that a web framework would provide.

    So far, I can only get it to "work" if the ContextVars are globals.

    gist.github.com/matthewdeanmar

  4. Anyone understand #ContextVars in #python ? I'm trying to add support to #svcs so that when there isn't a web framework with a context to glom onto, that you can use the thread/thread.local/ContextVars and an alternative to the Application/Request that a web framework would provide.

    So far, I can only get it to "work" if the ContextVars are globals.

    gist.github.com/matthewdeanmar

  5. Anyone understand #ContextVars in #python ? I'm trying to add support to #svcs so that when there isn't a web framework with a context to glom onto, that you can use the thread/thread.local/ContextVars and an alternative to the Application/Request that a web framework would provide.

    So far, I can only get it to "work" if the ContextVars are globals.

    gist.github.com/matthewdeanmar