PyLD - Draw Ladder Diagrams Programmatically in Python.
Project description
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
# █─────┤ ├────┤/├────( )
# █
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file py_ladder_diagram-0.0.1.tar.gz
.
File metadata
- Download URL: py_ladder_diagram-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f8280e1285de8aa1b81911d3e2dcb621f99e0479cfe32e9ecdc94907d6a938c |
|
MD5 | 10eea2992be110f7e1204e7d55290caa |
|
BLAKE2b-256 | 07853d678f2e3041c54a2ebd552fac9f9038a55694857d85b8ba2d0f429e4ca2 |
File details
Details for the file py_ladder_diagram-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: py_ladder_diagram-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a61fef09a274dcf95d94669c659ed747123c1205c4a68568fd5d8dc6555a921 |
|
MD5 | 58cde8209cf4b44e64a1f4fe9dd181b6 |
|
BLAKE2b-256 | 1ed0b58a367567e2d4bea9ce3c63cfd20e8e398e2e37868ed5598a131569bdf9 |