Js2Py


NameJs2Py JSON
Version 0.74 PyPI version JSON
download
home_pagehttps://github.com/PiotrDabkowski/Js2Py
SummaryJavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.
upload_time2022-11-06 10:43:53
maintainer
docs_urlNone
authorPiotr Dabkowski
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements tzlocal six pyjsparser
Travis-CI
coveralls test coverage No coveralls.
            Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code.

Js2Py is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python.


    import js2py

    f = js2py.eval_js( "function $(name) {return name.length}" )

    f("Hello world")

    # returns 11

Now also supports ECMA 6 through js2py.eval_js6(js6_code)!

More examples at: https://github.com/PiotrDabkowski/Js2Py

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PiotrDabkowski/Js2Py",
    "name": "Js2Py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Piotr Dabkowski",
    "author_email": "piodrus@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cb/a5/3d8b3e4511cc21479f78f359b1b21f1fb7c640988765ffd09e55c6605e3b/Js2Py-0.74.tar.gz",
    "platform": null,
    "description": "Translates JavaScript to Python code. Js2Py is able to translate and execute virtually any JavaScript code.\n\nJs2Py is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python.\n\n\n    import js2py\n\n    f = js2py.eval_js( \"function $(name) {return name.length}\" )\n\n    f(\"Hello world\")\n\n    # returns 11\n\nNow also supports ECMA 6 through js2py.eval_js6(js6_code)!\n\nMore examples at: https://github.com/PiotrDabkowski/Js2Py\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.",
    "version": "0.74",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "4f96bf01f4b86a3ba694cbf3937a40e8",
                "sha256": "40a508a79e2f8d624e3f2e604f90a1e6f46ac75b416d7f4745939ff4a2e95e09"
            },
            "downloads": -1,
            "filename": "Js2Py-0.74-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4f96bf01f4b86a3ba694cbf3937a40e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 1033007,
            "upload_time": "2022-11-06T10:43:50",
            "upload_time_iso_8601": "2022-11-06T10:43:50.988014Z",
            "url": "https://files.pythonhosted.org/packages/88/58/2feb430d47c9f18f331494b429697342722b51f28dad8ad92a511c0f6fc8/Js2Py-0.74-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "92828a45dd6a8a20843500305a57ec78",
                "sha256": "39f3a6aa8469180efba3c8677271df27c31332fd1b471df1af2af58b87b8972f"
            },
            "downloads": -1,
            "filename": "Js2Py-0.74.tar.gz",
            "has_sig": false,
            "md5_digest": "92828a45dd6a8a20843500305a57ec78",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2504984,
            "upload_time": "2022-11-06T10:43:53",
            "upload_time_iso_8601": "2022-11-06T10:43:53.746521Z",
            "url": "https://files.pythonhosted.org/packages/cb/a5/3d8b3e4511cc21479f78f359b1b21f1fb7c640988765ffd09e55c6605e3b/Js2Py-0.74.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-11-06 10:43:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "PiotrDabkowski",
    "github_project": "Js2Py",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "tzlocal",
            "specs": [
                [
                    ">=",
                    "1.2"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    ">=",
                    "1.10"
                ]
            ]
        },
        {
            "name": "pyjsparser",
            "specs": [
                [
                    ">=",
                    "2.4.5"
                ]
            ]
        }
    ],
    "lcname": "js2py"
}
        
Elapsed time: 0.01714s