PyLD
Ladder Logic Diagrams written in Python.
Installation
Install with pip:
pip install py-ladder-diagram
Usage
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
# █─────┤ ├────┤/├────( )
# █
Metadata
Release files for py-ladder-diagram 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_ladder_diagram-0.0.1.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_ladder_diagram-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / py_ladder_diagram-0.0.1.tar.gz
| Download URL | py_ladder_diagram-0.0.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f8280e1285de8aa1b81911d3e2dcb621f99e0479cfe32e9ecdc94907d6a938c
|
|
BLAKE2b-256 checksum How to use checksums |
07853d678f2e3041c54a2ebd552fac9f9038a55694857d85b8ba2d0f429e4ca2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / py_ladder_diagram-0.0.1-py2.py3-none-any.whl
| Download URL | py_ladder_diagram-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7a61fef09a274dcf95d94669c659ed747123c1205c4a68568fd5d8dc6555a921
|
|
BLAKE2b-256 checksum How to use checksums |
1ed0b58a367567e2d4bea9ce3c63cfd20e8e398e2e37868ed5598a131569bdf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|