Python application
A web request, task, data event or monitoring rule decides to communicate.
PYTHON SMS & WHATSAPP SDK
Send SMS from your own connected phone number.Send WhatsApp and retrieve received SMS.Use it in Django, FastAPI, Flask, workers, data pipelines and automation scripts.
pip install smsmobileapiinstalledimport os
from smsmobileapi import SMSSender
sms = SMSSender(
api_key=os.environ["SMSMOBILEAPI_KEY"]
)
response = sms.send_message(
to="+32470000000",
message="Your appointment is confirmed."
)
print(response)
PYTHON LOGIC. REAL MOBILE COMMUNICATION.
The Python package provides a focused client around SMSMobileAPI. It keeps application logic in Python while the connected mobile gives SMS workflows a real SIM, an existing phone number and normal reply behavior.
A web request, task, data event or monitoring rule decides to communicate.

The platform authenticates, routes and records the requested operation.
Your phone and SIM send SMS with the number your contacts already recognize.
Your application receives structured data it can log, inspect and use in the next step.
QUICK START
Begin with a mobile and recipient you control. Load the API key from protected server configuration and inspect the returned object before connecting the code to a production trigger.
$ python -m pip install smsmobileapi
import os
from smsmobileapi import SMSSender
sms = SMSSender(
api_key=os.environ["SMSMOBILEAPI_KEY"]
)
response = sms.send_message(
to="+32470000000",
message="Hello from Python!"
)
print(response)
THREE FOCUSED OPERATIONS
The package intentionally stays small. Your Python application owns the business logic while the client handles the corresponding SMSMobileAPI request and returns the decoded response.
The default parameters enable SMS. The selected connected mobile must be online and correctly configured.
response = sms.send_message(
to="+32470000000",
message="Order ready"
)
Read SMS documentation →
Enable WhatsApp and disable SMS. Link WhatsApp in the dashboard before calling the method.
response = sms.send_message(
to="32470000000",
message="Order ready",
sendwa=1, sendsms=0
)
Read WhatsApp documentation →
Retrieve received SMS and pass the returned data into your CRM, support or automation logic.
received = sms.get_received_messages()
print(received)
Explore received SMS →
FIT THE PACKAGE INTO YOUR PYTHON STACK
Keep the client in a service or worker layer. This separates channel access from routes, views, models and data-processing code.
Trigger customer communication from services, management commands, signals or background workers.
Services · Commands · CeleryAdd controlled messaging behind authenticated endpoints and move longer work into a background task or worker.
Routes · Dependencies · TasksKeep the SMSMobileAPI client in an application service and call it from validated business workflows.
Blueprints · Services · RQUse Python for monitoring, scheduled reminders, ETL alerts and internal operational tools.
CRON · Pipelines · MonitoringTURN REPLIES INTO BUSINESS EVENTS
Retrieve messages from the mobile connected to SMSMobileAPI, then apply your own contact matching, filtering, storage and escalation logic. The SDK returns the API response; your application decides what happens next.

PUBLISHED ON PYPI
Install it in a virtual environment, pin the version through your dependency workflow and review the public source before deployment. The package uses the familiar requests library and returns decoded JSON data.
PRODUCTION CHECKLIST
The package makes the request simple. Your application still needs to protect secrets, validate data, handle API errors and prevent duplicate sends.
WHAT PYTHON TEAMS CAN BUILD
Send contextual messages and attach received replies to the correct contact workflow.
Notify a real phone when imports, processing jobs or quality checks require attention.
Run appointment, payment and operational reminders from a worker or scheduled task.
Turn application or infrastructure events into SMS messages sent from a known mobile number.
PYTHON SDK FAQ
The Python module is a focused client for messaging. The mobile connection, dashboard visibility and broader platform APIs remain part of SMSMobileAPI.
Yes. Install the smsmobileapi package with pip. Its published metadata requires Python 3.6 or newer and uses the requests dependency.
Yes. SMS requests are routed through the mobile connected to your SMSMobileAPI account, using its SIM and existing phone number.
Yes. Call get_received_messages() on the initialized SMSSender instance, then process the returned data according to your application rules.
Connect WhatsApp in the dashboard, then call send_message() with sendwa=1 and sendsms=0. WhatsApp recipients use the country code without + or 00.
Yes. Keep the client in server-side service code and call it from validated application workflows. Use a worker for operations that should not block a web request.
No. The current package focuses on sending SMS and WhatsApp and retrieving received SMS. Use the REST API documentation for call activity, notifications and other specialized operations.
PYTHON READY. MOBILE CONNECTED.
Install the package, test with a controlled number and connect the verified operation to the business event that matters.
Tell us who we are speaking with. Your details stay attached to this private support conversation.