Warning
This project is deprecated. Due to bugs and incoherency, as well as a relatively poorly though interface I decided to deprecate this project. A better scoped, better designed version may come later.
What is this ?
sketcher is a python module which may be used to quickly 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 processing.py 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
@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/sketch.py
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.
Contribute
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.
Metadata
Release files for sketcher 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sketcher-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for sketcher-1.0.3-py3-none-any.whl |
Release files / sketcher-1.0.3-py3-none-any.whl
| Download URL | sketcher-1.0.3-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9e2f1fd7105c9b3f5264766b1ce2cab1ee6452f97b878e14d43266c184b3e1d
|
|
BLAKE2b-256 checksum How to use checksums |
52e28a143d93fe81a104e71a9bbab61473ab59408594ad8fa708083f3d1efde3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Security for sketcher 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.