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 Distributions

hat_duktape-0.4.1.dev20210707-cp38.cp39-none-win_amd64.whl (384.8 kB view details)

Uploaded CPython 3.8 CPython 3.9 Windows x86-64

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

Uploaded CPython 3.8 CPython 3.9

File details

Details for the file hat_duktape-0.4.1.dev20210707-cp38.cp39-none-win_amd64.whl.

File metadata

  • Download URL: hat_duktape-0.4.1.dev20210707-cp38.cp39-none-win_amd64.whl
  • Upload date:
  • Size: 384.8 kB
  • Tags: CPython 3.8, CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for hat_duktape-0.4.1.dev20210707-cp38.cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 9f4499e53a198b1be34c69adcf4a05dcd84fddc53a8276d5c35434af04225403
MD5 c77965139078cc1ba1cc14b2b3fa55a6
BLAKE2b-256 f4ec0bb125729f3e9ddae26c38236f16ea4016c60728f9019245e812b2a33672

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hat_duktape-0.4.1.dev20210707-cp38.cp39-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 24ef435c430ca7bf2642bec9c9449f8afb7698b9ae6cee974be4a84b8c7d108a
MD5 fa58b5e410ea8aaff4a8428dfa1eee51
BLAKE2b-256 b8b93265fe93509b10de09e73ed47083b684ac331135c34e093fe497d73bb274

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page