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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file common-harness-lib-0.0.18.tar.gz.
File metadata
- Download URL: common-harness-lib-0.0.18.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4cfa8126399cad9a924ea5869a905fd4afea940695becb237e6d8d19c4f30db
|
|
| MD5 |
420a7867deb11b0c58f2d8d37a8a46e9
|
|
| BLAKE2b-256 |
7325cc04af9382b89aadbd66320554f50a1c7d1bd66dd7b95469a67078220234
|
File details
Details for the file common_harness_lib-0.0.18-py3-none-any.whl.
File metadata
- Download URL: common_harness_lib-0.0.18-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6acf9bf26c5c03d9a9495521f5bce63ece284a9c2b14678a9330d07f58b0c664
|
|
| MD5 |
6ae764a89ab686d27ed0720513a89e5d
|
|
| BLAKE2b-256 |
7bc86e7f9d6153dd6ee15f0dd344ac285abcaed89f8177534e41cd1269cae3e7
|