Skip to main content

Utilities for preparing C2M2 tables

Project description

CFDE C2M2 Utilities

A collection of utilities for simplifying the C2M2 submission process. If you prepare your submission with these utilities, you do not need to run the prepare_C2M2_submission.py script or download the CV reference files manually.

Init: Initializes a fresh C2M2 submission in the current working directory, creating blank versions of all tables defined in the current C2M2 datapackage schema (C2M2_datapackage.json).

Prepare: Resolves ontology identifiers and populates the Common Vocabulary (CV) tables.

Validate: Checks validity of C2M2 submission and highlights tables for which corrections, if any, are needed.

Package: Collects metadata tables in a zip file to be submitted to the DRC portal.

Submit: Submits C2M2 datapackage to DRC portal (coming soon)

Setup

Using pipx

# installation
pipx install cfde-c2m2
# upgrade
pipx upgrade cfde-c2m2

Using uv

# installation
uv tool install cfde-c2m2
# upgrade
uv tool upgrade cfde-c2m2

Usage

# create an empty c2m2 submission OR update your existing submission directory
cfde-c2m2 init

# fill in your tables however you like

# finish preparing your package by resolving iris
cfde-c2m2 prepare

# verify integrity of your package
cfde-c2m2 validate

# zip the necessary files for a bare minimum package (opt for a useful name for your team)
cfde-c2m2 package -o 2026_03_C2M2.zip

# Coming Soon: submit to DRC portal
cfde-c2m2 submit 2026_03_C2M2.zip

Project details


Download files

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

Source Distribution

cfde_c2m2-0.4.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cfde_c2m2-0.4.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file cfde_c2m2-0.4.3.tar.gz.

File metadata

  • Download URL: cfde_c2m2-0.4.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.6 Darwin/25.2.0

File hashes

Hashes for cfde_c2m2-0.4.3.tar.gz
Algorithm Hash digest
SHA256 cd9862a339f60379e58141344e3f5b1cae0cea3d571b2ddc5feee3da96e06fe0
MD5 0aa196855c22197448e29506b0ddb74b
BLAKE2b-256 10bfe3aa9e2c6976fcdc3cd54f17f05586202e9a3246521ef212fd5056c166e0

See more details on using hashes here.

File details

Details for the file cfde_c2m2-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: cfde_c2m2-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.6 Darwin/25.2.0

File hashes

Hashes for cfde_c2m2-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 237e90d32729873852cfb03649610df4ee6ce89aadf81f37a8b9b684924eb2ba
MD5 e66163288f51fb83d796d3238e3fea1e
BLAKE2b-256 eea7f8918f63e8bac57d989588af7ad76c7a2b8ac1d5a6a0cbc9e0ad97dd7fde

See more details on using hashes here.

Supported by

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