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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cfde_c2m2-0.4.2.tar.gz.
File metadata
- Download URL: cfde_c2m2-0.4.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.9.6 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc04334332a44eb121e801977a2271884661cc1a582451ba05aecfb70788e6b5
|
|
| MD5 |
fa319c2e1fee905559ae9cc925afd78f
|
|
| BLAKE2b-256 |
e854784fa5ef1cf5659d17c3572d45fee3e358900e1525381e7e7258b53870a6
|
File details
Details for the file cfde_c2m2-0.4.2-py3-none-any.whl.
File metadata
- Download URL: cfde_c2m2-0.4.2-py3-none-any.whl
- Upload date:
- Size: 12.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cc51380eb322f6dbdc8a73ada8f6394f17e2a1e690755852e15591bc8225c1a
|
|
| MD5 |
7ac692fc1319e8492eb70d1941f41000
|
|
| BLAKE2b-256 |
363829904e916d2411c0e8b9d44cae33e47181a57c35a8e034f529cc59148920
|