This release is a pre-release and may not be stable for production use.
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:
hat-duktape documentation - https://core.hat-open.com/docs/libraries/duktape.html
Hat Core homepage - https://core.hat-open.com
Hat Core git repository - https://github.com/hat-open/hat-core.git
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"""
Release files for hat-duktape 0.4.1.dev20210601
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hat_duktape-0.4.1.dev20210601-cp38.cp39-none-manylinux1_x86_64.whl | CPython 3.9, CPython 3.8 | none | Linux glibc 2.5+ x86-64 | Details |
Release files / hat_duktape-0.4.1.dev20210601-cp38.cp39-none-manylinux1_x86_64.whl
| Download URL | hat_duktape-0.4.1.dev20210601-cp38.cp39-none-manylinux1_x86_64.whl |
|---|---|
| Size | 218.2 kB |
| Tags | CPython 3.8 CPython 3.9 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
aff1a4661bea799617db3a3ff1fb668d9be61484c145230f8809ce6d6cf6e6f5
|
|
BLAKE2b-256 checksum How to use checksums |
6b363d9002377194431bbe7b2c3b0c440d06f6e55e55f7b38921e514a4f8ede8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5
|