board_url

board_url(path, pin_paths, cache=DEFAULT, allow_pickle_read=None)

Create a board from individual URLs.

Parameters

Name Type Description Default
path str A base URL to prefix all individual pin URLs with. required
pin_paths dict A dictionary mapping pin name to pin URL. required
cache Whether to use a cache. By default, pins attempts to select the right cache directory, given your filesystem. If None is passed, then no cache will be used. You can set the cache using the PINS_CACHE_DIR environment variable. DEFAULT
allow_pickle_read Whether to allow reading pins that use the pickle protocol. Pickles are unsafe, and can execute arbitrary code. Only allow reading pickles if you trust the board to execute Python code on your computer. You can enable reading pickles by setting this to True, or by setting the environment variable PINS_ALLOW_PICKLE_READ. If both are set, this argument takes precedence. None

Examples

github_raw = "https://raw.githubusercontent.com/rstudio/pins-python/main/pins/tests/pins-compat"
pin_paths = {
  "df_csv": "df_csv/20220214T163720Z-9bfad/",
  "df_arrow": "df_arrow/20220214T163720Z-ad0c1/",
  }
board = board_url(github_raw, pin_paths)
board.pin_list()
['df_csv', 'df_arrow']