codeskulptor — replace the codeskulptor module of CodeSkulptor

codeskulptor (May 24, 2014)

Replace the codeskulptor module of CodeSkulptor.

Piece of SimpleGUICS2Pygame. https://bitbucket.org/OPiMedia/simpleguics2pygame

GPLv3 — Copyright (C) 2013, 2014 Olivier Pirson http://www.opimedia.be/

SimpleGUICS2Pygame.codeskulptor.file2url(filename)[source]

Return a completed CodeSkulptor URL ressource from a short filename.

Example given in the CodeSkulptor file2url documentation: file2url(‘assets-Quick_fox.txt’) return ‘http://codeskulptor-assets.commondatastorage.googleapis.com/assets-Quick_fox.txt’

Parameters:filename – str
Raise:ValueError if filename is in a incorrect format (the good format is ‘^[a-zA-Z][a-zA-Z0-9]*[_-]’)
Returns:str
SimpleGUICS2Pygame.codeskulptor.set_timeout(seconds)[source]

Does nothing.

In CodeSkulptor, this function change the timeout imposed on all programs (by default 5 seconds). See CodeSkulptor set_timeout documentation.

Parameters:seconds – int >= 0

[source]