Skip to main content

Akamai's NetStorage API communication kit

Project description


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

import netstoragekit as ns

# NetStorage connection information
# The host part is prepended to, i.e.
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)



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


pip install netstoragekit

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 NetStorageKit, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size NetStorageKit-1.0.8-py2.7.egg (19.8 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size NetStorageKit-1.0.8-py2-none-any.whl (11.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size NetStorageKit-1.0.8.tar.gz (13.4 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