Skip to content

A python tool for loading csv data into Zuora accounts, contacts, subscriptions, and amendments

License

Notifications You must be signed in to change notification settings

bolaurent/zuora_loader

Repository files navigation

zuora_loader

A python tool for loading accounts, contacts, subscriptions, and amendments into a Zuora instance, using the same format at the Zuora Connect tool.

Note that this code is extremely rough, and I won't be maintaining it.

I wrote it to migrate a complex set of data from Salesforce to Zuora. If I were starting from scratch now, I would use the Zuora REST API (it wasn't complete when I started this project).

Requirements

  • Python 3
  • zeep (A modern/fast python SOAP client based on lxml / requests)

Install

pip install git+git://github.com/bolaurent/zuora_loader.git

Usage

Execute the load as follows:

zuora_loader-runner.py  --sandbox zuora_loader/sample_data/account.csv account
zuora_loader-runner.py  --sandbox zuora_loader/sample_data/subscription.csv subscription

Credentials are stored in one of the following files in your home directory:

~/.zuora-sandbox-config.json
~/.zuora-production-config.json

The format of the credentials file is like this:

    {
      "user":     "me@mycompany.com",
      "password": "ksjfklsjklsdl",
      "wsdl":     "/Users/bo/.zuora-production/zuora.a.84.0.wsdl",
      "//endpoint": "https://apisandbox.zuora.com/apps/services/a/78.0",
      "verboseLog": false
    }

Command line options

usage: zuora_loader-runner.py [-h] [--sandbox] filename object

Load a csv file into Zuora instance

positional arguments:
  filename    file to load
  object      zuora object to load

optional arguments:
  -h, --help  show this help message and exit
  --sandbox

KUDOS

Many thanks to Distributing a Python command line application

About

A python tool for loading csv data into Zuora accounts, contacts, subscriptions, and amendments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages