Skip to content

caltechlibrary/convert_codemeta

Repository files navigation

Convert Codemeta

Python utility for converting and validating codemeta.json files using the codemeta crosswalk

License Latest release

Table of contents

Introduction

This application copies some functionality of codemetar, but in python. It includes codemeta validation and crosswalk functions.

Installation

Clone from github

Type pip install .

Usage

Validate codemeta in a python script: validate_codemeta(codemeta)

Convert to codemeta in a python script by providing the input format: crosswalk(data, "bio.tools")

Convert from codemeta to a different format in a python script by providing both formats: crosswalk(data, "codemeta", "Zenodo")

Run tests by typing pytest tests

Known issues and limitations

In active development

Getting help

Submit issues on GitHub, or send me a note at tmorrell@caltech.edu

Contributing

Contributions are welcome! See Contributing for more details.

License

Software produced by the Caltech Library is Copyright (C) 2019, Caltech. This software is freely distributed under a BSD/MIT type license. Please see the LICENSE file for more information.

Authors and history

Tom Morrell

Acknowledgments

This work was funded by the Alfred P. Sloan Foundation as part of the 2019 Scientific Software Registry Collaboration Workshop. It is maintained by the California Institute of Technology Library.