PScript
latest
  • Getting started
  • PScript introduction
  • PScript API
  • PScript user guide
  • Release notes
PScript
  • Docs »
  • Welcome to PScript’s documentation!
  • Edit on GitHub

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
    • Installation
    • Basic usage
  • PScript introduction
    • Quick intro
    • Goals
    • PScript is just JavaScript
    • Pythonic
    • Caveats
    • PScript is valid Python
    • Performance
    • Using PSCRIPT_OVERLOAD to increase performance
    • Support
    • Other functionality
  • PScript API
    • Convert Python to JavaScript
    • Evaluate JavaScript or Python in Node
    • More functions
    • The parser class
    • Embedding raw JavaScript
    • Dummy variables
  • 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

Indices and tables¶

  • Index
  • Module Index
  • Search Page
Next

© Copyright 2015-2020, PScript contributors Revision 5ac86c1b.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.