{"library":"phaxio","title":"Phaxio Python Client","description":"The `phaxio` library provides a Python client for interacting with the Phaxio v2 API. As of version 0.3, it offers methods for sending faxes, managing webhooks, and more. Development appears to be in maintenance mode, with the last major commit in 2018.","language":"python","status":"maintenance","last_verified":"Fri Apr 17","install":{"commands":["pip install phaxio"],"cli":null},"imports":["import phaxio"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nimport phaxio\n\n# Authenticate using environment variables\nphaxio.api_key = os.environ.get(\"PHAXIO_API_KEY\", \"YOUR_API_KEY\")\nphaxio.api_secret = os.environ.get(\"PHAXIO_API_SECRET\", \"YOUR_API_SECRET\")\n\n# Example: List existing faxes (requires authentication and API access)\ntry:\n    # Fetch one fax to verify connection and credentials\n    faxes = phaxio.faxes.list(per_page=1)\n    print(f\"Successfully connected to Phaxio API. Found {len(faxes)} fax entries.\")\n    # Uncomment to see the first fax details if available\n    # if faxes: print(f\"First fax: {faxes[0]}\")\nexcept phaxio.exceptions.PhaxioException as e:\n    print(f\"Error connecting to Phaxio API or listing faxes: {e}\")\n    print(\"Please ensure PHAXIO_API_KEY and PHAXIO_API_SECRET environment variables are set correctly and have necessary permissions.\")\nexcept Exception as e:\n    print(f\"An unexpected error occurred: {e}\")","lang":"python","description":"Initializes the Phaxio client using API key and secret, then attempts to list faxes to verify connectivity. Replace placeholders or set environment variables `PHAXIO_API_KEY` and `PHAXIO_API_SECRET`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}