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

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 whalerock-nsu.akamai-hd.net'.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.name} | {item.path} | {item.size}'.format(item=item)

Deleting a file

ns.delete('/396500/important.txt')

Downloading a file

ns.download('/396500/very_important.txt', '/tmp/very_important.txt')

# You can also supply a directory
ns.download('/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

Release History

0.0.91

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

0.0.9

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

0.0.8

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
netstorage-0.0.91.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Mar 10, 2016

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