Skip to main content

pyd3js-drag

PyPI version Python versions License CI Security

Python port of d3-drag.

Tracked version: see upstream_lock.json.

What you get

  • 100% upstream export parity for the pinned d3-drag@3.0.0 (see matrix below).
  • 100% Python test coverage for pyd3js_drag.
  • Upstream d3-drag JS tests vendored and passing via a pytest gate (-m upstream).

Install

From PyPI:

pip install pyd3js-drag

For local development (uv workspace):

uv sync --group dev

Compatibility matrix

Pinned upstream inventory: docs/UPSTREAM_API.md.

Legend:

  • [ported]: implemented and covered by ported upstream tests.

Upstream exports (d3-drag@3.0.0)

  • drag — [ported]
  • dragDisable — [ported]
  • dragEnable — [ported]

Testing

Run the package tests:

uv run pytest packages/pyd3js-drag/package_tests

Coverage (Python)

uv run pytest packages/pyd3js-drag/package_tests --cov=pyd3js_drag --cov-report=term-missing

Upstream d3-drag test suite (vendored)

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

Documentation

Metadata

Release files for pyd3js-drag 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-drag 0.1.0
File Size Uploaded
pyd3js_drag-0.1.0.tar.gz 9.1 kB Details

Built distribution (wheel)

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

Total release size: 17.1 kB

Release files / pyd3js_drag-0.1.0.tar.gz

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

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

Download URL pyd3js_drag-0.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ccf2d90d53bf7d75ab9c4a3a36b13361745083ac343babd5cc2fe3fc1bbae57
BLAKE2b-256 checksum
How to use checksums
4a2a1ec1db0fbac3d1a8e3ea2a8b7b4755e0d731a07a72e528f8f83b4222c42f
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