Skip to main content

HCP Upload Daemon

hcpupd is a daemon that automatically uploads files to HCP.

It’s using the Linux inotify kernel subsystem to monitor a folder (aka watchdir), sending every file that is moved or written to it to HCP, immediately.

Features:

  • Two different upload modes:

    1. Transfer the folder structure created in watchdir to HCP as it is

      • human-readable

      • performance-wise not the best possible solution

      • not tolerant against filename duplicates (except if the Namespace has Versioning enabled)

    or

    1. Obfuscate the folder structure on HCP by creating an UUID per file, used as filename as well as to construct a path to it

      • best possible ingest performance

      • 64k folders created at max. (to be precise: 256**2 + 256)

      • an unlimited number of hcpupd‘s can write into the same Namespace without the risk of filename conflicts

      • supports search for the original filename by adding an annotation to each file, which can be used by HCP’s Metadata Query Engine, Hitachi Content Intelligence or any other indexer that is able to crawl a HCP Namespace

  • Optionally, auto-delete files from watchdir after successful upload

  • Optionally, auto-delete folders after the last file has been uploaded

  • Made to run as a Linux daemon (but can run in an interactive session as well)

  • Extended logging available, incl. log rotation

Dependencies

A binary is provided (here) which should run on most up-to-date Linux derivates. No specific dependencies exist for it.

If you want to build the binary yourself (or just run the Python script directly), you need to have at least Python 3.4.3 installed. See the documentation for details.

Documentation

To be found at readthedocs.org

Installation

Install hcpupd by running:

$ pip install hcpupd

-or-

get the source from gitlab.com, unzip and run:

$ python setup.py install

-or-

Fork at gitlab.com

Contribute

Support

If you’ve found any bugs, please let me 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) 2017 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 hcpupd 0.2.5

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

Source distribution (sdist)

Source distribution for hcpupd 0.2.5
File Size Uploaded
hcpupd-0.2.5.tar.gz 15.2 kB Details

Release files / hcpupd-0.2.5.tar.gz

Download URL hcpupd-0.2.5.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64ba7932818eefd1aa5e8145cc48930d6e90517b8b838bb69139c2a6d1ecf5b5
BLAKE2b-256 checksum
How to use checksums
d3ab12b00c2668e5bf0531045c369f0a0048f859b55c3e593cb9bee669888da8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.5 This release

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

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