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


Info:Python module to interface with the XML API
Author:Netlandish Inc. (


  • Python 2.6+



pip install py-kunaki

Basic Manual Install:

$ python build
$ sudo python install

Alternative Install (Manually):

Place kunaki directory in your Python path. Either in your Python installs site-packages directory or set your $PYTHONPATH environment variable to include a directory where the webutils directory lives.


Please first refer to Kunaki XML Web Service documentation:

Get shipping options for a prospective order:

from kunaki import ShippingProduct, ShippingOptions

product1 = ShippingProduct(product_id='XZZ1111111', quantity=2)
product2 = ShippingProduct(product_id='PXZZ111112', quantity=3)
shipping_opts = ShippingOptions(
    country='United States',
    products=[product1, product2],
# Optionally add a product
shipping_opts.add_product(ShippingProduct(product_id='PXZZ111111', quantity=1))
# Submit the shipping options request

if shipping_opts.success:
    # Retrieve options list
    options = shipping_opts.get_options()
    for opt in options:
        print 'Description:', opt.description
        print 'Delivery Time:', opt.delivery_time
        print 'Price:', opt.price
    print 'Error:', shipping_opts.error_msg

Request to manufacture and fulfill an order:

from kunaki import ShippingProduct, Order

products = [
    ShippingProduct(product_id='XZZ1111111', quantity=2),
    ShippingProduct(product_id='PXZZ111112', quantity=3),
order = Order(
    name='John Smith',
    address1='215 Maple Street',
    address2='Room 134',
    city='New York',
    country='United States',
    shipping_description='USPS Priority Mail',
    company='Smith Enterprises',
# Optionally add a product
order.add_product(ShippingProduct(product_id='PXZZ111111', quantity=1))
# Submit the order request

if order.success:
    print 'Order Id:', order.order_id
    print 'Error:', order.error_msg

Request for an order status:

from kunaki import OrderStatus

order_status = OrderStatus(

if order_status.success:
    print 'Status:', order_status.status
    print 'Tracking Type:', order_status.tracking_type
    print 'Tracking Id:', order_status.tracking_id
    print 'Error:', order_status.error_msg

Commercial Support

This software, and lots of other software like it, has been built in support of many of Netlandish’s own projects, and the projects of our clients. We would love to help you on your next project so get in touch by dropping us a note at

Release History

Release History


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
py-kunaki-0.1.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Sep 25, 2013

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