prefect_github.utils
Utilities to assist with using generated collections.
Functions
camel_to_snake_case
Converts CamelCase and lowerCamelCase to snake_case. Args: string: The string in CamelCase or lowerCamelCase to convert. Returns: A snake_case version of the string.
Source code in prefect_github/utils.py
13 14 15 16 17 18 19 20 21 22 |
|
initialize_return_fields_defaults
Reads config_path to parse out the desired default fields to return. Args: config_path: The path to the config file.
Source code in prefect_github/utils.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
strip_kwargs
Drops keyword arguments if value is None because sgqlc.Operation errors out if a keyword argument is provided, but set to None.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
**kwargs |
Dict
|
Input keyword arguments. |
{}
|
Returns:
Type | Description |
---|---|
Dict
|
Stripped version of kwargs. |
Source code in prefect_github/utils.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|