core.services package

Submodules

core.services.caches module

Provide requests, with a Cache implemented by redis.

exception core.services.caches.MapquestStatusCodeError

Bases: Exception

The mapquest elevation service returned a status code other than 200.

class core.services.caches.RedisClient(*args, **kwargs)

Bases: object

property redis
core.services.caches.query_api(api_uri: str) → Dict

Return the content available at api_uri.

core.services.caches.query_api_immediately(api_uri: str)

Return the api query, but avoid use of cache.

core.services.caches.query_api_or_read_cache(api_uri: str) → Dict

Return the content available at api_uri, fetching first from the cache.

If api_uri is not found in the cache, attempt a connection based on api_uri. If unsuccessful, handles gracefully.

core.services.mapquest module

core.services.mapquest.get_mapquest_formatted_string(coordinates_list)