Skip to content

Create an async version of posthog-python #103

Closed

Description

@neilkakkar

For some users where local evaluation doesn't work, request blocking in python makes things much slower. Consider an async version of the library in this case

more context: https://posthoghelp.zendesk.com/agent/tickets/6553 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/9491)

Activity

  1. Paillat-dev commented on Jun 17, 2024

    @Paillat-dev

    Yes please

  2. benrapport commented on Aug 13, 2024

    @benrapport

    +1!

  3. sumersao commented on Aug 13, 2024

    @sumersao

    Please this would be a life saving!

  4. skulltech commented on Aug 28, 2024

    @skulltech

    This would be much appreciated!

    This is an optional library you can install if you're working with Python. It uses an internal queue to make calls fast and non-blocking. It also batches requests and flushes asynchronously, making it perfect to use in any part of your web app or other server side application that needs performance.

    Does this mean we don't really need async for this library?

  5. michaelfeil commented on Oct 9, 2024

    @michaelfeil

    +1

  6. preardon commented on Sep 3, 2025

    @preardon

    +1

  7. m1chll commented on Oct 5, 2025

    @m1chll

    +1

  8. autoluminescent commented on Oct 8, 2025

    @autoluminescent

    +1

  9. r-sniper commented on Nov 17, 2025

    @r-sniper

    For some users where local evaluation doesn't work, request blocking in python makes things much slower. Consider an async version of the library in this case

    more context: https://posthoghelp.zendesk.com/agent/tickets/6553 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/9491)

    Is the Zendesk request public, cause I see a not found page here

    Image
  10. Joao-Tiago-Almeida commented on Dec 18, 2025

    @Joao-Tiago-Almeida

    +1

  11. JasonLovesDoggo commented on Dec 18, 2025

    @JasonLovesDoggo

    This would be much appreciated!

    This is an optional library you can install if you're working with Python. It uses an internal queue to make calls fast and non-blocking. It also batches requests and flushes asynchronously, making it perfect to use in any part of your web app or other server side application that needs performance.

    Does this mean we don't really need async for this library?

    Yes — it’s already asynchronous in behavior. Events are queued and sent on background threads, so capture() is non-blocking, just not async/await.

    A true async client would mainly help for flag evaluation or async-native runtimes (FastAPI/asyncio), not basic event capture.

  12. natansil commented on Feb 4, 2026

    @natansil

    +1

  13. marandaneto commented on Aug 31, 2026

    @marandaneto
    Member

    #899
    exmaples here #899 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions