Welcome to PScript’s documentation!¶
PScript is a Python to JavaScript compiler, and is also the name of the subset
of Python that this compiler supports. It was developed as a part of
Flexx (as flexx.pyscript
) and is now represented
by its own project. Although it is still an important part of Flexx, it can
also be useful by itself.
Contents¶
- Getting started
- PScript introduction
- PScript API
- PScript user guide
- The basics
- Slicing and subscriping
- String formatting
- Assignments
- Comparisons
- Truthy and Falsy
- Function calls
- Imports
- If statements
- Looping
- Comprehensions
- Defining functions
- Defining classes
- Exceptions
- Globals and nonlocal
- Python Builtins
- The isinstance function (and friends)
- hasattr, getattr, setattr and delattr
- Creating sequences
- List methods
- Dict methods
- Str methods
- Using JS specific functionality
- Release notes