Skip to main content

pyd2lang-native

Build Docs PyPI Python License

Native Python bindings for d2lang, the modern text-to-diagram language. Compile D2 diagram source code to SVG directly from Python — no CLI tools or subprocesses required.

Includes built-in Analog Devices (ADI) libraries for signal-chain shapes, software/AI architecture diagrams, pyadi-jif block diagrams, and ADI DataX overview diagrams, plus light and dark ADI-branded themes.

Quick Start

import d2

# Basic diagram
svg = d2.compile("x -> y -> z")

# ADI signal chain with branded theme
svg = d2.compile("""
  sensor: ADXL345 { class: sensor }
  amp: LT6230 { class: amplifier }
  adc: AD7606 { class: adc }
  dsp: ADSP-21489 { class: dsp-fpga }

  sensor -> amp -> adc -> dsp
""", adi=True)

# Dark theme variant
svg = d2.compile(code, adi=True, theme="dark")

# ADI DataX overview-style stack diagram
svg = d2.compile("""
  direction: down
  stack: ADI DataX Stack { class: datax-panel
    apps: Applications { class: datax-application }
    lib: libiio / pyadi-iio { class: datax-info }
    drivers: Linux IIO Drivers { class: datax-driver }
    hardware: ADI Hardware { class: datax-hardware }
    apps -> lib -> drivers -> hardware { class: datax-flow }
  }
""", library="datax")

Installation

pip install pyd2lang-native

Pre-built wheels are available for Linux (x86_64, aarch64), macOS (Intel, Apple Silicon), and Windows.

Documentation

Full documentation is available at the project docs site.

License

This project is licensed under the MPL-2.0 License. See the LICENSE file for details.

Dependencies

The d2lang compiler is built as a native shared library (.so / .dll / .dylib) and bundled into platform-specific Python wheels.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pyd2lang_native-0.1.8-cp313-cp313-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.13Windows x86-64

pyd2lang_native-0.1.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

pyd2lang_native-0.1.8-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyd2lang_native-0.1.8-cp313-cp313-macosx_11_0_arm64.whl (9.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyd2lang_native-0.1.8-cp312-cp312-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.12Windows x86-64

pyd2lang_native-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

pyd2lang_native-0.1.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyd2lang_native-0.1.8-cp312-cp312-macosx_11_0_arm64.whl (9.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyd2lang_native-0.1.8-cp311-cp311-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.11Windows x86-64

pyd2lang_native-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pyd2lang_native-0.1.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyd2lang_native-0.1.8-cp311-cp311-macosx_11_0_arm64.whl (9.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyd2lang_native-0.1.8-cp310-cp310-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.10Windows x86-64

pyd2lang_native-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pyd2lang_native-0.1.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyd2lang_native-0.1.8-cp310-cp310-macosx_11_0_arm64.whl (9.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file pyd2lang_native-0.1.8-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5fdbcb8da98e2e0381ff67060329ed9da1cebb10f5f2fcc3705828ad27f05c33
MD5 6d9fe34218dc84e0ff49418e4aacf6c5
BLAKE2b-256 1552971ac1c2abaa6c877d0cdde46b15c550556e9c12cf5dc23df43a0e214d15

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3e4ef8016f4a46c79a8b60139de4919c99e691082cbf8dc1336b820aebb3852b
MD5 eff2c2937a2c8d606a0a38d8f0949764
BLAKE2b-256 54954ebe15c445ed12321ce37d669769fdb54216aabafc3e3c33c4e8381786e5

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2ea80bac701e444a97a7f89a69c0889a0375ccd79cd045147d2824d026d0ccb
MD5 be5c428dc5ffa916df7c192fe1da2036
BLAKE2b-256 bc63b9304c024b6faf9c16ac0941e9941085a417c649a89582808dcc831be461

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee26475c88fb0e7881f6c30832d395eadd114134aefc5145072d6288ac19763b
MD5 827f04af74749cb47192d02d44538921
BLAKE2b-256 2628f440722092e21f20006b4e445027ffff163d708b2b0de33bfaed0a23e614

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 89057670d7b01008b263e78396b258aad3f26992bf14497a2ff6b389beb4b682
MD5 d36d0ba372ecc42059f2723f9556c4cc
BLAKE2b-256 86fdbcdb1337f9a030a5d2b3584a89ffcfa09e50fa9e6cc02ae082a36febb3b5

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9a9214f280270f0accde4b35b7b36afd7ef9942d82d908e61c3bced015527cc0
MD5 925a82ccc9b01c64a0a0905deb2df1d0
BLAKE2b-256 5cacc7779a25335fe73e23d2ddddaacac995aa65408091a70d41a259845c21d5

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6471e8c2aa8eca8a908e81b2fda57972245bf2e4c5964e558b39a507d1a31464
MD5 a11ab07f26fad3895e6cb87de97b10fd
BLAKE2b-256 8cd3716510533e85316a277c2b9cb28e84e75ced32514932613d857beba79d58

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc06a95d2186905c9eedc1847e0a077fa0f88b2d327a23c62d85a92c4356633b
MD5 8dead0d0d67ec1e4675bb3a5b4259160
BLAKE2b-256 8f2aca421abea4af4c928f80e7adb38d12ee2a59a0c9623f5ddf0a499dd4454a

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f74fc9961fc690d596cf63571d5b4e83fe2b47016d00bbf6a9b7a6b3e81788f
MD5 c26cd3dc9f7f2f830e2e9704bb61ee1e
BLAKE2b-256 69ac1dacb2485c5a795c3acd4355983e9aabe221372dcb1ed9cefe67065113c1

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b9044d956d0297868fd3f729ef63e8b7f878153ea432bfbab26552d70e3dff22
MD5 f8a0575d879a61fb859e32d0ad275db4
BLAKE2b-256 1f0b8ba3a44ebc8ebda7a71958cd7098ce9938bbdf0c39acc1cf497c323b279e

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 696e2c5c5adcb0f5c273d2a791d540550556b0fe98d5a8dc39faf2df26d46d72
MD5 429fa0f65293223f30c28b4378eedee4
BLAKE2b-256 382c58616ab9814300eee4e9b6e70ffcccf6b3c3650e05d2f015252bb36e567d

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca4f4d5b6970d2289d03603bf0da336728cb1a6a59d137e7da2f453287958177
MD5 27793b12c17e5c201d0015c998a5e162
BLAKE2b-256 9a9c5c755be4085ae4c44df28059fbba6a079156f98ca3aade204b796e32c81b

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d3e4c29f67a32b21ffb3c6b117c83ec73dc0f1173eeebeb7ff8300043fcab362
MD5 47c948ef3df88ab9704aacf2541cd256
BLAKE2b-256 39219d057c1584aa007b38ec708a768ff6ef58e758f213e18bc6235baa96967b

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 308fc1669980a4708fcf8f23c7e6916ece4a1a428e0870dff48203f44aa3071a
MD5 14f05e31b9115ad6cabf42986b256d06
BLAKE2b-256 c1d6550787563f391b2bda3dc7e719f7ef15f1ae03679d2814c77c62df7c0ba2

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7e325dd15291362c5ed327bd94de4813dd9bdfcc761b8df488a2113ebc722f6
MD5 781b9363bf94b244a3d175a6ab7dec1f
BLAKE2b-256 d9070b17d1692d9362467c10f9ff457ea873d0bce9d9c8f6b13b3dd2c668fad4

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.8-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 414cc89f6e4e282737bf2026f2b2e82fce8637d768781ffb14f4e67902c775f4
MD5 0820acf6cf8a65204ff06d7ae1694cd2
BLAKE2b-256 d92080b1a586f6549ebcda3272a686d653fd4580e31760d9c4e6ff29091205f5

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 Sentry Error logging StatusPage Status page