Skip to content

Add urls property #194

@KOLANICH

Description

@KOLANICH

The proposed impl is kinda

def urls(self):
    md = self.todict()
    try:
        pUrls = dict(el.split(", ") for el in md['project_url']) 
    except KeyError:
        pUrls = {}

    pUrls = dict(el.split(", ") for el in md['project_url'])
    hUrls = {}
    for k in ('home_page', "download_url"):
        v = md.get(k, None)
        if v:
            hUrls[k] = v

    return pUrls, hUrls

(though it is inefficient to use self.todict(), it should be refactored)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions