Registry / communication / phaxio

phaxio

JSON →
library0.3pypypi✓ verified 84d ago

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.

pip install phaxio
INSTALL
IMPORT
SIG · PHAXIO
P
phaxio
communicationpythonv0.3
Install
3.2s avg
Import
722ms
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.759s · 24.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.2s · import 0.685s · 25MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

phaxio
import phaxio
from phaxio import PhaxioClient
The phaxio library uses module-level attribute assignment for API keys/secrets and exposes functionality directly via sub-modules (e.g., `phaxio.faxes`), rather than requiring an explicit client instance.

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`.

import os import phaxio # Authenticate using environment variables phaxio.api_key = os.environ.get("PHAXIO_API_KEY", "YOUR_API_KEY") phaxio.api_secret = os.environ.get("PHAXIO_API_SECRET", "YOUR_API_SECRET") # Example: List existing faxes (requires authentication and API access) try: # Fetch one fax to verify connection and credentials faxes = phaxio.faxes.list(per_page=1) print(f"Successfully connected to Phaxio API. Found {len(faxes)} fax entries.") # Uncomment to see the first fax details if available # if faxes: print(f"First fax: {faxes[0]}") except phaxio.exceptions.PhaxioException as e: print(f"Error connecting to Phaxio API or listing faxes: {e}") print("Please ensure PHAXIO_API_KEY and PHAXIO_API_SECRET environment variables are set correctly and have necessary permissions.") except Exception as e: print(f"An unexpected error occurred: {e}")
Debug
Known issues
gotchaThis library is designed for Phaxio API v2. Using Phaxio API v1 keys or endpoints will result in authentication failures or unexpected behavior.
fix
Ensure you are using valid Phaxio v2 API Key and Secret generated from your Phaxio dashboard.
affects: 0.3
gotchaThe library sets API keys and secrets as global module-level attributes (`phaxio.api_key`, `phaxio.api_secret`). This can cause issues in multi-threaded applications or when managing multiple Phaxio accounts within a single process.
fix
For simple scripts, this is acceptable. For complex applications, consider using a wrapper or ensuring authentication is handled carefully for each thread/request, or use separate processes.
affects: 0.3
gotchaThe library has not been actively developed since 2018 (version 0.3). While it targets Phaxio API v2 and may still function, it might not support the latest API features or bug fixes from Phaxio's service updates.
fix
Verify that the library's functionality meets your current Phaxio API requirements. If new features are needed, you may need to implement direct API calls or find an alternative client.
affects: 0.3
Errors
Common errors & fixes
phaxio.exceptions.PhaxioException: (401) Unauthorized
Incorrect Phaxio API Key or Secret, or using v1 credentials with this v2 client.
fix
Double-check your `PHAXIO_API_KEY` and `PHAXIO_API_SECRET` environment variables or hardcoded values. Ensure they are valid Phaxio v2 API credentials.
AttributeError: module 'phaxio' has no attribute 'faxes'
The `phaxio` module attributes for API keys/secrets were not set, or the module was not properly imported before attempting to use its sub-modules.
fix
Ensure `import phaxio` is present and that `phaxio.api_key` and `phaxio.api_secret` are assigned values before calling methods like `phaxio.faxes.list()`.
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Network connectivity issue, firewall blocking access, or temporary unavailability of the Phaxio API server.
fix
Check your internet connection and local firewall settings. Verify Phaxio's service status page for any outages. Try the request again after a short delay.
Upgrade
Version history
0.3latest on PyPI · released Sep 7, 2017
Audit
Dependencies
requestsrequiredHandles HTTP communication with the Phaxio API.
Agent activity
23 hits · last 30 days
node
22
OpenAI (training)
1
Resources
phaxio — pip install phaxio · libregistry