Skip to content

Conversation

@machow
Copy link
Collaborator

@machow machow commented Nov 1, 2022

Addresses #154, by adding an optional local attribute to metadata, that is a dictionary for enhancing metadata with backend specific details.

For example

from dotenv import load_dotenv
from pins import board_rsconnect

load_dotenv()

board = board_rsconnect("https://colorado.rstudio.com/rsc")
Meta(
    title='mtcars3: a pinned 32 x 11 DataFrame', description=None, created='20220624T122220Z', 
    pin_hash='3b134bae183b50c9', file='mtcars3.csv', file_size=1333, type='csv', api_version=1, 
    version=VersionRaw(version='58083'), name='michael.chow/mtcars3', user={},

    # note this extra local field ----
    local={'content_id': '6e1b8ea7-aafb-462a-b644-d4a62951ec85', 'version': '58083'}
)

This basically only matters for Rstudio Connect, since content / bundle names are not really paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants