Skip to main content

d2-bin

The official D2 command line tool, packaged as a Python wheel so you can install it with pip or uv. D2 turns text into diagrams.

The wheels contain the unmodified binaries from the D2 v0.9.0 release. Nothing is rebuilt or patched. The build script checks every download against the release checksums.

Run it without installing:

uvx d2-bin --version

Install it once and use d2 everywhere:

uv tool install d2-bin
d2 --version

Or add it to a project, which puts d2 on the project's PATH:

uv add d2-bin

d2-bin and python -m d2_bin run the same binary, and d2_bin.find_d2_bin() returns its path.

This package is built from h0rv/d2-python. It pairs with d2-python, which can render diagrams through this binary: pip install 'd2-python[bin]'.

License

D2 is licensed under the MPL-2.0 and includes the TALA layout engine since v0.9.0. The D2 license and third party notices are included in the wheel.

Metadata

Release files for d2-bin 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for d2-bin 0.9.0
File
d2_bin-0.9.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
d2_bin-0.9.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
d2_bin-0.9.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 Details
d2_bin-0.9.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux musl 1.1+ ARM64 Details
d2_bin-0.9.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
d2_bin-0.9.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 103.9 MB

Release files / d2_bin-0.9.0-py3-none-win_arm64.whl

Download URL d2_bin-0.9.0-py3-none-win_arm64.whl
Size 16.5 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
1d653c49aa7696013eaac6d1aa4484c8f45f0386469d698dc0ca36747dd05043
BLAKE2b-256 checksum
How to use checksums
b95146551ba410d6919d230cdb28d96795bd58158df6a34ece340b4ed38847db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / d2_bin-0.9.0-py3-none-win_amd64.whl

Download URL d2_bin-0.9.0-py3-none-win_amd64.whl
Size 18.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
67e89438698da14a1a97d81f2061a3f5a281f78449073f7edb470ea7c7d8e9ac
BLAKE2b-256 checksum
How to use checksums
c3e7b41b55bec17c28d5ed4c520310fcc09d311397fd030bd3599deebcc7c40a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / d2_bin-0.9.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL d2_bin-0.9.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 17.9 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bd87ecd963ce58d3c50a3be3b9931e630fc575323cf9a0c6b1c1af7bc25e2d0e
BLAKE2b-256 checksum
How to use checksums
51d023c5373d79fb21818832173be73751a29a23ebeb89e246c9f215cad55b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / d2_bin-0.9.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL d2_bin-0.9.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 16.4 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ae3a6c06bee5b29ca85a6a38fdd19ac9b6b4b753958f5d290d69a7b696a24f3c
BLAKE2b-256 checksum
How to use checksums
1d96fbeaf9163fdd6b98ed45a113d221acc1121478880e5f3e9b1666f6bd58e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / d2_bin-0.9.0-py3-none-macosx_11_0_arm64.whl

Download URL d2_bin-0.9.0-py3-none-macosx_11_0_arm64.whl
Size 16.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e9a61b4f72ce46fc7c55ef681831767a3f33328416ed04f9db0382d8def68340
BLAKE2b-256 checksum
How to use checksums
003f15fa684e26c46957dbef38a7dbdb64362fb5b6d6097ee2573d6071e7e2fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / d2_bin-0.9.0-py3-none-macosx_10_12_x86_64.whl

Download URL d2_bin-0.9.0-py3-none-macosx_10_12_x86_64.whl
Size 18.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b7cea6b2022d6d7c4fe358ffd8b2be29abca389b3378346fb374f43b1f243953
BLAKE2b-256 checksum
How to use checksums
4aaa21dc6c5f8ef145809aabb89ad029ead453b8c491cc5f652292fc10d60729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for d2-bin 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9.0 This release

6 release files No provenance

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