Skip to main content
https://img.shields.io/pypi/status/NetStorageKit.svg?style=flat-square

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 files for NetStorageKit 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NetStorageKit 1.0.8
File Size Uploaded
NetStorageKit-1.0.8.tar.gz 13.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for NetStorageKit 1.0.8
File Interpreter ABI Platform
NetStorageKit-1.0.8-py2.7.egg Legacy Egg format - - Details
NetStorageKit-1.0.8-py2-none-any.whl Python 2 none any Details

Total release size: 44.8 kB

Release files / NetStorageKit-1.0.8.tar.gz

Download URL NetStorageKit-1.0.8.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
77ca18325e8c80acb9c044b1a8bb9417b3bbbff7988e7597d983ce12aba1cbb6
BLAKE2b-256 checksum
How to use checksums
18200a30e3d89a45f6772f49393b69a8b63a36d43ceabc01208591aa6d1c6a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / NetStorageKit-1.0.8-py2.7.egg

Download URL NetStorageKit-1.0.8-py2.7.egg
Size 19.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
1ab964793808733d7d77bc771db1cb66926c190cf69aaa7ee459833776ff9505
BLAKE2b-256 checksum
How to use checksums
1433fc6de2fa6e8ab32e0fd0db91f2c25ae8e3e2bd5d455dae8f34490b7ee158
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / NetStorageKit-1.0.8-py2-none-any.whl

Download URL NetStorageKit-1.0.8-py2-none-any.whl
Size 11.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
466e756e1b927fe51306c3f70f9c30bf2170e6e8316eebe0685d4e5ebe90e321
BLAKE2b-256 checksum
How to use checksums
61cbfaf4566939da09f9990ab61d79f711c5679c9ae082951bd9d31fcc0edb02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.8 This release

3 release files

1.0.7

3 release files

1.0.6

3 release files

1.0.5

3 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1.0.1

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page