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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyd3js_drag-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

pyd3js_drag-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyd3js_drag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1757ab476045844b211d450e41f481d44d5ff0434035518c21e084301c5e631
MD5 8a7adb402d3262239767425fc81bae8a
BLAKE2b-256 eaee0c34eed673fcab6d10340714f2c0e8f820091dc078a32b65cc27fa07b820

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyd3js_drag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ccf2d90d53bf7d75ab9c4a3a36b13361745083ac343babd5cc2fe3fc1bbae57
MD5 6d8040489628f7107dc243eed99e7ec3
BLAKE2b-256 4a2a1ec1db0fbac3d1a8e3ea2a8b7b4755e0d731a07a72e528f8f83b4222c42f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page