Skip to main content

pyd3js-chord

Python port of d3-chord.

Tracked version: see upstream_lock.json.

What you get

  • 100% upstream export parity (for the pinned d3-chord@3.0.1): the compatibility matrix below covers every upstream export.
  • 100% Python test coverage for pyd3js_chord (run the coverage command below).
  • 100% upstream d3-chord JS tests vendored and passing: the upstream Mocha suite under packages/pyd3js-chord/upstream/d3-chord/test/ is run via a pytest gate (-m upstream).
  • Oracle parity checks (where feasible): representative tests compare results to upstream via the repo’s Node oracle (-m oracle).

Install

From PyPI:

pip install pyd3js-chord

This repo is a uv workspace monorepo. For local development:

uv sync --group dev

Compatibility matrix

Pinned upstream inventory: docs/UPSTREAM_API.md (from d3-chord@3.0.1).

Legend:

  • [oracle]: implemented and has oracle parity tests for representative cases.
  • [unit + upstream-js]: implemented and covered by Python unit tests plus the vendored upstream JS suite gate.

Upstream exports (d3-chord@3.0.1)

  • chord — [oracle]
  • chordTranspose — [oracle]
  • chordDirected — [oracle]
  • ribbon — [oracle]
  • ribbonArrow — [oracle]

Development

uv run pytest packages/pyd3js-chord/package_tests
uv run ruff format packages/pyd3js-chord
uv run ruff check packages/pyd3js-chord
uv run ty check packages/pyd3js-chord/src

Coverage (Python)

uv run pytest packages/pyd3js-chord/package_tests --cov=pyd3js_chord --cov-report=term-missing

Oracle parity tests (Node)

cd tools/oracle && npm ci
uv run pytest -m oracle packages/pyd3js-chord/package_tests

Upstream d3-chord test suite (vendored)

uv run python scripts/vendor_upstream.py
cd packages/pyd3js-chord/upstream/d3-chord && npm install --legacy-peer-deps
uv run pytest -m upstream packages/pyd3js-chord/package_tests

Documentation

  • Upstream export inventory: docs/UPSTREAM_API.md

Metadata

Release files for pyd3js-chord 0.1.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 pyd3js-chord 0.1.0
File Size Uploaded
pyd3js_chord-0.1.0.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyd3js-chord 0.1.0
File Interpreter ABI Platform
pyd3js_chord-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / pyd3js_chord-0.1.0.tar.gz

Download URL pyd3js_chord-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
298435a733be4780c83bf9490cffb397a8883cccab74bcbd9a3648a9c1a9ecc0
BLAKE2b-256 checksum
How to use checksums
66aaadd7c1cd6b8553d1e815480b055b59ed82a8ad8ee027b30930ac8ebc610d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / pyd3js_chord-0.1.0-py3-none-any.whl

Download URL pyd3js_chord-0.1.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3717df14a25751efd3f31d7b75cbad0d1059dfba24b02104ad7fe4358d006105
BLAKE2b-256 checksum
How to use checksums
2e2a1c0ef6e7ad7e834738f5942db8e9e2e089aaf1b800af8486ab2ac807258e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.0

1 release file

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