Vinculaciones Python para Gammu

Gammu also includes Python bindings which allow you to use (most) of Gammu functionality from Python language.

Últimas noticias

python-gammu 3.2.4

python-gammu 3.2.4 has been just released. Maintenance release bringing support for Python 3.10.

Publicado el 17 de noviembre de 2021 por Michal Čihař

python-gammu 3.1

python-gammu 3.1 has been just released. Improvements in worker mode.

Publicado el 24 de julio de 2020 por Michal Čihař

Descargar

Python module is now standalone, so please download it separately. If you want to use binary package, the daemon might be included in separate binary package in your distribution, try looking for something like python-gammu.

The easiest way to install it is using pip:

pip install python-gammu

Ejemplo

Using python-gammu is quite simple, for example sending of the text message can be done by following snippet:

import gammu

sm = gammu.StateMachine()
sm.ReadConfig()
sm.Init()

message = {
    'Text': 'python-gammu testing message',
    'SMSC': {'Location': 1},
    'Number': '+420800123465',
}

sm.SendSMS(message)

Documentación

Está disponible documentación de la API, pero probablemente consideres útil la documentación de libGammu. Porfavor revisa la página de documentación de desarrolladores para más detalles.

Check also Frequently Asked Questions.

Source code and issue tracker

Both source code and issue tracker are hosted on GitHub:

Más información