def print_drivers():
    for i in range(ogr.GetDriverCount()):
        driver = ogr.GetDriver(i)
        writeable = driver.TestCapability(ogr.ODrCCreateDataSource)
        print('{0} ({1})'.format(driver.GetName(),
                                 'read/write' if writeable else 'readonly'))
Print a list of available drivers.
dataset/ETHPy150Open cgarrard/osgeopy-code/ospybook/ospybook/__init__.py/print_drivers