Skip to main content

Cite, don't import — track cited code in pyproject.toml with Quote / Paraphrase / Synthesize semantics

Project description

citation-cli

Cite, don't import — track cited code in pyproject.toml with Quote / Paraphrase / Synthesize semantics.

Install

uv tool install citation-cli

Or with pip:

pip install citation-cli

Usage

Record a citation — scans files in the target directory and records each as a quote with its sha256 hash in pyproject.toml:

cite add my-pkg \
  --source ../packages/ref \
  --version 1.0.0 \
  --target ./src/clients/my-pkg

Check integrity of cited files — compares sha256 hashes of quoted files, reports drift or missing files:

cite check

Check a specific package:

cite check my-pkg

File status

Files are tracked with one of three statuses:

  • quote — exact copy, sha256 recorded, checked for drift
  • paraphrase — intentionally modified, skipped during check
  • synthesize — merged into an existing file, skipped during check

Migrating from assimilai

If you have a legacy [tool.assimilai] manifest, migrate it to the v2 [tool.citation] schema with:

cite migrate

Use --dry-run to preview the translation without writing.

Documentation

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

citation_cli-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

citation_cli-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file citation_cli-0.1.0.tar.gz.

File metadata

  • Download URL: citation_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for citation_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0629c8ea2e1733162f34b66f9ca539c5cf8ac0e6acbf04a5d8e4fd7031ff07a0
MD5 10ad5adf7ed62791bbe572e815f3602d
BLAKE2b-256 c7facaa57183d370b88531ea50918a55592ec8d89ac22f5d8429b8198a7e4df9

See more details on using hashes here.

File details

Details for the file citation_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: citation_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for citation_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33c633778a8a39ad561f954ea0f6085f6a37a3b16ed1f2411a93779755e98145
MD5 f741edcfd3abad2987991122a740dbb4
BLAKE2b-256 e974a9538a062dd0c16f4db46b5a2d63476c8ea212a48771718f532b79a2430e

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