Pointing tool API#
JUICE_POINTING_TOOL
#
- ptr.JUICE_POINTING_TOOL#
alias of <PointingToolApi> https://juicept.esac.esa.int | Contexts: - JUICE Planning Cruise - JUICE CREMA 5.1 150lb_23_1 - JUICE CREMA 5.1 150lb_23_1 Cruise - JUICE CREMA 5.0
POINTING_TOOL_ENDPOINTS
#
- ptr.POINTING_TOOL_ENDPOINTS#
alias of {‘JUICE_API’: <PointingToolApi> https://juicept.esac.esa.int | Contexts: - JUICE Planning Cruise - JUICE CREMA 5.1 150lb_23_1 - JUICE CREMA 5.1 150lb_23_1 Cruise - JUICE CREMA 5.0}
Pointing tool REST API#
PointingToolApi
#
- class ptr.esa.pointing_tool.PointingToolApi(endpoint, use_cache=True)[source]#
Bases:
object
Pointing tool API object.
- Parameters
endpoint (str) – API endpoint url.
cache (bool, optional) – Enable API caching (default: True).
- property agm_url#
PT AGM endpoint URL.
- property url_contexts#
PT trajectory contexts URL.
- property contexts#
Pointing tool context.
PointingToolContext
#
- class ptr.esa.pointing_tool.PointingToolContext(api, name=None, context=None)[source]#
Bases:
object
Pointing tool API context object.
- Parameters
name (str) – API endpoint url.
context (str) – API context key.
- property url#
Context definition URL.
- property info#
Context infos.
- property mk#
Context metakernel.
pt_api
#
- ptr.esa.pointing_tool.pt_api(url, use_cache=True)[source]#
Pointing tool API request.
- Parameters
url (str) – Endpoint URL to request.
use_cache (bool, optional) – Cache the API request and fallback to the cache if the API resource is not available
- Returns
Parsed JSON response.
- Return type
list or dict
- Raises
FileNotFoundError – If API service is not available and no cache was found.
pt_cache
#
PT_CACHE
#
- ptr.esa.pointing_tool.PT_CACHE#
alias of PosixPath(‘/tmp/pointing-tool-api-cache’)