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
File details
Details for the file spa-phone-api-0.3.0.tar.gz
.
File metadata
- Download URL: spa-phone-api-0.3.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4efe20c2025571787e1dca2d484b96a4107934fc2b09ae7da18c2f9158090042 |
|
MD5 | 9f3cbd8fb10ed7a3dafe7104b692949e |
|
BLAKE2b-256 | d0d1864f8707ae99285a78601b3ef9f917844c6a4a01f6a6b621583c675c8161 |