Skip to main content

A processing like sketch framework for prototyping.

Project description

What is this ?

sketcher is a python module which may be used to quicly create littles program (sketches) that produce graphical output. It is obviously deeply inspired by processing and try to get the same feeling in the python world. It is different from in that it has no dependencies to Java environnement and it use a more Pythonic approach of a sketch. By the way sketcher does not try to stick to the processing API but a lot of methods names are the same.

How to install it ?

The simpliest way to install this is to use pip. Run $ pip3 install sketcher and that is all.

You could also copy the sketcher folder from this repository and put it in your sketches directory.

How to use it ?

A basic sketch consist in a class of arbitrary name having two methods setup and loop. The class have to be decorated by the decorator sketch from the sketcher module. Here is the default empty sketch :

from sketcher import sketch

class Sk:
    def setup(self):
        pass  # Here come the initialisation

    def loop(self):
        pass  # Here come the per-frame actions

In the loop and setup methods you have access to all the useful methods from the Sketch class (thanks to the decorator) to produce graphical output and more.

Then you can run a sketch like this :

$ python3 path/to/your/

Further explanations are available here.

About graphical backend

To produce graphical output sketcher can use different backends. For now tkinter and pyglet are implemented. The two backends expose roughly the same features however some differences remains. If you notice any let me know so I can improve the compatibility.


Any kind of contribution is welcomed. You could propose a new graphical backend or extend the functionnalities of sketches. Please contact me if you are intereseted.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sketcher, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sketcher-1.0.2-py3-none-any.whl (11.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sketcher-1.0.2.tar.gz (9.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page