Using ogr2ogr command line I can overwrite or append to an existing PostGIS table like:
ogr2ogr -f "PostgreSQL"-overwrite PG:"host=myserver port=54321 user=user dbname=mydbname password=mypassword" C:/Temp/my.shp
Next, I would like to incorporate this logic into a python script. I've found some useful sites, however I'm not finding any examples using these methods.
Open Source RS/GIS Python Week 1
Append a shapefile to a postgis table using the GDAL/OGR Python interface
How do you overwrite or append to a PostGIS table using ogr2ogr commands in python?