{"id":13595066,"url":"https://github.com/p5py/p5","last_synced_at":"2025-05-15T22:12:24.131Z","repository":{"id":37382008,"uuid":"85054150","full_name":"p5py/p5","owner":"p5py","description":"p5 is a Python package based on the core ideas of Processing.","archived":false,"fork":false,"pushed_at":"2024-04-28T14:32:47.000Z","size":45484,"stargazers_count":750,"open_issues_count":87,"forks_count":120,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-05-13T21:29:51.897Z","etag":null,"topics":["processing","python"],"latest_commit_sha":null,"homepage":"https://p5.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p5py.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT.rst","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-15T09:34:15.000Z","updated_at":"2025-05-12T17:18:06.000Z","dependencies_parsed_at":"2024-11-06T17:39:00.077Z","dependency_job_id":"433e9ced-5cdb-474f-b304-7fa0ae95e01c","html_url":"https://github.com/p5py/p5","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5py%2Fp5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5py%2Fp5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5py%2Fp5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5py%2Fp5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p5py","download_url":"https://codeload.github.com/p5py/p5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254430335,"owners_count":22069909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["processing","python"],"created_at":"2024-08-01T16:01:43.324Z","updated_at":"2025-05-15T22:12:19.122Z","avatar_url":"https://github.com/p5py.png","language":"Python","readme":"p5\n===\n\n\n|Downloads| |License| |Version| |Slack| |build-tests|  |downloads-month|\n\n.. |License| image:: https://img.shields.io/pypi/l/p5?color=light-green\n.. |Version| image:: https://img.shields.io/pypi/v/p5?color=blue\n.. |Slack| image:: https://img.shields.io/badge/Slack-Join!-yellow  \n           :target: https://join.slack.com/t/p5py/shared_invite/zt-g9uo4vph-dUVltiE1ixvmjFTCyRlzpQ\n.. |build-tests| image:: https://github.com/p5py/p5/actions/workflows/build-tests.yml/badge.svg\n.. |Downloads| image:: https://static.pepy.tech/badge/p5  \n           :target: https://pepy.tech/project/p5\n.. |downloads-month| image:: https://static.pepy.tech/badge/p5/month\n           :target: https://pepy.tech/project/p5\n\np5 is a Python library that provides high level drawing functionality\nto help you quickly create simulations and interactive art using\nPython. It combines the core ideas of `Processing\n\u003chttps://processing.org/\u003e`_ — learning to code in a visual context —\nwith Python's readability to make programming more accessible to\nbeginners, educators, and artists.\n\nTo report a bug / make a feature request use the `issues page \u003chttps://github.com/p5py/p5/issues\u003e`_ in this repository. You can also use the `discourse platform\n\u003chttps://discourse.processing.org/c/p5py/27\u003e`_  to ask/discuss anything related to p5py. \n\nExample\n-------\n\n.. image:: https://github.com/p5py/p5/raw/develop/docs/_static/readme.gif\n\np5 programs are called \"sketches\" and are run as any other Python\nprogram. The sketch above, for instance, draws a circle at the mouse\nlocation that gets a random reddish color when the mouse is pressed\nand is white otherwise; the size of the circle is chosen randomly. The\nPython code for the sketch looks like:\n\n.. code:: python\n\n   from p5 import *\n\n   def setup():\n       size(640, 360)\n       no_stroke()\n       background(204)\n\n   def draw():\n       if mouse_is_pressed:\n           fill(random_uniform(255), random_uniform(127), random_uniform(51), 127)\n       else:\n           fill(255, 15)\n\n       circle_size = random_uniform(low=10, high=80)\n\n       circle((mouse_x, mouse_y), circle_size)\n\n   def key_pressed(event):\n       background(204)\n       \n   # p5 supports different backends to render sketches, \n   # \"vispy\" for both 2D and 3D sketches \u0026 \"skia\" for 2D sketches\n   # use \"skia\" for better 2D experience \n   # Default renderer is set to \"vispy\"\n   run(renderer=\"vispy\") # \"skia\" is still in beta\n\nDocumentation\n-------------\nThe p5py documentation can be found here `p5 documentation\n\u003chttp://p5.readthedocs.io\u003e`_\n\nInstallation\n------------\n\nTake a look at the installation steps here in the `p5 installation page\n\u003chttp://p5.readthedocs.io/en/latest/install.html\u003e`_\n\nContributing\n------------\nWe welcome contributions from anyone, even if you are new to open source. You can start by fixing the existing `issues \u003chttps://github.com/p5py/p5/issues\u003e`_ in p5py. In case you need any help or support from the p5py development community, you can join our `slack group \u003chttps://join.slack.com/t/p5py/shared_invite/zt-g9uo4vph-dUVltiE1ixvmjFTCyRlzpQ\u003e`_. \n\nLicense\n-------\n\np5 is licensed under the GPLv3. See `LICENSE \u003cLICENSE\u003e`_ for more\ndetails. p5 also includes the following components from other open\nsource projects:\n\n- OpenGL shaders `from the Processing\n  \u003chttps://github.com/processing/processing/tree/master/core/src/processing/opengl/shaders\u003e`_\n  project. Licensed under LGPL v2.1. See `LICENSES/lgpl-2.1.txt\n  \u003cLICENSES/lgpl-2.1.txt\u003e`_ for the full license text.\n\nAll licenses for these external components are available in the\n``LICENSES`` folder.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp5py%2Fp5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp5py%2Fp5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp5py%2Fp5/lists"}