Skip to main content

ictdesigntools

Calculations and reference data for ICT design: pathways, cabling, optical links and networks. It is the engine behind the ICT Design Tools website, and it is meant to be used directly in scripts, notebooks and computational design tools.

Now published on PyPI.

Install

pip install ictdesigntools

Python 3.14 or later. No runtime dependencies. Drawings can also be written as PDF or DXF with the optional extras: pip install ictdesigntools[pdf,dxf] (reportlab and ezdxf).

Use

from ictdesigntools.cabling.cables import CableLine
from ictdesigntools.pathways import conduit

cables = [CableLine.of("cat6a", 12), CableLine.custom(7.1, 3)]  # outside diameter in mm
result = conduit.calculate("emt", 53, cables)  # metric designator 53 is trade size 2
print(f"{result.fill_pct:.1f}% of {result.limit_pct:.0f}% allowed")

The library is metric-native: values are in mm, mm², m, kg/m and N, and every name carries its unit (od_mm, weight_kg_per_m). Conduit sizes are metric designators. Imperial values are a translation layer: ictdesigntools.units has the exact conversion factors, and tables published in imperial units are converted when they load, with the published figures kept in the source.

Module What it does Sources
pathways.conduit Conduit fill NEC Chapter 9, Tables 1 and 4
pathways.pull Cable pulling tension along a run Capstan equation, IEEE 1185 practice
pathways.tray Cable tray fill and load NEC 392.22(A), TIA-569 / BICSI practice
pathways.ductbank Concrete-encased duct bank layout ASTM F512, NEMA TC 2, TC 6/8
pathways.microtrench Microduct and FuturePath layout in a microtrench Dura-Line data sheets
cabling.cables Cable types, cable lines, weights and tension limits Manufacturer typicals
optical.fiber Fibre performance classes, ITU-T recommendations, WDM bands IEC 60793, ITU-T G.65x
optical.budget Optical loss and power budgets ITU-T G.957, G.959.1, G.984.2, G.Sup39
units Exact metric and imperial conversions
network.subnet IPv4 and IPv6 subnets Python ipaddress
geometry.packing Circle packing for cable cross-sections
draw Drawings described once and written as SVG, PDF (extra) or DXF (extra) EIA/ECA-310 rack units

Drawings

draw describes a drawing once, in millimetres with y down as in SVG, and writes it out as SVG (standard library only), PDF or DXF. Groups move, turn or scale shapes together; a component is drawn once and placed many times (SVG <use>, DXF blocks); named styles and themes keep colours and line weights in one place; Meta marks parts with an id, a kind and data, which the SVG carries as data- attributes for interactive pages.

from ictdesigntools.draw import Component, Drawing, Meta, Rect, Circle, Use, to_svg, translate
from ictdesigntools.draw.dxf import to_dxf  # needs ictdesigntools[dxf]

jack = Component("jack", (Rect(0, 0, 10, 8, stroke="#000", rx=1.5), Circle(5, 4, 2, fill="#333")))
panel = Drawing(title="6-port panel").add(
    Rect(0, 0, 80, 18, stroke="#000"),
    *[Use(jack, translate(4 + 12.5 * i, 5), meta=Meta.of(id=f"P{i + 1}", kind="port"))
      for i in range(6)],
).fit(2)
svg = to_svg(panel)  # <use href="#c-jack" … data-id="P1" data-kind="port"/>
dxf = to_dxf(panel)  # a "jack" block inserted six times

The notebooks in notebooks/ derive the formulas with SymPy and are the start of the reference material for each tool.

Develop

uv sync
uv run pytest
uv run ruff check src tests
uv build && uv run twine check dist/*   # builds only; nothing is uploaded

Metadata

Release files for ictdesigntools 0.3.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 ictdesigntools 0.3.0
File Size Uploaded Provenance Actions
ictdesigntools-0.3.0.tar.gz 66.4 kB With provenance Details for ictdesigntools-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ictdesigntools 0.3.0
File Interpreter ABI Platform Actions
ictdesigntools-0.3.0-py3-none-any.whl Python 3 none any Details for ictdesigntools-0.3.0-py3-none-any.whl

Total release size: 146.5 kB

Release files / ictdesigntools-0.3.0.tar.gz

Download URL ictdesigntools-0.3.0.tar.gz
Size 66.4 kB
Tags Source
SHA-256 checksum
How to use checksums
00c5d8724a5d6d59169779b35eca788473deb0443c1e2ba8649e4cb832b1fd9a
BLAKE2b-256 checksum
How to use checksums
2ba1252d27d08bf79e4a3f607d3856f66e46c2fa6179a40090afe947581da200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Release files / ictdesigntools-0.3.0-py3-none-any.whl

Download URL ictdesigntools-0.3.0-py3-none-any.whl
Size 80.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc6a3e057ad325da1bf8dc9b56af0edd206b4c15c313636b625bff5dd1a958c1
BLAKE2b-256 checksum
How to use checksums
873ffbc1bbdf650f2a65ea56eb735dbc34a383c3f2eed8143f79d5e0ba6d27f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Security for ictdesigntools 0.3.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ictdesigntools-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

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.

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