Skip to main content

A python wrapper around Bronto's SOAP API

Project description


bronto-python is a python query client which wraps the Bronto SOAP API in an easy to use manner, using the suds library.

Getting Started

from bronto.client import Client

client = Client('BRONTO_API_TOKEN')

Simple as that!


Adding a Contact

contact_data = {'email': '',
                'source': 'api',
                'customSource': 'Using bronto-python to import my contact'}

Retrieving a contact


Deleting a contact



Adding an order

order_data = {'id': 'xyz123',
              'email': '',
              'products': [
                {'id': 1,
                 'sku': '1111',
                 'name': 'Test Product 1',
                 'description': 'This is our first test product.',
                 'quantity': 1,
                 'price': 3.50},
                {'id': 2,
                 'sku': '2222',
                 'name': 'Second Test Product',
                 'description': 'Here we have another product for testing.',
               'quantity': 12,
               'price': 42.00}

Deleting an order

client.delete_order('xyz123')  # Orders are deleted by their orderId

NOTE: This client is not built with long-running processes in mind. The Bronto API connection will time out after 20 minutes of inactivity, and this client does NOT handle those timeouts.

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 bronto-python, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size bronto-python-0.5.0.tar.gz (8.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page