I've been using OGR/GDAL in its command window to obtain information regarding a vector file with this command

```
ogrinfo -so -al d:/vector_file.shp
```

I'm now trying to do the equivalent of this feature in a Python script but I'm unsure how to do it.

I tried looking in this documentation  https://pcjericks.github.io/py-gdalogr-cookbook/vector_layers.html#get-shapefile-feature-count

but couldn't find any examples with `ogrinfo` or how to explicitly state the arguments

I've also seen the answer https://gis.stackexchange.com/a/280900/2581, but would rather not use the `subprocess` module and instead the `osgeo`.