This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

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.

Installation

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 https://github.com/bearburger/octopush-api-python.git
cd octopush-api-python
python setup.py install

Usage

Config file (config.js)

import octopush
import datetime

config = {
    'user_login': '*******@*******',
    'api_key': '****************',
    'sms_recipients': ['+33600000000'],
    'sms_text': 'test text ' + datetime.datetime.now().strftime("%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'])
sms.set_sms_text(config['sms_text'])
sms.set_sms_recipients(config['sms_recipients'])
sms.set_sms_type(config['sms_type'])
sms.set_sms_sender(config['sms_sender'])
sms.set_sms_request_id(str(uuid.uuid1()))

result = sms.send()

print(result)

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

Requirements

Documentation

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.

Release History

Release History

1.0.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
octopush-1.0.0.zip (13.2 kB) Copy SHA256 Checksum SHA256 Source Feb 5, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting