Python. Client side.

Skulpt is an entirely in-browser implementation of Python.

No preprocessing, plugins, or server-side support required, just write Python and reload.

Demo

The code is run entirely in your browser, so don't feel obligated to "crash the server", you'll only stub your toe. Help, or examples: 1 2 3 4 5 6 7. Ctrl-Enter to run.

  • cut/copy/paste/undo/redo with the usual shortcut keys
  • Tab does decent indenting. Thanks to CodeMirror for the text editor.
  • Ctrl-Enter to run, Shift-Enter to run selected

Output: (clear)



If you're a saucy fellow with a WebGL enabled browser, you can play with a WebGL binding too.

Your Very Own Copy

Want to give it a shot? Grab it with a:

    hg clone https://skulpt.googlecode.com/hg/ skulpt

Skulpt surely isn't done yet.

If you want to check out a list of bugs, or add to it, or see what's been fixed recently, you can head over to the always-euphemistic-sounding issues page.

I'd call it something like 0.56 if it had a version, but versions are just SHA1's these days.

It's peeking out into the world now, as it's fun to play with already. If you decide to peek back, first imagine a fearsomely comprehensive disclaimer of liability. Then fear, comprehensively.

The entire Python test suite does not run correctly yet, but that is the long term goal, insofar as it makes sense. The compiler has been completely rewritten since this time last year, and it's getting much closer to that goal now.

If you'd like to chit-chat, there's a list for that.

My personal page (and blog) where I post about Skulpt sometimes.

And, if "daring" is your middle name, there's a wee bit of developer docs.

Usability

There's two bindings in the works. One is to the Closure Library. Currently this is done manually by making Python modules that know how to call the associated Closure module. It seems it should be possible to automate this, but it hasn't happened yet.

There's also a binding to WebGL. If you have a WebGL enabled browser, you can play with the beginnings of that.

License

Skulpt may be licensed under:

  1. The MIT license.
  2. Or, for compatibility with Python, the PSFLv2.

Please note that this dual license only applies to the part of Skulpt that is included in the runtime, and not necessarily to surrounding code for build processing or testing. Tests are run using V8, and Closure Compiler, and some test code is taken from the tinypy and Python test suites, which may be distributed under different licensing terms.