Skip to main content

A Pythonic Ladder Logic Framework

Project description

Pyrung

A Python DSL (Domain Specific Language) for representing and simulating Ladder Logic. Pyrung provides a Pythonic way to write PLC programs for simulation, testing, and documentation purposes.

Status

PLANNING ONLY * INITIAL COMMIT

Goals

  • Provide a readable, Pythonic syntax for ladder logic
  • Enable simulation and testing of PLC programs without physical hardware
  • Support documentation and validation of PLC logic

Quick Example

from pyrung import *

Button = Bool("Button")
Light = Bool("Light")

with Program() as logic:
    with Rung(Button):
        out(Light)

runner = PLCRunner(logic)
runner.set_time_mode(TimeMode.FIXED_STEP, dt=0.1)
runner.patch({"Button": True})
runner.step()

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

pyrung-0.0.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

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

pyrung-0.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pyrung-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for pyrung-0.0.1.tar.gz
Algorithm Hash digest
SHA256 45a076d7105f0a1e20d0464c48e038cbeb245dda659aa3c038c7c92fda64a469
MD5 50a16e914b6a01ac6482755bfd6fdf06
BLAKE2b-256 dbf69fa149313910c492f880697f8bb1a61148bd5af8aef1d508d1b5dbaae02d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrung-0.0.1.tar.gz:

Publisher: publish.yml on ssweber/pyrung

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

File details

Details for the file pyrung-0.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pyrung-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c26da1b3b9ec0139952d336e8688c39dc659910f3e278e9503382556c488864
MD5 518b41c7e3a52204d6a94f8baf849935
BLAKE2b-256 bca51c8f2a637bd24991b88901f9d9d36a8f65ee214c02a7dc97865d1d3681cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrung-0.0.1-py3-none-any.whl:

Publisher: publish.yml on ssweber/pyrung

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