gexecjs


Namegexecjs JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/Leviathangk/runjs
Summary调用 node 执行 js,可指定编码
upload_time2023-05-05 09:09:41
maintainer
docs_urlNone
author郭一会儿
requires_python
licenseMIT Licence
keywords js runjs execjs grunjs grun_js pyexecjs
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 介绍

调用 node 执行 js ,可指定编码格式

# 安装

```
pip install -U gexecjs
```

# 示例

```
    # run_js = RunJs(filepath='test.js')
    run_js = RunJs(content='''
        function getCookie(){
            return arguments
        }
    ''')
    result = run_js.run('getCookie', 'Gk')
    print(result)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Leviathangk/runjs",
    "name": "gexecjs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "js,runjs,execjs,grunjs,grun_js,pyexecjs",
    "author": "\u90ed\u4e00\u4f1a\u513f",
    "author_email": "1015295213@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/e4/93/2876ba327af60ab64f51598a13f6ab310f6c4c64921f3641c4159fdd36e3/gexecjs-0.0.1.tar.gz",
    "platform": "any",
    "description": "# \u4ecb\u7ecd\r\n\r\n\u8c03\u7528 node \u6267\u884c js \uff0c\u53ef\u6307\u5b9a\u7f16\u7801\u683c\u5f0f\r\n\r\n# \u5b89\u88c5\r\n\r\n```\r\npip install -U gexecjs\r\n```\r\n\r\n# \u793a\u4f8b\r\n\r\n```\r\n    # run_js = RunJs(filepath='test.js')\r\n    run_js = RunJs(content='''\r\n        function getCookie(){\r\n            return arguments\r\n        }\r\n    ''')\r\n    result = run_js.run('getCookie', 'Gk')\r\n    print(result)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT Licence",
    "summary": "\u8c03\u7528 node \u6267\u884c js\uff0c\u53ef\u6307\u5b9a\u7f16\u7801",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/Leviathangk/runjs"
    },
    "split_keywords": [
        "js",
        "runjs",
        "execjs",
        "grunjs",
        "grun_js",
        "pyexecjs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4932876ba327af60ab64f51598a13f6ab310f6c4c64921f3641c4159fdd36e3",
                "md5": "e071e0ced1a9da3a0ec866ea7bfd72b7",
                "sha256": "57e4d69040613af6b54d4b347b2bb048edd235d01416d2a9734115f690746ff5"
            },
            "downloads": -1,
            "filename": "gexecjs-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e071e0ced1a9da3a0ec866ea7bfd72b7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2703,
            "upload_time": "2023-05-05T09:09:41",
            "upload_time_iso_8601": "2023-05-05T09:09:41.340949Z",
            "url": "https://files.pythonhosted.org/packages/e4/93/2876ba327af60ab64f51598a13f6ab310f6c4c64921f3641c4159fdd36e3/gexecjs-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-05 09:09:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Leviathangk",
    "github_project": "runjs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "gexecjs"
}
        
Elapsed time: 0.12753s