p5: Creative coding in Python

homepage | documentation | examples | source

p5 is a Python library that provides high level drawing functionality to help you quickly create simulations and interactive art using Python. It combines the core ideas of Processing — learning to code in a visual context — with Python's readability to make programming more accessible to beginners, educators, and artists.


p5 requires Python 3 and depends on numpy. After installing Python 3, run the following commands to install p5:

  $ pip install numpy --user
  $ pip install p5 --user


p5 needs your help! There are many ways you can contribute to p5. See the CONTRIBUTING file for details.


p5 is free software and is licensed under the GPL3 license. A full copy of the license is available in the source code repository.