Return a Boto3 session with Quilt stack credentials and AWS region. In case of no Quilt credentials found, return a "normal" Boto3 session if fallback is True, otherwise raise a QuiltException.
Note: you need to call quilt3.config("https://your-catalog-homepage/") to have region set on the session, if you previously called it in quilt3 < 6.1.0.
list_package_versions(name, registry=None)
Lists versions of a given package.
Returns an iterable of (latest_or_unix_ts, hash) of package revisions. If the registry is None, default to the local registry.
Arguments
name (str): Name of the package
registry (str): location of registry to load package from.
Returns
An iterable of tuples containing the version and hash for the package.
list_packages(registry=None)
Lists Packages in the registry.
Returns an iterable of all named packages in a registry. If the registry is None, default to the local registry.
Arguments
registry (str): location of registry to load package from.
Returns
An iterable of strings containing the names of the packages
logged_in()
Return catalog URL if Quilt client is authenticated, None otherwise.
login()
Authenticate to your Quilt stack and assume the role assigned to you by your stack administrator. Not required if you have existing AWS credentials.
Launches a web browser and asks the user for a token.
login_with_api_key(key: str)
Authenticate using an API key.
The API key is stored in memory only (no disk persistence). While set, the API key overrides any interactive session. Use clear_api_key() to revert to interactive session.
Arguments
key: API key string (starts with 'qk_')
Raises
ValueError: If the key doesn't start with 'qk_' prefix.
logout()
Do not use Quilt credentials. Useful if you have existing AWS credentials.
search(query: Union[str, dict], limit: int = 10) -> List[dict]
Execute a search against the configured search endpoint.
Arguments
query: query string to query if passed as str, DSL query body if passed as dict
limit: maximum number of results to return. Defaults to 10