--- id: africastalking version: "2.0.3" license: MIT license_treatment: permissive maintenance: active --- # africastalking — Official Africa's Talking Python SDK License: permissive · Maintenance: active · Downloads: 97.2K/mo ## What it is and what it does This is the official Python SDK for Africa's Talking, a telecom platform serving African carriers. It wraps HTTP APIs for sending SMS, making voice calls, distributing airtime, provisioning mobile data, sending WhatsApp messages, and checking SIM swap state. You initialize it once with your account credentials, then access service instances (SMS, Voice, Airtime, etc.) and call methods synchronously or asynchronously with optional callbacks and timeouts. The SDK is designed for Python 3.8 and later. It depends on requests for HTTP transport, schema for validation, and responses for testing. All major telecom operations—message delivery, call initiation, balance checks—are exposed as straightforward method calls, with support for both blocking and callback-based async patterns. Use it for: - Send SMS notifications and alerts to phone numbers across African networks via a single API call - Distribute mobile airtime or data bundles to customers programmatically with retry and currency handling - Initiate outbound voice calls and manage call queues for customer support or IVR workflows - Send WhatsApp messages with text, media, and interactive buttons to customers in regions where WhatsApp is primary - Check SIM swap state to detect account takeover attempts and enhance security - Fetch application balance and transaction history for billing and reconciliation ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python access to Africa's Talking APIs for SMS, voice calls, airtime, mobile data, WhatsApp, and other telecom services across African carriers. Yes. The SDK is actively maintained, has no known vulnerabilities, installs with low friction, and is the official client for a widely-used African telecom platform. Install it if you need to integrate SMS, voice, airtime, or WhatsApp into an application serving African users. Verify that Africa's Talking's own SLAs and API limits match your production requirements before deploying. ## Install pip install africastalking uv add africastalking poetry add africastalking ## Installing africastalking Before you install: Low install friction with three lightweight runtime dependencies (requests, schema, responses). Active maintenance with a recent release 14 days ago and steady commit activity. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and open-source projects. Quickstart: pip install africastalking import africastalking africastalking.initialize("YOUR_USERNAME", "YOUR_API_KEY") sms = africastalking.SMS response = sms.send("Hello!", ["+2547xxxxxx"]) print(response) Requires Python 3.8 or later; you must obtain a username and API key from https://account.africastalking.com/ before initialization will work. Verify before relying: - Whether timeout defaults and retry behavior are documented for each service method - Whether the SDK handles network failures and rate limiting transparently or requires explicit retry logic - Production readiness and SLA guarantees for the underlying Africa's Talking platform ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 97.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags africa's talking sdk python, sms api africa, voice calls africa, airtime delivery api, whatsapp messaging africa, mobile data api, african telecom sdk, telecom-api, sms-gateway, africa [View on SkillFed](https://skillfed.io/packages/africastalking) · [View on PyPI](https://pypi.org/project/africastalking/)