Skip to main content

Default template for PDM package

Project description

pyrunjs

安装

pdm

pdm add pyrunjs

pip

pip install pyrunjs

使用示例

import pyrunjs

js_script = """function HelloWorld() { return 'Hello World!'; } """
result = pyrunjs.run_js(js_script, "HelloWorld()")
print(result)  # output: Hello World!
import pyrunjs

result = pyrunjs.run_js('', "1 + 2")
print(result)  # output: 3

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.

pyrunjs-0.1.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file pyrunjs-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyrunjs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.21.0 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for pyrunjs-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b85d26eb763041ef14cee4cd92db75e7eb09b043511d431d7458a90ab70bda
MD5 50e6f6221aa6f5ee80d8278eb4de268d
BLAKE2b-256 3414fdcaca1fb45191bcc43c516980034826a28ba65c16c1f65cb36c106fd3a9

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