Skip to main content

Provides an API for Linksys/Sipura VoIP SPA Phones

Project description

SPA Phone API provides an API for Linksys/Sipura SPA IP Phones. It can be used to programmatically update the phone’s address book. Combining it into other scripts it can be used to sync the phone’s address book with (for example) Google Contacts.

Installation

Installation with pip:

$ pip install spa-phone-api

Command Line Usage

Update the address book from OS X Contacts or Microsoft Outlook. Defaults to sync all contacts, but an optional group parameter can be specified.

$ spa-sync ip-address [--provider PROVIDER] [--group GROUP]

Usage

Read the address book

import spa_phone
spa_phone.read('10.0.1.8')

Update the address book

import spa_phone
spa_phone.write('10.0.1.8', [
    ('Bouke Haarsma', '+31508200267'),
    ('WebAtoom', '+31508200267'),
    ('Apple Store', '+18006927753'),
])

Developing

Accessing Outlook (Windows)

To access Outlook on Windows, you need pywin32, which can be downloaded from the py2exe download page. Make sure to download the correct version matching your python version and architecture. To install pywin32 in your virtualenv, install it using easy_install in the activated virtualenv

$ Scripts\activate.bat
(env)$ easy_install [py2win]

Building EXEs (Windows)

To build EXEs on Windows, you need py2exe, which can be downloaded from the pywin32 download page. The same install instructions as pywin32 apply.

Project details


Download files

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

Source Distribution

spa-phone-api-0.3.0.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file spa-phone-api-0.3.0.tar.gz.

File metadata

File hashes

Hashes for spa-phone-api-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4efe20c2025571787e1dca2d484b96a4107934fc2b09ae7da18c2f9158090042
MD5 9f3cbd8fb10ed7a3dafe7104b692949e
BLAKE2b-256 d0d1864f8707ae99285a78601b3ef9f917844c6a4a01f6a6b621583c675c8161

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page