Release notes¶
Changelog¶
The format follows Keep a Changelog, and versions follow Semantic Versioning. Before 1.0, any minor version may change the API. Minor versions mark milestones (such as the drawing engine); patch versions carry the work in between, including new data and functions that keep the API compatible.
Unreleased¶
Changed¶
- The splitter limits in
data/components.tomlnow cite ITU-T G.671 (11/2025), which superseded the 05/2025 edition; every value was checked and is unchanged. optical.fibersis nowoptical.media, so the copper categories can match it ascopper.media; nothing has been released under the old name.
Added¶
- A documentation site, built with Zensical for https://docs.ictdesign.tools and organised as
Django's is: getting started (overview, installation and a tutorial that plans a DWDM path),
topic guides, how-to guides, an API reference generated from the docstrings for every public
module, release notes from this changelog, and contributing notes. A Docs workflow builds
it strictly on every pull request and deploys it to GitHub Pages from
main.scripts/docs_reference.pygenerates the reference pages and navigation, and the tests fail when they are out of date or when an example in the docs stops working. network.roadm: ROADM networks.Roadmnodes (add, drop and express filter chains, with a pre-amplifier and booster),route_and_select()for the common architecture, fibreLinks by category, and aNetworkwith line degrees, shortest routes by length andpath(): filter loss and narrowed passband, fibre loss, OSNR, received power, latency, and the channel's power after every event.path_drawing()draws a path as a span diagram over a power-level chart, andto_graph()hands the network todraw.graph.- The README lists the optical modules added since 0.3.
optical.grid: WDM wavelength grids. ITU-T G.694.1 fixed DWDM grids (12.5, 25, 50 and 100 GHz from 193.1 THz) and flexible-gridSlots (centre n × 6.25 GHz, width m × 12.5 GHz), the 18 G.694.2 CWDM wavelengths, the O to U spectral bands, frequency and wavelength conversion, andcheck_plan()for overlapping slots or slots outside a band.optical.filters: a WDMFilter(mux, demux, OADM, WSS) from data-sheet values, with cascaded insertion loss, the narrowed 3 dB passband of a chain (super-Gaussian shapes),check_passband()against a signal's width, crosstalk into a dropped channel, and the ITU-T G.671 limits for a 1 × X WWDM mux/demux.optical.testinganddata/inspection.toml: acceptance criteria worked out from acabling.channels.Channel: Tier 1 loss limits per wavelength for one-, two- and three-cord references (with an optional connector grade), the OTDR events to expect (position, loss, and reflectance by return loss grade), bidirectional splice averaging, IEC 61300-3-35 end-face inspection against Tables A.1 to A.3, andacceptance()with lines for a test plan.optical.osnr: OSNR along a chain of amplifiedStages (span loss, then anAmplifierwith its noise figure and gain), from the ASE each amplifier adds in the 0.1 nm reference band, summed in linear terms with an optional transmitter OSNR; per-channel power from a total, amplifier output limits, andcheck()against an amplified interface's required OSNR with a margin.optical.interfacesanddata/interfaces.toml: transceiver interfaces with cited limits (ITU-T G.959.1 10G application codes P1S1-2D1, -2D2a, -2D2b, P1L1-2D1, -2D2, and OIF 400ZR), andassess(), which checks a planned link against one: attenuation range (or a note that an amplified interface is limited by OSNR), chromatic dispersion at each end of its wavelength range, and the chance that DGD exceeds its tolerance.optical.dispersion: chromatic dispersion and PMD along a link ofSpans, each a length of anoptical.mediacategory with optional compensation. CD adds linearly as a range from the category's bounds, PMD in quadrature, andcheck()compares both with a receiver's tolerances and gives the CD margin.optical.componentsanddata/components.toml: connector attenuation grades (B, C, D; Bm, Cm) and return loss grades (1 to 4; 2m) from IEC 61753-1, the ITU-T G.671 limits for 1×X and 2×X splitters (insertion loss range, reflectance, directivity, uniformity), andcombined_return_loss_db()for several reflections together.cabling.channels.Channel.loss(grade=...)budgets mated pairs at an attenuation grade's 97 % maximum instead of the ANSI/TIA-568.3 0.75 dB.optical.mediaanddata/fibers.toml: optical fibre categories with their published limits: ITU-T G.652.B/D, G.653.A/B, G.654.A to E, G.655.C to E, G.656, G.657.A1/A2/B3 and G.651.1, and the OM1 to OM5 multimode categories. Each gives the maximum cable attenuation by wavelength (the narrowest range that holds it), dispersion bounds (from the bounding curves, or from the zero-dispersion wavelength and slope), the PMD link design value and how it grows with length, mode field diameter, cable cut-off, macrobending limits and multimode bandwidth.fiber()reads names written any common way (G.652.D,g652d,OM4), andfor_bend_radius()lists the categories rated for a bend.optical.budget.LossInput(fiber=...)takes the attenuation coefficient from a fibre category at the link's wavelength.cabling.channels.Channel.polarity(): a channel of array trunks, cassettes, adapters and duplex cords ascabling.polarityparts, with its TIA-568.3-E method named.problems()adds what that finds (transmit meeting transmit, pins, APC in key-up to key-up adapters), andchannel_drawing()labels array trunks with the descriptor, such asU1 / Type-B / KU-KD / M-M. Cassettes indata/joins.tomlcarry their rear adapter's keying: Type-A cassettes key-up to key-up (method B), U1 key-up to key-down.cabling.channels: whole cable channels, equipment port to equipment port. AChannelisEquipmentports, cableAssemblys,Bulkcable (bare fiber or pigtail ends, for splicing) andParts from the join library, each optionally in a patch panel named by its TIA-606 identifier; cassettes turn round to suit the plugs that enter them.problems()finds plugs meeting plugs, sockets meeting sockets, connectors that do not fit, more plugs than ports, APC meeting UPC in an adapter, and splices not between bare fiber.loss()budgets fiber, mated pairs, splices and splitters with the ANSI/TIA-568.3 maxima.channel_drawing()draws parts and plugs at 1:1 and cable lengths to scale, winds runs overcoil_over_minto a coil marked with the length, gives each part an optional dimension line (dims) and the channel's total length, and can add the loss table.parts.joinsanddata/joins.toml: adapters (LC, SC, SN, MPO and MMC in key-up to key-down or key-up to key-up, RJ45 coupler), MPO-to-LC cassettes (Type-A and U1 transitions), PLC splitters 1:2 to 1:32, and fusion (40 and 60 mm sleeves) and mechanical splices, each with a side view, the mated pairs and splices it adds, and its sources.cabling.polarity: array polarity as TIA-568.3-E builds it.method()makes a duplex channel by method A, B, C, U1 or U2 from its trunk, adapters (key-up to key-down or key-up to key-up), fiber transitions (Type-A, U1, U2) and duplex cords. AChannelof any parts traces each lane end to end and reports transmit landing on transmit (duplex or parallel), pinned meeting pinned or unpinned meeting unpinned, APC meeting flat plugs, and APC plugs in key-up to key-up adapters.descriptor()gives a line for badges, such asU1 / Type-B / KU-KD / M-M / APC.identifiers: names for spaces, racks, panels, ports, cables and patch cords in the ANSI/TIA-606 forms (1DC.AD02-35:01, near/far for cables, near\far for cords), with campus and building prefixes, port ranges and sub-panels. Each parses back from its string unchanged.panel_unit()andpanel_of()name a panel by its top-most unit counted from the bottom of the rack (or by the rails' own numbers in a rack numbered top-down), andcheck_class()says what an administration class 3 or 4 identifier lacks.parts.plugs: detailed connector plugs for drawings where detail earns its place. Each plug indata/plugs.toml(LC, SC, SN, MPO, MMC, RJ45 and F) has a side view (plug_side) and a mating-face view (plug_face) as engine components. Faces look as a person sees them: the coloured housing with its opening shaded and the latch or key end on, white ferrules with cladding and core, an MT ferrule's dark face with fibers as light points numbered from 1 (unused places faint; an MPO-8 uses the outer four of each side), steel guide pins or dark holes, an RJ45's gold contacts in their slots with pin 1, and an F connector's hex nut. Side views have ribbed boots. Housings take the TIA-568 connector colours (tone_fora NetBox cable type and polish). Ferrule, pitch and contact sizes cite their sources; plug bodies are proportions for drawing and each row lists them underschematic.catalogue()draws every plug for review.draw.route.s_curve: a smooth S between two points, leaving and arriving level, for cable legs and bundles.draw.route: orthogonal connector routing in pure Python.orthogonal()finds the shortest route of horizontal and vertical runs around boxes, with a cost per bend, by A* over a sparse grid of the boxes' sides and any channel lines given;nudge()spreads parallel runs that share a linespacingapart, keeping each route's ends in place.cabling.crossconnect:cross_connect(plant, racks, face)draws rack elevations in a row with every cable between ports on that face routed through the channels between racks and over their tops, dropping from each port to the unit line below it, with parallel runs spread apart. Cables are coloured by their NetBox colour (else by cable type), titled with what they are, and carry aMetaof kindcablefor interactive drawings; cables with an end not on the face are listed in the description.cabling.connections: cables between ports, as NetBox models them.Cablehas NetBox'sa_terminationsandb_terminations(front or rear ports, by device and port name),type,status,label,color,lengthandlength_unit, and optionally theAssemblyit is built from. APlantholds devices by name (orPlant.from_racks) and their cables.problems()finds unknown devices and ports, ports cabled twice, plugs that do not fit a port (including NetBox's polished types such aslc-apc), and connector counts or positions that differ from the ports'.trace()follows one lane across cables and through each device's front-to-rear port mappings, as NetBox's cable trace does, andduplex()says whether a duplex channel crosses so transmit meets receive.cabling.assemblies: cable assemblies (patch cords, trunks and breakouts) modelled as NetBox models cables.Assemblycarries NetBox's cable fields (type,length,length_unit,label,color) and a NetBox 4.5 cableProfile(single-1c12p,trunk-2c1p,breakout-1c8p-8c1p; shuffle profiles are refused for now), its two ends (connector, polish and pins), breakout legs and TIA-568 polarity (type A, B or C).lanes()maps each lane from end A to end B, connector and position, so paths can be traced lane by lane.specgives spec sheet rows,bombill of materials lines, andassembly_drawinga side view with the lane map. Generic assemblies come fromdata/assemblies.toml, each citing its source.cabling.connectors: connector footprints fromdata/connectors.toml(RJ45 keystone, LC, SC, SN, MPO, MMC and F, each with its panel cutout, a cited source and its NetBox port type) as engine components, one SVG<use>target and one DXF block per connector. A port is a NetBox port, one connector: each LC is its own port, two to a duplex adapter drawn once; MMC, which NetBox has no type for, isotherwith the footprint named.panel_layoutplaces ports on a panel face in rows and groups of six, centred in the rack opening, and says when they do not fit;patch_panelbuilds a panel face from its parameters (the same parameters give the same component, so a 24-port and a 48-port panel come from one function);panel_drawingdraws one on its own.spaces.racks: device types take NetBox front and rear port templates (PortTemplate: a NetBox port type, a count, positions and a name pattern), loaded fromracks.tomlfor the generic patch panels and fiber enclosures (48 LC to four MPO-12 in 1U).port_mapandDeviceType.port_mappingspass front port positions through to rear port positions in order, as NetBox assigns them, and a device type whose positions differ is refused.elevation(ports=True)draws each device's ports on its face, each with aMetaof kindport(iddevice-<i>-<front|rear>-port-<name>, with the device, port name, type and side), and moves the label left of the ports.drawinteractive script: a small tooltip with the part's title and data on hover and focus, in place of the browser's title text (data-draw-tooltip="off"keeps the browser's), styled by.draw-tooltipininteractive_css().draw.graph: network topologies.topology()draws a graph from networkx (read by duck typing; networkx is never imported), node-link JSON (edgesor the olderlinks) or the newGraph, with nodes and edges styled by an attribute (role,media) in colours that follow in turn, labels from templates ("{speed} · {length_m} m"), a generated legend and aMetacarrying each node's and edge's attributes for the interactive script.- Layouts:
layered()puts nodes in rows by an attribute (tier, or a dict of layer → nodes asnetworkx.multipartite_layouttakes) and orders each row to reduce crossings;tree()spreads a point-to-multipoint network such as GPON from its root; or any networkxpos. - Edge routing: orthogonal, with each parent's drops sharing a bus and overlapping buses in
separate lanes, for trees and sparse layered graphs; straight for meshes such as a Clos
fabric (
routing="auto"picks). Parallel edges merge with a count; directed edges get arrowheads. Route: node paths (asnx.shortest_pathreturns) or edge lists drawn over the graph, each in its own colour, withMetakindroute, e.g. ECMP paths or working and protection; routes that share an edge are drawn side by side.network.pon:gpon()builds a split plan (OLT, splitter stages, ONTs, fibre lengths) as a graph;ont_losses()works out every ONT's link attenuation withoptical.budget(fibre, splices, connectors, splitters on the path, cable margin) against a PON class's attenuation range, and writesloss_db,margin_dbandpasseson the ONT nodes for drawing.network.clos:leaf_spine()builds a two-tier fabric (with parallel uplinks and servers);fabric_report()gives each leaf's capacity, oversubscription, ECMP path count and the leaf-to-spine bisection capacity.cabling.splices: fiber splice plans and diagrams.FiberCableandstrandgive each fiber's buffer tube, colour and stripe by the TIA-598 colour code (fibers and tubes past 12 take black, orange and green stripes; black takes yellow).SplicePlan.joinsplices runs of fibers from A-side to B-side cables into tray slots, filling each tray in turn;checkfinds fibers spliced twice or out of range, unknown cables and trays over capacity;scheduleandschedule_csvgive the splice schedule; andsplice_diagramdraws the plan as a sheet following the Splice.me proposal for a splice diagram standard: a centred title block, A and B cable faces in two upright columns with tubes, fibers and tray·slot in black and white, nothing but the splices between them (level at each face, two bends at most), one pitch throughout, and splices coloured by destination cable rather than by the fiber colour code. Spare fibers are listed on request, and each splice hasMetafor the interactive script.data/fiber_colors.toml: the TIA-598 fiber and tube colours and stripes.cabling.splices.Splitter: splitters as equipment on a splice sheet, drawn in a column like a cable (Splice.me rule 4.4) with their inputs and outputs in place of tubes. Ports take the colour code;input(k)andoutput(k)give port numbers forjoin, andloss_dbgives a 1×N PLC splitter's typical loss fromoptical.budget.checkalso finds splices that run from the wrong side. Splices are now coloured by the pair of items they join.cabling.splices.bedsheet: every sheet of a network on one drawing (rules 5.1–5.4), each on a portrait A4 or Letter page (larger, the same for every cell, where a sheet doesn't fit), on a grid read left to right and top to bottom from the top-left. Splice ids are prefixed with the sheet number (splice_diagram(id_prefix=...)) so they stay unique.
Changed¶
cabling.assemblies.assembly_drawingdraws detailed plugs at 1:1 by default, with each end's mating face enlarged, and breakout legs curving out of a furcation sleeve;detail="simple"keeps the plain bodies and panel footprints.
Removed¶
- The empty
locationsandprojectspackages:projects.management.Sitedeclared no field (name = str). Project planning returns as a designed module.
0.3.2 (unreleased)¶
Added¶
spaces.racks: racks and cabinets and the equipment in them, modelled on NetBox DCIM (RackType,DeviceType,Role, andDeviceat apositionandface, with NetBox's field names) so a design maps onto NetBox without translation. Whole and half units, top-down numbering and unracked (0U) devices.spaces.racks.check: positions off the rails, overlaps on a face (a full-depth device takes both), units used and the longest free run on each face, equipment weight against the rack's rating, planned and maximum power against a budget, and airflow running against the rest of the rack (a warning).spaces.racks.elevation: front and rear elevations as an engine drawing, with unit numbers, devices coloured by role and labelled to fit, full-depth devices shown from behind, problems outlined, andMetaon each device for the interactive script.data/racks.toml: generic racks, cabinets and equipment (patch panels, fiber enclosures, cable managers, shelves, switches, servers, a UPS, a PDU) and roles with colours.
Changed¶
- The library is licensed under the Apache License 2.0 (with a NOTICE file) instead of MIT, in line with NetBox. Versions 0.3.1 and earlier remain available under MIT.
0.3.1 (2026-12-06)¶
Added¶
draw.to_svg(classes=True): every shape with a named style also gets the class<class_prefix><name>(defaultd-), so a page's stylesheet can theme a drawing, e.g. for dark mode, over the colours written as attributes;Ringtakes astylefor this.draw.to_svg(interactive=True)anddraw.interactive_script()/interactive_css(): a small dependency-free script, shipped in the package, that makes parts with aMetaid hoverable, focusable and selectable (a bubblingdraw:selectevent with the part's id, kind and data), links them to page elements markeddata-draw-ref="<id>"both ways, and withdata-draw-zoomadds wheel zoom, drag to pan and double-click to reset. No inline code, so it runs under a strict Content-Security-Policy.Hatch(outline=True)keeps a hatched shape's boundary in the DXF, e.g. so CAD can snap to a bar's centre.
0.3.0 (2026-12-05)¶
Added¶
ictdesigntools.draw, a drawing engine shared by the tools (#25): shapes (Rect,Circle,Ring,Polygon,Polyline,Arc,Linewith arrowheads,Text,Dim,Earth) in millimetres by default with y down;Groupwith affineTransforms;Componentdrawn once and placed withUse; namedStyles withthemeoverrides and CADHatches;Meta(id, kind, data) for interactive pages;Drawing.bounds()and.fit(). Outputs:to_svgandsvg_filewith the standard library (components as<defs>/<use>, meta asdata-attributes, no inline styles);draw.pdf(reportlab) anddraw.dxf(ezdxf, components as blocks, native dimensions and hatches) as the optional extras[pdf]and[dxf].draw.textestimates Helvetica widths to fit, truncate and wrap labels;draw.layouthas grids, stacks, rack units (EIA/ECA-310) and convex outlines around circles.microtrench.MICRO_CABLES: typical micro cables (fiber count, OD, weight, installation tension) from AFL MicroCore (PP-1-00136 rev. 15) and OFS MiDia Micro GX (osp-166) data sheets, indata/micro_cables.toml;MicroCable.of(product, way, cable_type), andMicroCable.cable_type,.name,.weight_kg_per_mand.max_tension_n.TrenchResult.microduct_fills: every MicroDuct with its cable or as a spare, andJettingCheck.area_ratio(fill by area);TrenchResult.cable_linesitemises the cables by kind, withfibers_totalandspares.
0.2.0 (2026-12-05)¶
Added¶
- FuturePath Flex in 2-, 4- and 6-way (12.7/10 and 18/14 mm) and 8-way (12.7/10 mm), from the Dura-Line Flex brochure (#15).
ictdesigntools.data: product and reference data as TOML files in the package, one per family (cables,nema_ve1,depth,duraline), written as published with the unit in each key and asourceon every row;data.load,data.rowsanddata.value. The cable types, NEMA load classes, burial depths and Dura-Line products now load from them (values unchanged). No new dependency:tomllibis in the standard library.pathways.pull: bends take an optional radius (Section.bend(90, radius_m=0.6)) and are checked for sidewall bearing pressure (one cable, two, three cradled, or a group) and the cables' least bend radius while pulled;PullResult.bend_checks(),.utilisation,.governing(pulling tension, sidewall pressure or bend radius) and.passes_all.PullSummary.passesnow covers all three limits.CableLineandCableType: optionalmin_bend_radius_mmandmax_swbp_n_per_m.- Cable tray pulls:
Section.rollers(a straight on support rollers with its own friction, 0.15 to start) andSection.sheave(a bend through free-turning sheaves that adds a fixed tension instead of multiplying it, with its radius checked for sidewall pressure), per Polywater's Pull-Planner guidance.tray.calculateandcalculate_lanestakerun=and pull each lane;pull(..., inner_mm=None)is an open tray (no weight correction or jam ratio). - Tray load at the support span:
tray.LoadInput(support span, default 12 ft; a NEMA VE 1 load/span class fromLOAD_CLASSES, 8A–20C, or a manufacturer's working load at its published span; optional tray weight) passed asload=. A rating applies at its span or shorter; at a longer span it is reduced by the square of the spans andresult.load_extrapolatedis set.result.support_load_kgadds the tray's weight.rating_at_span(). - Duct bank:
DEPTH_REQUIREMENTS(NEC Table 300.5 rigid metal 6 in, nonmetallic 18 in, under roadways 24 in, and a typical owner's standard) chosen withDuctBankInput.depth_requirement;inp.required_depth_mmandinp.depth_sourcename the basis.result.spareslists conduits with no cables. - Microtrench cover:
COVER_REQUIREMENTS(examples from published standards: 12 in under asphalt roadway per LA County 1050-0 and San Diego SDG-165, 55 mm per City of Toronto) chosen withTrenchInput.cover_requirement;inp.required_cover_mm,inp.cover_source,result.bottom_of_trench_mm. - Microtrench cables:
MicroCable(product, way, od_mm, label, fibers)inTrenchInput.cables, one per MicroDuct;result.jettingchecks cable OD / MicroDuct ID against Dura-Line's 50–75% jetting fill ratio, and the issues say which way to resize.Product.microducts. - Cable type
fiber-osp: loose tube outside plant fiber, 6–72 fibers (Corning ALTOS data).
0.1.0 (2026-12-05)¶
The pathway modules are metric-native and take typed values only; URL formats and form handling moved to the website. This changes their API throughout.
Added¶
units: exact conversion factors and helpers between metric and imperial.pathways.sizes: conduit trade sizes keyed by metric designator (27 is trade size 1).CableLine.ofandCableLine.custom;SubductSpec.presetandSubductSpec.custom;Section.straight,.bend,.upand.down;microtrench.Product.make.- Validation in the dataclasses' constructors, so invalid values raise
FillErrorwherever they come from. network.subnet.calculatealso takes anipaddressinterface.
Changed¶
- Cables, conduit, tray, pulling, duct bank and microtrench values are in mm, mm², m, kg/m and N, with the unit in each name. Published imperial tables are converted on load.
- Conduit and duct bank sizes are metric designators; rebar sizes are A615M soft-metric designations ("13" is #4).
- Tray sizes are given as a width and depth in mm, not as a
12x4string. - Duct bank and microtrench quantities are methods that take a length in metres.
- Results no longer carry display text in inches (titles, size labels); notes that are unit-free remain.
Removed¶
- Path and form parsing:
parse_cables,parse_groups,groups_from_query,build_spec,parse_run,parse_input,form_valuesand the like,specproperties and URL keywords.
0.0.1 (2026-12-05)¶
First release, mainly to reserve the name on PyPI.
Added¶
pathways: conduit fill, cable tray fill and load, pulling tension, duct bank and microtrench layouts (from the ICT Design Tools website).cabling.cables: cable lists with presets, weights and pulling tension limits.optical.budget: optical loss and power budgets in metric units following ITU-T.optical.fiber: fibre performance classes, ITU-T fibre Recommendations and WDM bands.network.subnet,geometry.packing.