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

An SDK for the Hitachi Content Platform (HCP)

Project Description
HCPsdk
======

HCPsdk provides a simple SDK to access an Hitachi Content Platform (HCP)
from Python3. It handles name resolution, multiple sessions spread across all
available HCP nodes, persistent connections and recovery from failing
connections.

It's that easy:

::

>>> import hcpsdk

>>> # initialize an *Authorization* object
>>> auth = hcpsdk.NativeAuthorization('user', 'password')

>>> # initialize a *Target* object
>>> t = hcpsdk.Target("namespace.tenant.hcp.your.domain",
auth, port=443)

>>> # initialize a Connection to the `Target``
>>> c = hcpsdk.Connection(t)

>>> # do something with the connection...
>>> r = c.GET('/rest/your_file.txt')
>>> c.response_status, c.response_reason
(200, 'OK')
>>> r.read()
b'some data...'
>>>
>>> c.close()


Features
--------

- Handles HCP as a target object
- Connection objects, while tied to a target object, allow
access to HCP through HCPs native http/REST dialect
- Higher level modules provide easy access to namespace
statistics and some MAPI functionality, along with
the ability to create unique object names / paths

Dependencies
------------

**hcpsdk** depends on `dnspython <http://www.dnspython.org>`_, which is used
for non-cached name resolution when bypassing the system's resolver.


Documentation
-------------

To be found at `readthedocs.org <http://hcpsdk.readthedocs.org>`_

Installation
------------

Install hcpsdk by running:

``pip install hcpsdk``

-or-

* get the source from `GitHub <https://github.com/simont3/hcpsdk/archive/master.zip>`_
* unzip the archive
* run ``python setup.py install``

-or-

* Fork at `Github <https://github.com/simont3/hcpsdk>`_

Contribute
----------

- Issue Tracker: `<https://github.com/simont3/hcpsdk/issues>`_
- Source Code: `<https://github.com/simont3/hcpsdk>`_

Support
-------

If you find any bugs, please let me know via the Issue Tracker;
if you have comments or suggestions, send an email to `<sw@snomis.de>`_

License
-------

The MIT License (MIT)

Copyright (c) 2014-2015 Thorsten Simons (sw@snomis.de)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Release History

Release History

This version
History Node

0.9.4.post9

History Node

0.9.4.post8

History Node

0.9.4.post7

History Node

0.9.4.post6

History Node

0.9.4.post5

History Node

0.9.4.post4

History Node

0.9.4.post3

History Node

0.9.4.post2

History Node

0.9.4.post1

History Node

0.9.4.post0

History Node

0.9.3.post11

History Node

0.9.3.post10

History Node

0.9.3.post9

History Node

0.9.3.post8

History Node

0.9.3.post7

History Node

0.9.3.post6

History Node

0.9.3.post5

History Node

0.9.3.post4

History Node

0.9.3.post3

History Node

0.9.3.post2

History Node

0.9.3.post1

History Node

0.9.3.post0

History Node

0.9.2.post38

History Node

0.9.2.post37

History Node

0.9.2.post36

History Node

0.9.2.post35

History Node

0.9.2.post34

History Node

0.9.2.post33

History Node

0.9.2.post32

History Node

0.9.2.post31

History Node

0.9.2.post30

History Node

0.9.2.post29

History Node

0.9.2.post28

History Node

0.9.2.post27

History Node

0.9.2.post26

History Node

0.9.2.post25

History Node

0.9.2.post24

History Node

0.9.2.post23

History Node

0.9.2.post22

History Node

0.9.2.post21

History Node

0.9.2.post20

History Node

0.9.2.post19

History Node

0.9.2.post18

History Node

0.9.2.post17

History Node

0.9.2.post16

History Node

0.9.2.post15

History Node

0.9.2.post14

History Node

0.9.2.post13

History Node

0.9.2.post12

History Node

0.9.2.post11

History Node

0.9.2.post10

History Node

0.9.2.post8

History Node

0.9.2.post7

History Node

0.9.2.post6

History Node

0.9.2.post5

History Node

0.9.2.post4

History Node

0.9.2.post3

History Node

0.9.2-2

History Node

0.9.2-1

History Node

0.9.1-7

History Node

0.9.1-6

History Node

0.9.1-5

History Node

0.9.1-2

History Node

0.9.1-1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hcpsdk-0.9.4.post9.tar.gz (39.6 kB) Copy SHA256 Checksum SHA256 Source Aug 26, 2017

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting