lsst.rsp — Python utilities#
The lsst.rsp package provides Python helpers for working inside the Rubin Science Platform Notebook aspect.
These utilities handle common tasks such as connecting to the platform’s TAP service, retrieving access tokens, and interacting with other RSP services.
For example, the get_tap_service() helper returns a ready-to-use client for querying LSST catalogs:
from lsst.rsp import get_tap_service
service = get_tap_service("tap")
The lsst.rsp package is pre-installed in the RSP Notebook environment, so it is available to import in any notebook or terminal session without additional setup.
This reference documents the latest released version of lsst.rsp.
To use the package outside the RSP — for example, on a local machine — install it from PyPI:
pip install lsst-rsp
lsst.rsp Package#
Collection of utilities for Rubin Science Platform notebooks.
Functions#
|
Get the Gafaelfawr access token for the user. |
Call |
|
|
Return the datalink part of a result. |
Return the digest of the current Docker image. |
|
Return hostname or, failing that, |
|
|
Get the credentials for an InfluxDB database. |
|
Get the location information for an InfluxDB database. |
|
Return the name of the current Kubernetes node. |
Call |
|
|
Get the name of the running pod (deprecated, not functional). |
|
Retrieve the UWS IDs of the user's most recent TAP queries. |
|
Get the API URL for a service and dataset combination. |
|
Construct an |
|
Construct a TAP service instance for the requested TAP service. |
List the available datasets in this environment. |
|
|
List the available InfluxDB labels in this environment. |
|
Retrieve job corresponding to a particular query URL. |
Classes#
Service discovery information is not available. |
|
|
InfluxDB database location information and credentials. |
|
Location information for an InfluxDB database. |
|
Discovery information is malformed. |
|
Configured client for other services in the RSP. |
|
Look up Rubin Science Platform services and construct clients. |
No Gafaelfawr token is available. |
|
|
Requested dataset is not present in this environment. |
|
Requested dataset is not present in this environment. |
|
Requested service is not present in this environment. |
Class Inheritance Diagram#
