I need to investigate pgcrypto module. If it can't encrypt nonstring value, then nah, what a shame.
Sqlalchemy has these pages:
https://github.com/sqlalchemy/sqlalchemy/wiki/SymmetricEncryptionClientSide
https://github.com/sqlalchemy/sqlalchemy/wiki/SymmetricEncryptionServerSide