Skip to main content

common-harness-lib

[H2H Toolkit] Common python library for harness functions within task docker images.

Usage:

Create object with CommonHarnessLib(). To disable s3 features, use the disable_s3=False flag.

Methods:

  • S3:
    • handle_s3_exception(err: Exception): Handle's common s3 errors.
    • get_object_content(bucket_name: str, object_key: str): Get's a s3 object content as a string.
    • download_wordlists(wordlist_keys: List[str]): Downloads a list of wordlists from s3 and combines them as one file.
  • System:
    • run_command(command: List[str]): Run a command (i.e. ["echo", "hello world"])
  • Validation:
    • validate_dict({"firstname": str, "age": int}): Validates that a dict matches required type entries

Release files for common-harness-lib 0.0.18

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

Source distribution (sdist)

Source distribution for common-harness-lib 0.0.18
File Size Uploaded
common-harness-lib-0.0.18.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for common-harness-lib 0.0.18
File Interpreter ABI Platform
common_harness_lib-0.0.18-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / common-harness-lib-0.0.18.tar.gz

Download URL common-harness-lib-0.0.18.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4cfa8126399cad9a924ea5869a905fd4afea940695becb237e6d8d19c4f30db
BLAKE2b-256 checksum
How to use checksums
7325cc04af9382b89aadbd66320554f50a1c7d1bd66dd7b95469a67078220234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / common_harness_lib-0.0.18-py3-none-any.whl

Download URL common_harness_lib-0.0.18-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6acf9bf26c5c03d9a9495521f5bce63ece284a9c2b14678a9330d07f58b0c664
BLAKE2b-256 checksum
How to use checksums
7bc86e7f9d6153dd6ee15f0dd344ac285abcaed89f8177534e41cd1269cae3e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.18 This release

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 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