Skip to main content

No project description provided

Project description

DenoPy (WIP)

Bare-minimum binding of deno_core, for embedding JavaScript in Python.

Example:

import denopy
r = denopy.Runtime()
r.eval("['1', '2', '3'].map(parseInt)")

Notes

  • This supports only blocking JavaScript, not async/await.
    • Most JavaScript embedding use cases I've seen so far involve pure logic, not I/O.
    • Juggling async/await across 3 languages is a lot of work.
  • Deno has multiple layers, in decreasing order of functionalities: cli -> deno_runtime -> deno_core -> v8. The first 2 are not stable, so we bind the 3rd one. This means:

Project details


Download files

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

Source Distribution

denopy-0.4.0.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distributions

denopy-0.4.0-cp38-abi3-win_amd64.whl (13.4 MB view hashes)

Uploaded CPython 3.8+ Windows x86-64

denopy-0.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.0 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64

denopy-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (20.5 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

denopy-0.4.0-cp38-abi3-macosx_11_0_arm64.whl (15.8 MB view hashes)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

denopy-0.4.0-cp38-abi3-macosx_10_12_x86_64.whl (16.4 MB view hashes)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

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