NetStorage communication Kit
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| NetStorageKit-1.0.8.tar.gz | 13.4 kB | Without provenance | Details for NetStorageKit-1.0.8.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| NetStorageKit-1.0.8-py2.7.egg | Legacy Egg format | - | - | Details for NetStorageKit-1.0.8-py2.7.egg |
| NetStorageKit-1.0.8-py2-none-any.whl | Python 2 | none | any | Details for NetStorageKit-1.0.8-py2-none-any.whl |
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 |
Security for NetStorageKit 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.