{"library":"owslib","title":"OGC Web Service utility library (OWSLib)","description":"OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (OWS) interface standards, and their related content models. It provides a common API for accessing service metadata and wrappers for numerous OGC Web Service interfaces, including WMS, WFS, WCS, WPS, CSW, SOS, WMTS, and OGC API standards. The current version is 0.35.0, released on October 28, 2025. Releases are frequent, with several minor versions per year.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install OWSLib"],"cli":null},"imports":["from owslib.wms import WebMapService","from owslib.wfs import WebFeatureService","from owslib.wcs import WebCoverageService","from owslib.wps import WebProcessingService","from owslib.csw import CatalogueServiceWeb","from owslib.sos import SensorObservationService","from owslib.ogcapi.features import Features"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom owslib.wms import WebMapService\n\n# Using a public WMS server for demonstration\n# Note: Older examples might use decommissioned servers (e.g., wms.jpl.nasa.gov).\n# Ensure the URL is active and provides WMS capabilities.\n# For a robust solution, consider using a well-maintained public WMS or your own.\nwms_url = os.environ.get('WMS_SERVER_URL', 'http://ows.mundialis.de/services/service?')\n\ntry:\n    wms = WebMapService(wms_url, version='1.3.0')\n    print(f\"Connected to WMS: {wms.identification.title}\")\n    print(f\"Available layers: {list(wms.contents.keys())[:5]}...\")\n\n    # Example: Get metadata for a specific layer\n    if 'OSM-WMS' in wms.contents:\n        layer = wms.contents['OSM-WMS']\n        print(f\"\\nLayer 'OSM-WMS' title: {layer.title}\")\n        print(f\"Bounding Box: {layer.boundingBoxWGS84}\")\n    else:\n        print(\"Layer 'OSM-WMS' not found on this server. Trying first available layer...\")\n        if wms.contents:\n            first_layer_name = list(wms.contents.keys())[0]\n            layer = wms.contents[first_layer_name]\n            print(f\"\\nLayer '{first_layer_name}' title: {layer.title}\")\n            print(f\"Bounding Box: {layer.boundingBoxWGS84}\")\n        else:\n            print(\"No layers found on this WMS server.\")\n\nexcept Exception as e:\n    print(f\"Error connecting to WMS server or retrieving data: {e}\")\n    print(\"Please ensure the WMS_SERVER_URL environment variable is set to a valid WMS endpoint,\")\n    print(\"or use a known working public WMS server.\")\n","lang":"python","description":"This quickstart demonstrates how to connect to an OGC Web Map Service (WMS) using OWSLib, retrieve its capabilities, and inspect a specific layer's metadata. It fetches the service title and lists a few available layers.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":"0.31.0","pypi_latest":"0.35.0","is_stale":true,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3,"avg_import_s":0.68,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.68,"mem_mb":12.3,"disk_size":"38.3M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.2,"import_time_s":0.47,"mem_mb":12.3,"disk_size":"39M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.83,"mem_mb":13.8,"disk_size":"41.4M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.9,"import_time_s":0.71,"mem_mb":13.8,"disk_size":"43M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.78,"mem_mb":13.6,"disk_size":"33.1M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.6,"import_time_s":0.72,"mem_mb":13.6,"disk_size":"34M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.75,"mem_mb":14.5,"disk_size":"32.9M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.6,"import_time_s":0.69,"mem_mb":14.5,"disk_size":"34M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.62,"mem_mb":12.2,"disk_size":"40.3M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"OWSLib","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.6,"import_time_s":0.54,"mem_mb":12.2,"disk_size":"41M"}]}}