hipscat.inspection.almanac_info#

Module Contents#

Classes#

AlmanacInfo

Container for parsed almanac information.

class AlmanacInfo[source]#

Container for parsed almanac information.

file_path: str = ''[source]#
storage_options: Dict[Any, Any] | None[source]#
namespace: str = ''[source]#
catalog_path: str = ''[source]#
catalog_name: str = ''[source]#
catalog_type: str = ''[source]#
primary: str | None[source]#
join: str | None[source]#
sources: List[typing_extensions.Self][source]#
objects: List[typing_extensions.Self][source]#
margins: List[typing_extensions.Self][source]#
associations: List[typing_extensions.Self][source]#
associations_right: List[typing_extensions.Self][source]#
indexes: List[typing_extensions.Self][source]#
creators: List[str][source]#
description: str = ''[source]#
version: str = ''[source]#
deprecated: str = ''[source]#
catalog_info: dict[source]#
catalog_info_object: hipscat.catalog.dataset.base_catalog_info.BaseCatalogInfo | None[source]#
__post_init__()[source]#
static get_default_dir() str[source]#

Fetch the default directory for environment variables.

This is set via the environment variable: HIPSCAT_ALMANAC_DIR

To set this in a linux-like environment, use a command like:

export HIPSCAT_ALMANAC_DIR=/data/path/to/almanacs

This will also attempt to expand any environment variables WITHIN the default directory environment variable. This can be useful in cases where:

$HIPSCAT_ALMANAC_DIR=$HIPSCAT_DEFAULT_DIR/almanacs/
classmethod from_catalog_dir(catalog_base_dir: str, storage_options: Dict[Any, Any] | None = None) typing_extensions.Self[source]#

Create almanac information from the catalog information found at the target directory

classmethod from_file(file: str, storage_options: Dict[Any, Any] | None = None) typing_extensions.Self[source]#

Create almanac information from an almanac file.

write_to_file(directory=None, default_dir=True, fmt='yml', storage_options: Dict[Any, Any] | None = None)[source]#

Write the almanac to an almanac file