Skip to main content

Python library for Octopush API

Project description

Build Status

A Python library for Octopush API.

Octopush offers a solution that was built in-house as a hosted service (SaaS, Software as a Service and an API) to allow marketing departments of major groups, advertising agencies and IT companies to enjoy an infrastructure that supports sending SMS messages to more than 200 countries.


Install via PyPI

pip install octopush

Or add octopush to your application’s requirements file and then run

pip install -r requirements.txt

Or from source code

git clone
cd octopush-api-python
python install


Config file (config.js)

import octopush
import datetime

config = {
    'user_login': '*******@*******',
    'api_key': '****************',
    'sms_recipients': ['+33600000000'],
    'sms_text': 'test text ' +"%Y-%m-%d %H:%M"),
    'sms_type': octopush.SMS_WORLD,
    'sms_sender': 'onesender'

Balance check

from octopush import SMS
from config import config

sms = SMS(config['user_login'], config['api_key'])

result = sms.get_balance()

for balance in result.findall('balance'):
    print(balance.attrib['type'], balance.text)

SMS sending

from octopush import SMS
from config import config
import uuid

sms = SMS(config['user_login'], config['api_key'])

result = sms.send()


More examples can be found in Simple Examples and Advanced Examples.



This library is completely documented using PyDoc and will show autocompletions in all editors that supports it. Alternatively you can build HTML version of documentation via pydoc tool.

API documentation available on Octopush API documentation portal.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for octopush, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size (13.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page