{"library":"pephubclient","title":"PEPhub Client Library","description":"The `pephubclient` is a Python client library for interacting with PEPhub, a web-based platform for managing Portable Encapsulated Projects (PEPs). It provides an interface to access, create, and manage PEPs programmatically, wrapping the PEPhub REST API. The current version is 0.5.1, with a release cadence that generally follows new features and bug fixes for the PEPhub platform itself.","language":"python","status":"active","last_verified":"Mon May 18","install":{"commands":["pip install pephubclient"],"cli":null},"imports":["from pephubclient import PEPHubClient"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom pephubclient import PEPHubClient\n\n# Initialize the client. The default host is https://pephub.databio.org\nphc = PEPHubClient()\n\n# Retrieve a publicly accessible project from PEPhub.\n# 'test/test_project:test' is a common example project for testing.\ntry:\n    project = phc.get_project(namespace='test', name='test_project', tag='test')\n    print(f\"Successfully retrieved project: {project.name}\")\n    print(f\"Project description: {project.description}\")\n    print(f\"Number of samples: {len(project.samples)}\")\nexcept Exception as e:\n    print(f\"Error retrieving project 'test/test_project:test': {e}\")\n    print(\"This project might not exist or might require authentication. \")\n    print(\"For private projects, set the PH_KEY environment variable and \")\n    print(\"then call `phc.login(api_key=os.environ.get('PH_KEY'))` before fetching.\")\n","lang":"python","description":"Initializes the PEPhub client and attempts to retrieve a public project. For private projects or authenticated actions, you would typically log in using an API key (e.g., from the `PH_KEY` environment variable).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-18","installed_version":"0.5.1","pypi_latest":"0.5.1","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":11.6,"avg_import_s":2.18,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.97,"mem_mb":43.4,"disk_size":"195.6M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":12.3,"import_time_s":1.44,"mem_mb":43.4,"disk_size":"188M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":2.75,"mem_mb":49.2,"disk_size":"211.1M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":10.6,"import_time_s":2.43,"mem_mb":49.2,"disk_size":"203M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":2.57,"mem_mb":48.1,"disk_size":"195.8M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":10.5,"import_time_s":2.71,"mem_mb":48.1,"disk_size":"187M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":2.21,"mem_mb":47.6,"disk_size":"194.8M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":10.7,"import_time_s":2.16,"mem_mb":47.6,"disk_size":"186M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.8,"mem_mb":43.8,"disk_size":"202.7M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"pephubclient","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":14,"import_time_s":1.72,"mem_mb":43.8,"disk_size":"197M"}]}}