Skip to main content

Library for conversions to/from the Commonmeta scholarly metadata format

Project description

DOI Build PyPI version Coverage Maintainability Rating docs GitHub

commonmeta-py

commonmeta-py is a Python library to implement Commonmeta, the common Metadata Model for Scholarly Metadata. Use commonmeta-py to convert scholarly metadata, in a variety of formats, listed below. Commonmeta-py is work in progress, the first release on PyPi (version 0.5.0) was on February 16, 2023. Up until version 0.5.1, the library was called talbot. Commonmeta-py is modelled after the commonmeta-ruby ruby gem.

commonmeta-py uses semantic versioning. Currently, its major version number is still at 0, meaning the API is not yet stable, and breaking changes are expected in the internal API and commonmeta JSON format.

Installation

Stable version

pip (or pip3) install commonmeta-py

Dev version

pip install git+https://github.com/front-matter/commonmeta-py.git#egg=commonmeta-py

Supported Metadata Formats

Commometa-py reads and/or writes these metadata formats:

Format Name Content Type Read Write
Commonmeta commonmeta application/vnd.commonmeta+json yes yes
CrossRef XML crossref_xml application/vnd.crossref.unixref+xml yes yes
Crossref crossref application/vnd.crossref+json yes n/a
DataCite datacite application/vnd.datacite.datacite+json yes yes
Schema.org (in JSON-LD) schema_org application/vnd.schemaorg.ld+json yes yes
RDF XML rdf_xml application/rdf+xml no later
RDF Turtle turtle text/turtle no later
CSL-JSON csl application/vnd.citationstyles.csl+json yes yes
Formatted text citation citation text/x-bibliography n/a yes
Codemeta codemeta application/vnd.codemeta.ld+json yes later
Citation File Format (CFF) cff application/vnd.cff+yaml yes later
JATS jats application/vnd.jats+xml later later
CSV csv text/csv no later
BibTex bibtex application/x-bibtex later yes
RIS ris application/x-research-info-systems yes yes
InvenioRDM inveniordm application/vnd.inveniordm.v1+json yes yes
JSON Feed json_feed_item application/feed+json yes later

commonmeta: the Commonmeta format is the native format for the library and used internally. Planned: we plan to implement this format for the v1.0 public release.
Later: we plan to implement this format in a later release.

Documentation

Documentation (work in progress) for using the library is available at the commonmeta-py Documentation website and includes several interactive Jupyter Notebooks .

Meta

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License: MIT

Project details


Release history Release notifications | RSS feed

This version

0.56

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commonmeta_py-0.56.tar.gz (304.0 kB view details)

Uploaded Source

Built Distribution

commonmeta_py-0.56-py3-none-any.whl (348.4 kB view details)

Uploaded Python 3

File details

Details for the file commonmeta_py-0.56.tar.gz.

File metadata

  • Download URL: commonmeta_py-0.56.tar.gz
  • Upload date:
  • Size: 304.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

File hashes

Hashes for commonmeta_py-0.56.tar.gz
Algorithm Hash digest
SHA256 ff60b2a76c7c1aa2feeab3215ee9ee08020c849c65e031a578ee3d42cb0a5c77
MD5 86700bc82a4781e9ce5a60259f8b1fff
BLAKE2b-256 265dcb50dea10835e933d085d3d786ae33b59747e2b031d6c8a49699ef1ad928

See more details on using hashes here.

File details

Details for the file commonmeta_py-0.56-py3-none-any.whl.

File metadata

  • Download URL: commonmeta_py-0.56-py3-none-any.whl
  • Upload date:
  • Size: 348.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

File hashes

Hashes for commonmeta_py-0.56-py3-none-any.whl
Algorithm Hash digest
SHA256 9f87a976209b8a066a4076ff1516d5555ab936878f4d3dcbfa20ada3ce6e6016
MD5 4b97a65252ca44027d8d012366b87811
BLAKE2b-256 d0491ff765e83cd96383783be6b357c46afcfc3448597bb06dd6596df8929cf3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page