Python port of d3-chord
Project description
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-chordJS tests vendored and passing: the upstream Mocha suite underpackages/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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyd3js_chord-0.1.0.tar.gz
(10.4 kB
view details)
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 pyd3js_chord-0.1.0.tar.gz.
File metadata
- Download URL: pyd3js_chord-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
298435a733be4780c83bf9490cffb397a8883cccab74bcbd9a3648a9c1a9ecc0
|
|
| MD5 |
156f8a7ef0efd63f37036273873202bd
|
|
| BLAKE2b-256 |
66aaadd7c1cd6b8553d1e815480b055b59ed82a8ad8ee027b30930ac8ebc610d
|
File details
Details for the file pyd3js_chord-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyd3js_chord-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3717df14a25751efd3f31d7b75cbad0d1059dfba24b02104ad7fe4358d006105
|
|
| MD5 |
12842e4362e384dbd74ae71e38683e07
|
|
| BLAKE2b-256 |
2e2a1c0ef6e7ad7e834738f5942db8e9e2e089aaf1b800af8486ab2ac807258e
|