Helper package for H2H Task images.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for common-harness-lib-0.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6feffff7f86819c0661e45956a61a24985893bacf551de9cce968283e50c96 |
|
MD5 | 03535153fb744063bdc0cc1a0a5839e3 |
|
BLAKE2b-256 | b15b033b8b7315300c2cd99104b9a34b02a4c6b91a76452ccf6a36a937c80696 |
Close
Hashes for common_harness_lib-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 422b8ca14e2107298e97e61724a79364ef4e7fef9ec153e23788546c1d9c209c |
|
MD5 | 0456819d4388ea3de1e52e5563b73f80 |
|
BLAKE2b-256 | 7bed32c28db10120a79b9d71ab09f5adefdba5ad71c1bf7f1295add32dad1072 |