Skip to main content

pyd3js-contour

PyPI version Python versions License CI Security

Python port of d3-contour.

Release notes: docs/CHANGELOG.md.

Tracked version: see upstream_lock.json.

Public API

Matches d3-contour@4.0.2 named exports (contours, contourDensity only). Method-level surface is documented in docs/UPSTREAM_API.md.

from pyd3js_contour import contourDensity, contours

c = contours().size([10, 10]).thresholds([0.5])
polys = c([0.0] * 100)

d = contourDensity().thresholds([0.01, 0.05])
density_polys = d([[50.0, 50.0]])

Compatibility matrix

Upstream export inventory (docs/UPSTREAM_API.md):

  • contours — [oracle]
  • contourDensity — [oracle]

Development

From the repo root:

uv sync --group dev
uv run pytest packages/pyd3js-contour/package_tests --cov=pyd3js_contour --cov-report=term-missing

Optional upstream JS gate (vendored d3-contour + npm install under packages/pyd3js-contour/upstream/d3-contour):

uv run pytest packages/pyd3js-contour/package_tests -m upstream

The npm package name on the registry is d3-contour; this package mirrors that API in Python.

Metadata

Release files for pyd3js-contour 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-contour 0.1.0
File Size Uploaded
pyd3js_contour-0.1.0.tar.gz 14.5 kB Details

Built distribution (wheel)

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

Total release size: 25.6 kB

Release files / pyd3js_contour-0.1.0.tar.gz

Download URL pyd3js_contour-0.1.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2389d8d1f1be8d2b0345a2eb8fca23dfd527323d8800f655344b27e2aaeb24f5
BLAKE2b-256 checksum
How to use checksums
d6886fae6c22f23102ef653d4f2e2652f510570ff94b69a747aff48eb163db6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

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

Download URL pyd3js_contour-0.1.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48f56dd505d07c6df54b811fa83b19234cf9cfc142118b790b6cc4a5d260aad4
BLAKE2b-256 checksum
How to use checksums
b60c4c8de082b0791985bf8090de48f898949de5774d1c194487f040dfc59507
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