semvec/pypi-packages huggingface dataset:
py-ladder-diagram 0.0.1
PyLD - Draw Ladder Diagrams Programmatically in Python.

# PyLD

Ladder Logic Diagrams written in Python.

## Installation

Install with `pip`:

```shell
pip install py-ladder-diagram
```

## Usage

```python
from pyld import Ladder, Rung
from pyld.elements import Coil, Contact, NegatedContact

Ladder(
    Rung(
        Contact("In1"),
        Contact("In2"),
        Coil("Out1"),
    ),
    Rung(
        Contact("In1"),
        NegatedContact("In2"),
        Coil("Out2"),
    )
)
# Renders:
# █
# █     In1    In2   Out1
# █─────┤ ├────┤ ├────( )
# █
# █     In1    In2   Out2
# █─────┤ ├────┤/├────( )
# █
```