You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package offers a CLI and classes to manipulate metadata in CFF and TOML files.
One common use case is to synchronize metadata between pyproject.toml and CITATION.cff files in a Python software project.
CLI
The CLI allows you to view and change common metadata between CITATION.cff and pyproject.toml files, including the Python project's:
title
description
license
version
repo
You can learn more about the CLI options and commands by running the following help option:
cff2toml --help
Viewing metadata in CITATION.cff and pyproject.toml
Here is how you view the version in both CITATION.cff and pyproject.toml,
assuming they are in the same directory
cff2toml view version
You can also view other common metadata. See the help.
Changing metadata in both CITATION.cff and pyproject.toml
Here is how you change the version in both CITATION.cff and pyproject.toml,
assuming they are in the same directory
cff2toml change version 2.30.1
You can also change other common metadata. See the help.
Limitations
The CLI and its underlying classes are in early and active development, so they should not be used yet for production systems. The classed used by the CLI may have more functionality than what is currently exposed through the CLI.
Roadmap
Improve CLI tool to view and change other metadata fields.
Improve documentation of the underlying classes.
License
cff2toml is distributed under the terms of the Apache 2.0 license
Contribution
Contributions in the form of feature requests, bug reports, bug fixes, tests, and feature implementations are welcome. To contribute code, please fork the project, and then do a pull request.
Developer Notes
Buildiing Locally
To build the tool locally, please follow the general advice from here.