Automatically publishing WMS/WFS in Geoserver

Does any one know how to automate publishing of a WMS or WFS Layer in Geoserver given any data source (vector shape-files) using script or programming language (preferably Python)

Check out the Geoserver REST API and the python wrapper gsconfig for the REST API.

Watch the video: GeoServer Web GIS: Web Map Service WMS Publishing with Shapefile EN (September 2021).