JSPython icon
JSPython icon

JSPython

Python-like syntax interpreter implemented with javascript that runs entirely in the web browser and/or in the NodeJS environment.

Cost / License

  • Free
  • Open Source

Platforms

  • Mac
  • Windows
  • Linux
  • Online
  • Chrome OS
-
No reviews
0likes
0comments
0news articles

Features

Suggest and vote on features
  1.  Interpreter

JSPython News & Activities

Highlights All activities

Recent activities

No activities found.

JSPython information

  • Developed by

    GB flagFalconSoft Ltd
  • Licensing

    Open Source (BSD-3-Clause) and Free product.
  • Written in

  • Alternatives

    4 alternatives listed
  • Supported Languages

    • English

AlternativeTo Category

Development

GitHub repository

  •  82 Stars
  •  9 Forks
  •  4 Open Issues
  •   Updated  
View on GitHub
JSPython was added to AlternativeTo by pavlo_ on and this page was last updated .
No comments or reviews, maybe you want to be first?
Post comment/review

What is JSPython?

JSPython is a python-like syntax interpreter implemented with javascript that runs entirely in the web browser and/or in the NodeJS environment.

It does not transpile/compile your code into JavaScript, instead, it provides an interactive interpreter that reads Python code and carries out their instructions. With JSPython you should be able to safely use or interact any JavaScript libraries or API with a nice Python language.

Why would you use it? You can easily embed JSPython into your web app and your end users will benefit from a Python like scripting facility to:

  • to build data transformation and data analysis tasks allow users to configure a JS objects at run-time
  • run a comprehensive testing scenarios experiment with your JS Libraries or features.
  • bring a SAFE run time script evaluation functions to your web app bring Python language to NodeJS environment

Features Our aim here is to provide a SAFE Python experience to Javascript or NodeJS users at run-time. So far, we implement a core set of Python feature which should be OK to start coding.

Syntax and code flow Same as Python, In JSPython we use indentation to indicate a block of code. All flow features like if - else, for, while loops - along with break and continue

Objects, Arrays JSPython allows you to work with JavaScript objects and arrays and you should be able to invoke their methods and properties as normal. So, all methods including prototype functions push(), pop(), splice() and any more will work out of box.

JSON JSPython allows you to work with JSON same way as you would in JavaScript or Python dictionaries

Functions Functions def def async def, arrow functions => - (including multiline arrow functions)

Strings Syntax and code flow s = "Strings are double quoated only! For now." represent a multiline string. A single or triple quotes are not supported yet.

Date and Time We have dateTime() function what returns JavaScript's Date object. So, you can use all Date get and set methods

Official Links