Source code for pystac.link

from copy import copy

import pystac
from pystac import STACError
from pystac.stac_io import STAC_IO
from pystac.utils import (make_absolute_href, make_relative_href, is_absolute_href)

HIERARCHICAL_LINKS = ['root', 'child', 'parent', 'collection', 'item', 'items']