Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rsc metadata local field with url, content guid #167

Merged
merged 4 commits into from
Nov 7, 2022
Merged

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.

1 participant