Skip to main content

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

Project description

pyRBDlogo pyRBD

Python PyPI - Version 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.2.5.tar.gz (147.7 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.2.5-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyrbd-0.2.5.tar.gz
Algorithm Hash digest
SHA256 a504a71cfc2e0c5f8948be553ea27d1e3793136af384c1bd7f2d225a6a3a087c
MD5 f49b81a40cb754396138c57248801f5b
BLAKE2b-256 92cdd1ad14365e073c151e7ccb206464a42b1476c6fec9fcfabb687783bd8e48

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrbd-0.2.5.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.2.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pyrbd-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0deabf5c92d0f2601f0568bab2debb66da636f106b92c6855de03679e0ed6fdd
MD5 00a645075050c1d20214c6a422ca51c3
BLAKE2b-256 9985e4f82fd1c7522ea0ae9985a7f4be38f5f47baa4af9eaca6c8d6cbfdc686e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrbd-0.2.5-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