Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Akamai's NetStorage API communication kit

Project Description

Usage

The tests describe the usage thoroughly, but consider this upload example.

import netstoragekit as ns

# NetStorage connection information
# The host part is prepended to -nsu.akamaihd.net, i.e. mycdn-nsu.akamaihd.net
test = dict(key_name='abc', key='abcdefghijk1234'
            cpcode='12345', host='mycdn')

# Create a Request instance
request = ns.api.Request(test['key_name'], test['key'],
                         test['cpcode'], test['host'])

remote_path = 'media/images/products/123.jpg'
local_path = '/opt/data/products/123.jpg'

# Upload the local path to the remote one (always relative to the CPCode)
# The returned data is the XML returned by the API parsed as a python object
# The response is the object as returned by the requests package
data, response = request.upload(remote_path, local_path)

Installation

Development

pip install autoenv
pip install virtualenv
virtualenv -p /usr/bin/python2.7.9 env
source env/bin/activate
python setup.py install
# Run tests
py.test tests.py

Production

pip install netstoragekit
Release History

Release History

This version
History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
NetStorageKit-1.0.8-py2.7.egg (19.8 kB) Copy SHA256 Checksum SHA256 2.7 Egg Jul 14, 2015
NetStorageKit-1.0.8-py2-none-any.whl (11.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jul 14, 2015
NetStorageKit-1.0.8.tar.gz (13.4 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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