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

Allow generating an empty metadata file #14

Closed
IgnacioHeredia opened this issue Aug 20, 2024 · 0 comments · Fixed by #11
Closed

Allow generating an empty metadata file #14

IgnacioHeredia opened this issue Aug 20, 2024 · 0 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request

Comments

@IgnacioHeredia
Copy link

We can offer a functionality to generate an empty metadata file that is compliant with a given metadata version.

In my case, I want this for PAPI. When we fail to load the metadata of a module, I want to return an empty placeholder. Now I'm generating that placeholder manually.

metadata = {
    "metadata_version": "2.0.0",
    "title": "",
    "summary": "",
    "description": "",
    "doi": "",
    "license": "",
    "dates": {
        "created": "",
        "updated": "",
        },
    "links": {
        "documentation": "",
        "source_code": "",
        "docker_image": "",
        "ai4_template": "",
        "dataset": "",
        "weights": "",
        "citation": "",
        "base_model": "",
    },
    "tags": [],
    "tasks": [],
    "categories": [],
    "libraries": [],
    "data-type": [],
}
@IgnacioHeredia IgnacioHeredia added the enhancement New feature or request label Aug 20, 2024
alvarolopez added a commit that referenced this issue Aug 22, 2024
alvarolopez added a commit that referenced this issue Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants