معرفی شرکت ها


controlpyweb-0.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A project to facilitate easy read/write to the ControlByWeb line of Automation/SCADA IO products.
ویژگی مقدار
سیستم عامل -
نام فایل controlpyweb-0.1.0
نام controlpyweb
نسخه کتابخانه 0.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Steve Jackson
ایمیل نویسنده washad@gmail.com
آدرس صفحه اصلی https://github.com/washad/ControlPyWeb
آدرس اینترنتی https://pypi.org/project/controlpyweb/
مجوز -
# ControlPyWeb A project to facilitate easy read/write to the ControlByWeb line of Automation/SCADA IO products. ## Description Xytronic Research makes a handy line of remote IO products useful for home and industrial automation. Interacting with these modules generally requires the use of a url library such as requests, and then requires dissecting the response to be dissected and processed. While not terribly difficult to do, it is repetitive. This module seeks to abstract out some of that effort in a thought out and tested way. ## Installation pip install controlpyweb ## Usage The basis of functionality is the WebIOModule class. It both acts as a container for individual IO and handles interaction with the hardware. ~~~~ from controlpyweb.webio_module import WebIOModule from controlpyweb.single_io import DiscreteIn, DiscreteOut, AnalogIn, AnalogOut class X404DigitalIn(WebIOModule): # Name the class whatever you like StartButton = DiscreteIn("Start Button", "startButton") StopButton = DiscreteIn("Stop Button", "stopButton") DoorClosed = DiscreteIn("Door Closed", "doorClosed") class X410DigitalOut(WebIOModule): StartLamp = DiscreteOut("Start Lapm", "redLamp") MaintLight = DiscreteOut("Maintenance Lamp", "lamp1") digital_in = X404DigitalIn("192.168.1.1") relay_out = X410DigitalOut("192.168.1.2") digital_in.update_from_module() relay_out.StartLamp = digital_in.StartButton relay_out.MaintLight = not digital_in.DoorClosed relay_out.send_changes_to_module() ~~~~ ##### Immediate reads/writes are supported ~~~~ relay_out.StartLamp.write_immediate(True) is_started = digital_in.read_immediate() ~~~~ (However, immediate reads/writes are costly from a resource perspective and should be avoided.) ##### Overrides are common for typical operations ~~~~ if discrete_in.StartButton and discrete_in.DoorClosed: discrete_out.StartMachine = True ~~~~


نیازمندی

مقدار نام
- wheel
- requests
- str2bool


نحوه نصب


نصب پکیج whl controlpyweb-0.1.0:

    pip install controlpyweb-0.1.0.whl


نصب پکیج tar.gz controlpyweb-0.1.0:

    pip install controlpyweb-0.1.0.tar.gz