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)
| File | Size | Uploaded | |
|---|---|---|---|
| common-harness-lib-0.0.18.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|