Skip to main content

cof-cli

Outil de référence pour COF (Character Open File) : validation, empaquetage, conversions.

pip install -e ".[dev]"          # depuis le dossier cli/
cof validate spec/examples/01-clara-text-only      # dossier ou fichier .cof
cof pack spec/examples/01-clara-text-only -o clara.cof   # recalcule hashes + complétude
cof info clara.cof
cof unpack clara.cof -o clara/
cof tokens clara.cof
cof import carte.png -o perso/ --age 30 --lang fr --keep-png   # carte PNG CCv2/V3 → dossier COF
cof export clara.cof --format png -o clara.png                     # → PNG avec chunks chara + ccv3
cof export clara.cof --format soul -o ./agent/                   # → SOUL.md + IDENTITY.md (OpenClaw)
cof export clara.cof --format card -o clara.card.json
cof export clara.cof --format soul --preset young -o ./agent/        # export depuis un autre preset
cof migrate dossier-v0.2/                                      # v0.2 → v0.3 (elements / presets)

Ce que validate vérifie (v0.3) : résolution des presets (slots, extends, derives_from), identifiants d'assets, dérivés hors des images de base, poids avec modèle de base, règles d'âge sur l'âge le plus bas (manifeste et age_override), styles mélangés dans un preset ; schéma du manifeste, sentinelle mimetype, chemins sûrs (pas de .., pas de symlink), absence de chiffrement, taux de compression, hashes SHA-256 et tailles des assets, cohérence âge ↔ corps, bloc intime interdit si mineur, consentement si personne réelle, transcriptions des échantillons de voix, contenu exécutable non déclaré, renvois expresses vers psyche.json, doublons textuels, budgets de tokens ; puis recalcule le KPI de complétude et les cibles prêtes.

Tests : pytest (dossier cli/). Tokens : installer tiktoken pour un comptage exact (sinon heuristique par caractères).

Metadata

Release files for cof-cli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cof-cli 1.0.0
File Size Uploaded
cof_cli-1.0.0.tar.gz 79.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cof-cli 1.0.0
File Interpreter ABI Platform
cof_cli-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 156.5 kB

Release files / cof_cli-1.0.0.tar.gz

Download URL cof_cli-1.0.0.tar.gz
Size 79.5 kB
Tags Source
SHA-256 checksum
How to use checksums
88ff621a9c22a3a5c09a48d8198a9e1bf6d4376ba03dbb35a0c3c24d33da6ef6
BLAKE2b-256 checksum
How to use checksums
67e71a35191d9cf0e7c592f5ea564c3fe3269dd786f87bfedfb42bb042a89669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / cof_cli-1.0.0-py3-none-any.whl

Download URL cof_cli-1.0.0-py3-none-any.whl
Size 77.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ae4f6d78d6f7c9a85da522742ed7d21bcd045415d8bd31d59006937c7979c8b
BLAKE2b-256 checksum
How to use checksums
2d2c4724e862777c6b7b8325ea25dbcd972e1092a82e6344548a10be78a7828d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page