معرفی شرکت ها


evescript-0.5.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

A simple script language for event-based automation tasks.
ویژگی مقدار
سیستم عامل -
نام فایل evescript-0.5.0
نام evescript
نسخه کتابخانه 0.5.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Charlee Li
ایمیل نویسنده oda.charlee@gmail.com
آدرس صفحه اصلی https://github.com/charlee/evescript
آدرس اینترنتی https://pypi.org/project/evescript/
مجوز MIT
================ EveScript ================ **EveScript** is a simple script language for event-based automation tasks. :: from evescript.compiler import EveScriptCompiler from evescript.executor import EveScriptExecutor script = ''' if ($lightSensor > 20) { say("It's daytime now!") } ''' def lightSensor(): return read_light_sensor_port() compiler = EveScriptCompiler() compiled_script = compiler.compile(script) executor = EveScriptExecutor({ 'actions': { 'say': lambda x: print(x) }, 'variables': { '$lightSensor': lightSensor }, }) executor.run_script(compiled_script) # Out: It's daytime now! EveScript allows you to write simple event-based scripts that evaluate various conditions and execute actions. The conditions and actions are highly customizable to maximize the flexibility. EveScript can be used in embedded systems (such as Raspberry Pi) to implement a flexible event-based system. Installation ------------ :: pip install evescript Changelog ========= 0.5.0 (2021-03-29) ------------------ * Support if...else statement. * Support executing actions outside if statement. * Support nested if statement. * Support actions with no params. 0.4.0 (2021-03-27) ------------------ * Added support for using true/false as conditions. 0.3.0 (2021-03-20) ------------------ * Fixed typo (EveScriptExector => EveScriptExecutor) 0.2.1 (2021-03-20) ------------------ * Added decompiler. * Compiler will not rename built-in operators. 0.1.1 (2021-03-19) ------------------ * First release on PyPI.


نیازمندی

مقدار نام
==4.9.2 antlr4-python3-runtime


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl evescript-0.5.0:

    pip install evescript-0.5.0.whl


نصب پکیج tar.gz evescript-0.5.0:

    pip install evescript-0.5.0.tar.gz