pg-purepy can be found on PyPI.

$ poetry add pg-purepy


pg-purepy requires Python 3.8 or newer.

Whilst pg-purepy has no C dependencies, it does have some external Python dependencies.

  • anyio is used for connecting to the database asynchronously.

  • scramp is used for SASL authentication.

  • attrs is used to create the message object classes.

  • pendulum is used for better datetime types.

  • async_generator is used pre-Python 3.10 for aclosing(). This dependency will be removed at the Python 3.9 End-of-Life date (currently scheduled for 2025-10-05).