Skip to main content

Python port of d3-contour

Project description

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.

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

pyd3js_contour-0.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

pyd3js_contour-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyd3js_contour-0.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pyd3js_contour-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2389d8d1f1be8d2b0345a2eb8fca23dfd527323d8800f655344b27e2aaeb24f5
MD5 187b891b427a4277334bfb0e0114ff2b
BLAKE2b-256 d6886fae6c22f23102ef653d4f2e2652f510570ff94b69a747aff48eb163db6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyd3js_contour-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pyd3js_contour-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48f56dd505d07c6df54b811fa83b19234cf9cfc142118b790b6cc4a5d260aad4
MD5 211c013e8d6f2521072768a04b19e7dd
BLAKE2b-256 b60c4c8de082b0791985bf8090de48f898949de5774d1c194487f040dfc59507

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