Skip to main content

Package for creating simple reliability block diagrams (RBDs) using LaTeX and TikZ.

Project description

pyRBDlogo pyRBD

PyPI - Version Python Tests Coverage Pylint

A Python package for creating simple reliability block diagrams (RBDs) using LaTeX and TikZ.

Dependencies

pyRBD requires a working installation of LaTeX including TikZ and latexmk.

Simple example diagram

The blocks of the RBD are defined using Block, Series and Group, and the diagram itself is handled by the Diagram class. A simple example is given by the code

from pyrbd import Block, Diagram

start_block = Block("Start", "blue!30", parent=None)
parallel = 2 * Block("Parallel blocks", "gray", parent=start_block)
end_block = Block("End", "green!50", parent=parallel)

diagram = Diagram(
    "simple_RBD",
    blocks=[start_block, parallel, end_block],
)
diagram.write()
diagram.compile()

producing the following diagram

For more examples, visit the documentation.

Project details


Download files

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

Source Distribution

pyrbd-0.4.2.tar.gz (180.9 kB view details)

Uploaded Source

Built Distribution

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

pyrbd-0.4.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pyrbd-0.4.2.tar.gz.

File metadata

  • Download URL: pyrbd-0.4.2.tar.gz
  • Upload date:
  • Size: 180.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrbd-0.4.2.tar.gz
Algorithm Hash digest
SHA256 1440caea2893a4c557fc80bda63abc74afa7135242c3badcb7a9d079f48b1903
MD5 6d146b1b3b1d164c5398ed4809297e1c
BLAKE2b-256 0c9967757d661df96b2a5423659cb79944110ba8a7a0efb808fe7aa7dc4daafd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrbd-0.4.2.tar.gz:

Publisher: pypi_publish.yml on hghugdal/pyrbd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrbd-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: pyrbd-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrbd-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b445ff4a9898bb2b59d0b3f5f2fd9af0414cfa654d634c2eb93b74e8b27a5f3b
MD5 ce9399ebcb14c50ad243f5f236f5f3df
BLAKE2b-256 36e4dff13b553e817d1af9aee573bb941fc91cd0adf97ad1a4f0e30c31a0596f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrbd-0.4.2-py3-none-any.whl:

Publisher: pypi_publish.yml on hghugdal/pyrbd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page