Skip to main content

helper

Helper functions related to hub and AM interactions.

Module​

Functions​

get_am_url​

def get_am_url() ‑> str:

Retrieve the hub AM URL appropriate for the current environment.

get_hub_url​

def get_hub_url() ‑> str:

Retrieve the hub URL appropriate for the current environment.

get_pod_schema​

def get_pod_schema(    pod_identifier: str,    save_file_path: str | Path | None = None,    hub: BitfountHub | None = None,    username: str | None = None,    project_id: str | None = None,    secrets: APIKeys | RefreshableJWT | None = None,) ‑> BitfountSchema:

Get a pod's schema from the hub.

Arguments

  • pod_identifier: The identifier of the pod. If supplied with only pod name assumes the namespace is the current user.
  • save_file_path: Optional. Path to save the downloaded schema to. Won't save if not provided.
  • hub: Optional. The BitfountHub to connect to. The default hub will be used if not provided.
  • username: The username to use when connecting to the hub if a hub instance is not provided.
  • project_id: The project ID to use when connecting to the hub.
  • secrets: Optional. Either APIKeys or JWT to use for authentication.

Returns The loaded BitfountSchema object.