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.7-cp313-cp313-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.13Windows x86-64

pyd2lang_native-0.1.7-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.7-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.7-cp313-cp313-macosx_11_0_arm64.whl (9.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

pyd2lang_native-0.1.7-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.7-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.7-cp312-cp312-macosx_11_0_arm64.whl (9.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pyd2lang_native-0.1.7-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.7-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.7-cp311-cp311-macosx_11_0_arm64.whl (9.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pyd2lang_native-0.1.7-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.7-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.7-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.7-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 16bf5d75ff9ea19e4781682846bbe78b3d102d7875deb2bf4b1efa5a872ed44c
MD5 3e84b62616431e167898bb3b152b9314
BLAKE2b-256 ec0fe9cd8e14962b9ef5b235c419166b8c0e497e5933dea728ece051aa34a3b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f73f0455a877eb0ee0b69e70918fe41f3ff47e8d9b3e335bb50533e7c76485fa
MD5 d6e60ec4b164e5e2931cbf1c67e0330a
BLAKE2b-256 8907a4c4e92636267516f0ef1257a688695c2e175de47b56cc6dff9f3cc6e88a

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.7-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.7-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0cb03b7b006ea71153b73caf106900807e92a86e22c4587f75f165acdf913bcb
MD5 4a2da58fe3e431a6c9b961bacb594dac
BLAKE2b-256 607238d7e88e139179f50f4eef036d8cb216d315212e16c15846550e1e824f2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6524bc0a0e0f86e5f7125ab44c03b4152852bc57e213f6babc00ab6d3434c1c6
MD5 9e114d3921f9397ef9d15d33d061f2c2
BLAKE2b-256 19db3c334cbfc9c63e86fb8757cd1ebe9686dbb961e2989badee05ab5897c3d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cbbdbe088284c9b0de6f5e2f13193596a5af56f0989ac8341966b58e232efd51
MD5 8fb67af4b0aeda13245965ee8ceba4dd
BLAKE2b-256 7ca4f1379f80c56eef88535056e8065edd7a45bc846351e0740464ec14d00b45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6f8a2f7765afbc99b84f9d90d437b10eae6c6a1ee174216abff7bb3fd3f78610
MD5 10f3ea9c8c74279abd48eff0fa92651f
BLAKE2b-256 faface2eb4ab31eb18bcb550c41dea27aa96e102719a33c5640c672e7d18b5bd

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.7-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.7-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 860332951fb0d8d2bebc12107956457b1dc9f9adb1f8a496f583ee4de8b931cb
MD5 e26e63ae8790236e362e9b4e298393ee
BLAKE2b-256 2b8eebe71136908ca9160b7ae8df0939364d9c813964f08c821e28045191a910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7a439ac52e7bd4369aa4603fc994ff1d4ce8ee703d379a1cf9972f13c110564
MD5 b4a3f38e74868e64ecfedacd5be5e0e3
BLAKE2b-256 914aa3ac1b73325e828886a3a1a5b98a862a89cef12ecee2b5f524d4fba4c0a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 817af447a4a30b2f808515b4cc4480a3c1ca30b677daf3b8b82c95314be12bd3
MD5 6998cce1acc84171520e574a8b7d8af9
BLAKE2b-256 961fda94108fc1e66a2de326c3b12f4711a3d4edc3ba9bc742b57ae5708a35b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 31538f441ea5168da4c7da23ef73d71443135f55b486678b54c7ea7cfb10db40
MD5 6021d821dc57b438c0113728945e4679
BLAKE2b-256 7eebf19293355886961a8bd1f18e9ac50f9a8fb7555bf6c768ca37ba80fc7e60

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.7-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.7-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf31d3f2e60f303477b1c0a35eae7231571032b2474a35ad6f2854c4cb26a522
MD5 827bf035db846d499ea4fed814ddc3a5
BLAKE2b-256 836d1a69ada4c284aa95d5177554e14266e5a1d305b48738318425493fcbacac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55e90e0bd43405d7c3fd4e6bb7030addaa4a4b46ad71b2220346998e1850390d
MD5 4e75583f720decafbfa45cde0ad94739
BLAKE2b-256 d6537a884b658203c97fc9d26bd51cbb8daa5d41a2dbc65a89879820310175cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8dc4be20e7481a53e774c63d07d68247502cb50c866f8f35064be961174ecd9b
MD5 e960619600a13ad717acf771afcec05b
BLAKE2b-256 2eff9f2af44b2096f5a754a617ed5ea7a067fbdc27449abdba19334c6de206ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0e85ca22413e9e6187efb10b5d3b7527294b450d9ae0db4616471e6c0bf9ba7d
MD5 b6319a7b575751a7e7a8011779dab72b
BLAKE2b-256 3a9fe059f66e36cbe50d81ee61c2963a7bc352c5e2f6256fe725251c924050e0

See more details on using hashes here.

File details

Details for the file pyd2lang_native-0.1.7-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.7-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0196b04e84bcc02e0f782081045ae5ee654663d977635fe232c89732a01d8b8c
MD5 0da5464945340fb4f89a306cdd3510bf
BLAKE2b-256 f153659a1b397a369ac5b50108efcfff9a27b446bc026986abd93040da3c69e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyd2lang_native-0.1.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f15477a6e5d30c6a9a2d7bdd80febe1332ec0793c77220fc5fd95e407107dd6
MD5 fe252e5a32c99f274e57ad362c28a927
BLAKE2b-256 8be336eee734823e53ebddf154caf554acb134b133bdd5e745d0565fbe4b6422

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