Skip to main content

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

  • Replica-aware (replica can be part of a target object)

  • Various strategies on how to use a replica

  • Connection objects, while tied to a target object, allow access to HCP through the various http/REST dialects (native, HS3, HSwift)

  • 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 these packages:

  • dnspython3 - Used for non-cached name resolution when bypassing the system’s resolver.

  • sphinx - Used for local documentation builds from source code and *.rst files.

Documentation

To be found at readthedocs.org

Installation

Install hcpsdk by running:

pip install hcpsdk

-or-

  • get the source from GitHub

  • unzip the archive

  • run python setup.py install

-or-

Contribute

Support

If you find any bugs, please let us know via the Issue Tracker; if you have comments or suggestions, send an email to mailto: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.

Metadata

Release files for hcpsdk 0.9.2.post28

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

Source distribution (sdist)

Source distribution for hcpsdk 0.9.2.post28
File Size Uploaded
hcpsdk-0.9.2.post28.tar.gz 27.7 kB Details

Release files / hcpsdk-0.9.2.post28.tar.gz

Download URL hcpsdk-0.9.2.post28.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e163be23ceae4a0101865a07eb093109a2da7744e028f709f1a37b0e9dae86aa
BLAKE2b-256 checksum
How to use checksums
3df5a35c19af5b4ea2eaf033b5e441e02a6bd2fa0115317a2dfea2a76ff25732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.2.post28 This release

1 release file

0.9.2.post12

0.9.1-7

1 release file

0.9.1-6

1 release file

0.9.1-5

1 release file

0.9.1-2

1 release file

0.9.1-1

1 release file

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