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

A python wrapper for Akamais Nestorage API

Project Description

Netstorage is a simple client library for Akamai’s Netstorage API.

To get started, you’ll need the following from your account/luna portal.

  • Key name
  • Key
  • Hostname

Example Use

First you’ll need to create a Netstorage instance.

import netstorage

token_name, token, hostname = 'TOKENABC SECRET_TOKEN'.split()
ns = netstorage(token_name, token, hostname)

Disk Usage

The root directory is usually a CP CODE.

disk_usage = ns.du('/39650')

print disk_usage.files
print disk_usage.size

List directory contents

Retrieve directory contents

directory_contents = ns.dir('/396500')
for item in directory_contents:
    print '{} | {item.path} | {item.size}'.format(item=item)

Deleting a file


Downloading a file'/396500/very_important.txt', '/tmp/very_important.txt')

# You can also supply a directory'/396500/very_important.txt', '/tmp/')

Supported actions

You’ll notice that the methods match Akamai’s API documentation. The methods that are currrently supported are:

  • delete
  • dir
  • download
  • du
  • mkdir
  • rename
  • upload

Development Guide

To run tests, install tox and run tox.

Integration tests

We use betamax to capture the http/https interactions. We filter out sensitive data such as hostname to the nestorage instance, as well as the KEY NAME used in the headers.

Release History

This version
History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.5 kB) Copy SHA256 Hash SHA256
Source None Mar 10, 2016

Supported By

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 Google Google Cloud Servers