9.1.2.17. GeoHealthCheck.util
9.1.2.17.1. Module Contents
9.1.2.17.1.1. Functions
|
calculates average from a list |
|
common formatting datetime fields |
|
common formatting success boolean field |
|
common formatting object field |
|
|
|
|
|
calculates a percentage |
|
return sample interactive session |
|
convenience function to render template in a non-Flask context |
|
convenience function to send an email |
|
convenience function to geocode a value |
|
convenience function to transform a bbox array |
|
read file contents |
|
|
|
|
|
|
|
9.1.2.17.1.2. Attributes
- GeoHealthCheck.util.APP
- GeoHealthCheck.util.CONFIG
- GeoHealthCheck.util.LOGGER
- GeoHealthCheck.util.average(values)
calculates average from a list
- GeoHealthCheck.util.format_checked_datetime(run, default='-')
common formatting datetime fields
- GeoHealthCheck.util.format_run_status(run, default='-')
common formatting success boolean field
- GeoHealthCheck.util.format_obj_value(obj, default='-')
common formatting object field
- GeoHealthCheck.util.create_hash(string)
- GeoHealthCheck.util.verify_hash(hash1, hash2)
- GeoHealthCheck.util.percentage(number, total)
calculates a percentage
- GeoHealthCheck.util.get_python_snippet(resource)
return sample interactive session
- GeoHealthCheck.util.render_template2(template, template_vars)
convenience function to render template in a non-Flask context
- GeoHealthCheck.util.send_email(mail_config, fromaddr, toaddr, msg)
convenience function to send an email
- GeoHealthCheck.util.geocode(value, spatial_keyword_type='hostname')
convenience function to geocode a value
- GeoHealthCheck.util.transform_bbox(epsg1, epsg2, bbox)
convenience function to transform a bbox array
- GeoHealthCheck.util.read(filename, encoding='utf-8')
read file contents
- GeoHealthCheck.util.encode(key, string)
- GeoHealthCheck.util.decode(key: str, string: str) str
- GeoHealthCheck.util.create_requests_retry_session(retries=3, backoff_factor=0.3, status_forcelist=(500, 502, 504), session=None)
- GeoHealthCheck.util.expand_url(url, query_clause)