from geoserver.catalog import Catalog
cat = Catalog("http://localhost:8080/geoserver/rest/", username="admin", password="geoserver")
data_url = "D:/GISData/Raster_file/sea_ice.tif"
workspaces = cat.get_workspaces()
cat.create_coveragestore_external_geotiff('sea_ice', data_url, workspace=cat.get_workspace("seaice"), overwrite=True)
https://docs.geoserver.geo-solutions.it/edu/en/rest/python_gsconfig.htmlhttps://blog.51cto.com/u_15057829/4604346
官方文档
https://docs.geoserver.org/stable/en/user/rest/
https://www.osgeo.cn/geoserver-user-manual/rest/index.html#rest