from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
some_engine = create_engine('postgresql://scott:tiger@localhost/')
Session = sessionmaker(bind=some_engine)
session = Session()
myobject = MyObject('foo', 'bar')
session.add(myobject)
session.commit()
Driver python for postgresql