asyncpg [1] is a new fully-featured open-source Python client library for
PostgreSQL. It is built specifically for asyncio and Python 3.5 async /
await. asyncpg is the fastest driver among common Python, NodeJS and Go
implementations.
Feature highlights:
* very fast (2-3x faster than psycopg2 on average [2]);
* direct implementation of PostgreSQL protocol and binary type I/O;
* automatic encoding and decoding of all standard data types,
composite types, arrays, range types, and any combination of those;
* straightforward support for implementation of custom data type codecs;
* support for prepared statements;
* no external dependencies, easy installation.
Feedback, suggestions and pull requests are very welcome.
Read more about asyncpg in the introductory blog post [2].
[1] https://github.com/MagicStack/asyncpg
[2] http://magic.io/blog/asyncpg-1m-rows-from-postgres-to-python/