Reference for flexx.pyscript¶
The pyscript module provides functionality to compile Python code to JavaScript. We call Python code aimed to translated this way “PyScript”.
- PyScript introduction
- PyScript API
- PyScript quick 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
- PyScript examples