Python bindings for Gammu
Gammu also includes Python bindings which allow you to use (most) of Gammu functionality from Python language.
Latest News
python-gammu 3.4.0
python-gammu 3.4.0 has been just released. This release is available from GitHub.
Published on Aug. 4, 2026 by Gammu release automation
python-gammu 3.3.0
python-gammu 3.3.0 has been just released. This release is available from GitHub.
Published on July 28, 2026 by Gammu release automation
Download
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
Example
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)
Documentation
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.
Source code and issue tracker
Both source code and issue tracker are hosted on GitHub: