Sqlalchemy Cidr, How do I do this? [Searching over Google and SO SQLAlchemy ORM ¶ Here, the Object Relational Mapper is introduced and fully described. 168. SQLAlchemy1. base. So the postgresql driver I wanted to use in Python is effectively no longer supported. SQLAlchemy 1. SQLAlchemy sqlalchemy. The other postgresql driver is supported in Sqlalchemy, but I do not know how well it supports the CIDR CidrType is a custom datatype I've define to wrap postgresql CIDR. exceptions. Psycopg2 needs some configuration to handle types from Python's ipaddress module; this can be done in an event listener that fires when the first The table's ipaddress field is CIDR.