Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install pyxtra

How to install pyxtra

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyxtra
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
1.6.1Never BuiltWhy not?
1.5 Available View build log
Linux (64-bit)
1.6.1 Available View build log
1.5 Available View build log
Lastest release
version 1.6.1 on Jan 9th, 2014
PyPI download stats

pyxtra is a small commandline utility to access the Swisscom Xtrazone SMS service. It is being developed for Linux- and OS X-based operating systems.



  • Sending SMS messages from the command line
  • Access, add and delete contacts
  • Contacts tab completion (start typing and press tab to autocomplete)
  • CAPTCHA-Recognition (service by http://gorrion.ch/, thanks!)
  • Headless setup possible (if CAPTCHA-Recognition is enabled)

Warning: There might be some issues when having set Xtrazone to French or Italian (e.g. you are prompted to enter the CAPTCHA twice). For best experience, set Xtrazone language to German. (FR: Profil > Mes paramètres de compte > Langue Xtra-Zone, IT: Profilo > Le impostazioni del mio account > Lingua Xtra-Zone)


  • You need python>=2.5 and tk
Install via pip

This is the recommended way of installing pyxtra.

$ sudo pip install pyxtra
Manual installation

Alternatively, you can install pyxtra the manual way.

  1. Download the current version.

  2. Install dependencies.

    $ sudo pip install -r requirements.txt

    Ubuntu/Debian users could also use apt instead of pip:

    $ sudo apt-get install python-mechanize python-beautifulsoup4 \
    python-xlrd python-imaging python-imaging-tk
  3. Install pyxtra

    $ sudo python setup.py install


Q: How can I easily select the receiver from the contacts list when writing a new SMS?

A: pyxtra supports tab completion. Simply start typing a name and press the tab key.

Q: How can I run pyxtra in a headless setup (e.g. on my server)?

A: Enable the anticaptcha feature and set anticaptcha_max_tries in your ~/.pyxtra/config to a higher number.


v1.6.1 (2013-06-09)

  • [bug] Updated anticaptcha certificate, related SSL bugs should now be gone

v1.6 (2013-03-09)

  • [add] Command to delete contacts (Issue #12)
  • [add] Improved status output while adding/deleting contacts
  • [bug] OS independent tempfiles (Issue #21)
  • [bug] Got rid of "OLE2 inconsistency" warnings (Issue #21)
  • [bug] Fixed problem with adding contacts and session timeouts (Issue #14)

v1.5 (2012-06-09)

  • [bug] Fixed unicode bugs (Issue #18, #19)
  • [bug] Fixed phone number validation (Issue #20)
  • [bug] Fixed readline/delimiter problems on Linux
  • [bug] Fixed pyxtra for people using Xtrazone in French or Italian
  • [add] Package is on pypi!

v1.4 (2011-08-31)

  • [add] Direct contact search (Issue #13)
  • [bug] Don't crash if user has no contacts (Issue #15)
  • [add] Possibility to send SMS longer than 440 characters (Issue #17)
  • [add] Improved autocompletion

v1.3 (2011-08-05)

  • [add] Conversation mode (Issue #11)
  • [bug] Config file permissions fixed (Issue #9)
  • [bug] Better anticaptcha errorhandling
  • [bug] Refactoring of deprecated code

v1.2 (2011-04-03)

  • [add] Circumvent CAPTCHA, service provided by gorrion.ch (Issue #1)
  • [bug] Don't show user password when logging in
  • [bug] Graceful exit on KeyboardInterrupt (ctrl+c) and EOF (ctrl+d)

v1.1 (2011-03-23)

  • [add] New SMS Mode (compose SMS in looped mode), available through n! / new!
  • [add] Feature to show stack traces (nice to debug)
  • [bug] Fixed problem with expired sessions (Issue #7)

v1.0 (2011-03-17)

  • First version released




Sourcecode is available on Github: https://github.com/dbrgn/pyxtra

Coding standards

PEP8 via flake8 with max-line-width set to 99 and E126-E128 ignored.


Copyright (C) 2011-2013 Danilo Bargen, Peter Manser and contributors.

pyxtra is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

pyxtra is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with pyxtra. If not, see http://www.gnu.org/licenses/.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.