Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python client for Phaxio

Project Description

A Python module for interacting with the Phaxio API.


Via pip:

$ pip install pyphaxio


Send a fax to multiple people using HTML message:

from phaxio import PhaxioApi

api = PhaxioApi(key, secret)
r = api.send(to=['4141234567', '5141234567', '6151234567'],
    string_data='Hello World!',

Generally, each supported method takes keyword arguments with the exact same names of the API method parameters as they’re described in the documentation. One exception to this rule is that filename is instead referred to as files. For example, to send a fax using files:

llama = os.path.join(os.path.dirname(__file__), 'tests/llama.pdf')
alpaca = os.path.join(os.path.dirname(__file__), 'tests/alpaca.pdf')
f = open(alpaca, 'rb')
r = api.send(to='4141234567', files=(llama, f))

See the tests for additional examples.

Error Handling

By default, the api calls return a dictionary. However, you can use PhaxioApi(key, secret, raise_errors=True) which will raise the following errors: * AuthenticationError - key/secret are invalid * APIError - error with api call * ServerError - server had an error and could not complete your request

Errors can be imported from the phaxio.exceptions module.

Currently Supported API Calls

Implemented and tested:

  • send
  • testReceive
  • faxStatus
  • faxFile

Implemented and untested:

  • attachPhaxCodeToPdf
  • createPhaxCode
  • getHostedDocument
  • provisionNumber
  • releaseNumber
  • numberList
  • faxList
  • faxCancel
  • accountStatus


python test

You will be prompted for a test api key and secret


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(7.8 kB) Copy SHA256 Hash SHA256
Wheel 2.7 May 17, 2016
(4.7 kB) Copy SHA256 Hash SHA256
Source None May 17, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting