Skip to content

[Feature Request]: A new keyword arg for MPRester, allowed_licenses #984

@mkhorton

Description

@mkhorton

Problem

Hi team,

With the inclusion of the GNoME data, I've noticed new kwargs like exclude_gnome on certain endpoints. However, it's not always clear to me which methods support this, and which methods might return GNoME data by default or not (for example, MPRester.get_entries).

This introduces a risk that even a user acting in good faith might accidentally retrieve data they cannot use due to licensing restrictions.

Proposed Solution

From a user perspective, I think the ideal option is a global flag, for example:

MPRester(allowed_licenses=("CC-BY", "CC-BY-NC"))`

which would determine what data might be returned globally for the entire MPRester session. For entities or individuals who cannot use CC-BY-NC licensed data (whether from GNoME or any other source), this would give some extra confidence that they might not retrieve this data in error or by accident.

I'm not sure how difficult this would be to implement but seemed like it might be a good idea, and might be a more future-proof solution in the case that MP accepts additional data from another source under CC-BY-NC or even a different license.

Thanks for your consideration on this - I appreciate the maintenance burden that must be involved with handling data available under different licenses in a graceful way.

Alternatives

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions