Python rozhranie ku Gammu

Gamu tiež obsahuje rozhranie pre Python, ktorý poskytuje (väčšinu) funkčnosti Gammu z jazyka Python.

Najnovšie novinky

Gammu 1.31.0

Gammu 1.31.0 has been just released. Christmas release folding up all fixes from past few months. There are too many changes to highlight some, but everybody should upgrade.

Published on dec. 21, 2011 by Michal Čihař

Gammu 1.30.92

Gammu 1.30.92 has been just released. This is hopefully last testing version before 1.31, which I would like to release around Christmas. There are some big rewrites though, which hopefully won't break anything.

Published on dec. 13, 2011 by Michal Čihař

Stiahnuť

Python modul je distribuovaný ako súčasť Gammu preto pre jeho získanie jednoducho stiahnite Gammu. Keď chcete použiť binárny balík, modul môže byť súčasťou samostatného balíku vo vašej distribúcii, skúste hľadať niečo ako python-gammu.

Príklad

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)

Dokumentácia

API documentation is available, but you might also find useful libGammu documentation. Please check developer documentation page for more details.

Check also Frequently Asked Questions.