Skip to main content

cabledyn: Python tools for CableDyn

cabledyn is for engineers who script CableDyn analyses. It runs the standalone solver, reads and post-processes results, validates and edits input decks, runs parameter studies, and couples to the solver in-process through the C interface. The full reference is the Python chapter of the CableDyn manual.

Install

From PyPI (Python 3.10 or newer; NumPy is the only required dependency):

py -m pip install cabledyn
py -m pip install "cabledyn[post]"   # adds pandas and matplotlib

The wheels for Windows x64, Linux x86-64 (both for processors with AVX2) and macOS on Apple silicon carry the solver: the CableDyn shared library for the in-process CableDyn class and the standalone driver that CableDynDriver and cabledyn-run run. On another platform pip builds from the source distribution, which needs a Fortran compiler and LAPACK.

The pure Python wheel attached to each GitHub release (cabledyn-0.4.3-py3-none-any.whl) carries no solver. CableDynDriver finds the driver from an explicit path, then the CABLEDYN_DRIVER environment variable, then the driver inside the package, then PATH; the in-process CableDyn class uses the library inside the package, or one named by CABLEDYN_LIBRARY or found in a source checkout's build tree.

Components

Component Purpose
CableDynDriver, cabledyn-run Run a deck, check completion, and read the output tables
read_output, read_openfast_output, read_moordyn_output, read_moordyn_line, read_coupled_run, read_table Read CableDyn, OpenFAST (text and binary), and MoorDyn results
TimeHistory, cabledyn-post Statistics, plots, spectra, coherence, rainflow fatigue, and CSV/TSV export
compare_histories, resample, fft_filter, block_maxima, fit_gumbel, fit_weibull, line_geometry Run comparison, signal processing, extreme values, and line geometry
DeckFile, DeckWriter, cabledyn-deck Validate, edit, and write decks, preserving comments and formatting
generate_deck_cases, parameter_grid, run_study, cabledyn-study Generate and run parameter studies with hashed manifests
CableDyn In-process coupling through the C interface

Example

from cabledyn import CableDynDriver

driver = CableDynDriver(r"C:\CableDyn\CableDyn_driver.exe")
result = driver.run("model.dat", "results/baseline", timeout=600)

history = result.read_main()
print(history.statistics("FairTen1")[0])

fatigue = history.fatigue("FairTen1", start=600.0, stop=4200.0,
                          wohler_exponent=3.0, reference_frequency=1.0, bins=32)
print(fatigue.damage_equivalent_range)

profile = result.read_static()
profile.plot("Curvature", line_id=1)

A returned result is always a converged analysis: a failed solver step, timeout, missing output, or malformed or non-finite data raises a typed exception. Existing results are kept unless overwrite=True, and then restored if the new run fails.

Run a generated study from the command line:

cabledyn-study generated\cases.json --executable C:\CableDyn\CableDyn_driver.exe `
  --output-directory generated\results --jobs 4 --channel FairTen1 --start 600 --stop 4200

cabledyn-study exits 1 if any case failed, 2 for an invalid manifest or unsafe destination, and 3 if the cases ran but study.json or summary.csv could not be written.

Documentation

Licensed under the Apache License 2.0.

Metadata

Release files for cabledyn 0.4.3

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

Source distribution (sdist)

Source distribution for cabledyn 0.4.3
File Size Uploaded Provenance Actions
cabledyn-0.4.3.tar.gz 4.1 MB With provenance Details for cabledyn-0.4.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cabledyn 0.4.3
File Interpreter ABI Platform Actions
cabledyn-0.4.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cabledyn-0.4.3-py3-none-win_amd64.whl
cabledyn-0.4.3-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for cabledyn-0.4.3-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
cabledyn-0.4.3-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for cabledyn-0.4.3-py3-none-macosx_15_0_arm64.whl

Total release size: 67.4 MB

Release files / cabledyn-0.4.3.tar.gz

Download URL cabledyn-0.4.3.tar.gz
Size 4.1 MB
Tags Source
SHA-256 checksum
How to use checksums
62d6d9928cd7839525a55e534f0bb7501729f5c4924d91019f43a9f0b7059262
BLAKE2b-256 checksum
How to use checksums
88ccddd4045d3dff60b6ca1a5475c365e1d7dfd705c69def32e43be38a2105c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 21, 2026.

Transparency log

Release files / cabledyn-0.4.3-py3-none-win_amd64.whl

Download URL cabledyn-0.4.3-py3-none-win_amd64.whl
Size 8.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c3760b26922e54cdfbe9067863b730269cac562232149248dbab48041a85e098
BLAKE2b-256 checksum
How to use checksums
14758377290303e51858f5794a19d2e111c5fc95b3e236c43c4539bfa8a34d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 21, 2026.

Transparency log

Release files / cabledyn-0.4.3-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL cabledyn-0.4.3-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 29.6 MB
Tags Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f2c6d72e1396d2768e478f042d1d0d5a07aee3b3089e4504370e1cb76d9c686d
BLAKE2b-256 checksum
How to use checksums
8da6553953b22a2cfc3ad4ba98646906955e559bcb18e221665b840edc8d9283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 21, 2026.

Transparency log

Release files / cabledyn-0.4.3-py3-none-macosx_15_0_arm64.whl

Download URL cabledyn-0.4.3-py3-none-macosx_15_0_arm64.whl
Size 25.6 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
76bb57ef5d6b68a5a647cd015196f3196eef50d58ade764fc1a1269d8129d97b
BLAKE2b-256 checksum
How to use checksums
58eb379cf0a7db046a6be4fd8f6f051e89a1667ef01661227ad81f77b18f3a38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 21, 2026.

Transparency log

Security for cabledyn 0.4.3

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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for cabledyn-0.4.3.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 Nov 21, 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