Skip to content
Analog Bridge Python bindings
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Analog Bridge

Analog Bridge is comprised of a JavaScript client and REST API which enables your users to import analog media directly into your app or website.

Full documentation at the Analog Bridge docs


Install with pip:

pip install analogbridge

Or download the source:

$ git clone


Once you have your API Keys from Analog Bridge, you can initialize your configuration with your secret_key as

import analogbridge
analogbridge.api_key = 'YOUR_SECRET_KEY'



Create Customer

To create a new customer using the API, usage

params = {
    "email": "",
    "shipping": {
        "first_name": "Abe"

resp = analogbridge.Customer.create(params=params)

Retrieve a Customer

We can easily retrieve a customer's details using their customer_id, for example to find a customer with details with id cus_12345678

resp = analogbridge.Customer.find('cus_12345678')

Retrieve all customers

Analog Bridge provides an interface to retrieve all your customers very easily. To retrieve all of your customers, you can use

resp = analogbridge.Customer.list(limit=15, offset=10)

Update a customer

Update an existing customer's information by using the cus_id from customer creation. Any unprovided parameters will have no effect on the customer object. The arguments for this call are mainly the same as for the customer creation call.

params = {
    "email": "",
    "shipping": {
        "first_name": "Abe",
        "last_name": "Smith",
        "city": "Chicago"
    "metadata": {
        "user_class": "VIP"

resp = analogbridge.Customer.update(customer_id='cus_12345678', params=params)

Delete a customer

If we need to delete a customer, for example id cus_123456789, then we can use

resp = analogbridge.Customer.delete('cus_123456789')


List all customer orders

The Analog Bridge API allow us to retrieve all orders by a specific customer. For example we want to retrieve all orders by customer id cus_12345678, we can use

resp = analogbridge.Order.where(customer_id='cus_12345678')

List order details

If we need to retrieve the details for a specific order then we can use

resp = analogbridge.Order.where(customer_id='cus_12345678', order_id='ord_12345678')

Retrieve import ready orders

Once customer orders have been processed and uploaded to our Cloud, they are import-ready for your system. To retrieve the list of import ready orders, we can use

resp = analogbridge.Order.import_ready()


Listing products

To retrieve the products simply use the following interface

resp = analogbridge.Product.list()


Bug reports and pull requests are welcome on GitHub at This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.


This package is available as open source under the terms of the MIT License.

You can’t perform that action at this time.