# Hooman - Processing inspired API for PyGame

**URL:** <https://discourse.processing.org/t/hooman-processing-inspired-api-for-pygame/21412>\
**Category:** Gallery\
**Created:** [May 29, 2020, 6:12pm UTC](https://discourse.processing.org/t/hooman-processing-inspired-api-for-pygame/21412 "2020-05-29T18:12:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![appinv](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@appinv](https://discourse.processing.org/u/appinv)\
**Post date:** [May 29, 2020, 6:12pm UTC](https://discourse.processing.org/t/hooman-processing-inspired-api-for-pygame/21412/1 "2020-05-29T18:12:29Z")

</div>

Released a package on pypi called Hooman. It’s tagline is “~pygame for humans”.  
You can install it via `pip install hooman` and docs are on [github](https://github.com/Abdur-RahmaanJ/hooman). Here’s a glipse of the feel:

```python
from hooman import Hooman

import pygame

hapi = Hooman(500, 500)

def handle_events(event):
    if event.type == pygame.QUIT:
        hapi.is_running = False

hapi.handle_events = handle_events

while hapi.is_running:
    hapi.background(hapi.color['white'])

    hapi.fill(hapi.color['blue'])
    hapi.stroke_size(4)

    hapi.begin_shape()
    hapi.vertex((0, 0))
    hapi.vertex((100, 0))
    hapi.vertex((hapi.mouseX(), hapi.mouseY()))
    hapi.end_shape()

    # same as hapi.polygon([(0, 0), (100, 0), (hapi.mouseX(), hapi.mouseY())])

    hapi.flip_display()
    hapi.event_loop()

pygame.quit()

```

If you know PyGame, this lib preserves the spirit of it while keeping your code clear
