Skip to main content

Hat Python Duktape JS wrapper

Project description

This library is part of Hat Open project - open-source framework of tools and libraries for developing applications used for remote monitoring, control and management of intelligent electronic devices such as IoT devices, PLCs, industrial automation or home automation systems.

Development of Hat Open and associated repositories is sponsored by Končar - Power Plant and Electric Traction Engineering Inc. (Končar KET - https://www.koncar-ket.hr).

For more information see:

About

Python ctypes wrapper for JavaScript Duktape engine with minimal API:

Data = typing.Union[None, bool, int, float, str,
                    typing.List['Data'], typing.Dict[str, 'Data'],
                    typing.Callable]

class Interpreter:

    def __init__(self): ...

    def eval(self,
             code: str,
             with_result: bool = True
             ) -> Data:
        """Evaluate JS code and optionally return last expression"""

    def get(self, name: str) -> Data:
        """Get global value"""

    def set(self, name: str, value: Data):
        """Set global value"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

hat_duktape-0.4.1.dev20210601-cp38.cp39-none-manylinux1_x86_64.whl (218.2 kB view details)

Uploaded CPython 3.8CPython 3.9

File details

Details for the file hat_duktape-0.4.1.dev20210601-cp38.cp39-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for hat_duktape-0.4.1.dev20210601-cp38.cp39-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 aff1a4661bea799617db3a3ff1fb668d9be61484c145230f8809ce6d6cf6e6f5
MD5 93ad483ccef25abb8885c5bed399e516
BLAKE2b-256 6b363d9002377194431bbe7b2c3b0c440d06f6e55e55f7b38921e514a4f8ede8

See more details on using hashes here.

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