Skip to main content

GASP (Graphics API for Students of Python)

GASP is built on Tkinter and Pygame graphics. It was not written from scratch but was instead derived directly from the Livewires library, and is thus released under the same free software license covering the original source:

https://github.com/livewires/python

GASP has been ported to Python 3.

GASP is designed to enable absolute beginners to write 1980's style arcade games as an introduction to python.

Homepage: https://codeberg.org/GASP/GASP_Code

There is an excellent coursebook http://openbookproject.net/pybiblio/gasp/ which goes over learning to use GASP in your own applications.

Code style: black

INSTALLATION

GASP should be available in PyPI. To install it:

$ python3 -m pip install gasp

To also obtain the GASP games extension:

$ python3 -m pip install gasp[games]

USAGE

GASP for beginners is built on Tkinter and is meant to be imported using:

from gasp import *

GASP games is built on Pygame and is meant to be imported using:

from gasp import games

Because of this, to reference anything in beginners GASP, you can simply reference that object e.g. begin_graphics(). However, to reference an object in GASP games, you must preface it with games. e.g. games.Screen()

TESTS

The tests directory contains tests for GASP. For API level functional tests, from inside the same directory where this README file is located, run:

GASP API test:

$ python3 -m doctest tests/test_gasp_api.rst

GASP games API test:

$ python3 -m doctest tests/test_games_api.rst

If your terminal is empty after running these commands, rest easy knowing GASP is perfect.

To visually inspect the graphics rendering, run:

$ python3 tests/test_graphics.py

LICENSE

This software is licensed under the GPL License found in this distribution.

REQUIREMENTS

GASP using Tkinter is designed to not require any further installations, so nothing beyond the Python Standard Library (https://docs.python.org/3/library/index.html) is needed. However, GASP using Pygame requires the installation of Pygame. Please see the documentation for guidance on how to do that.

Metadata

Release files for gasp 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gasp 0.6.2
File Size Uploaded
gasp-0.6.2.tar.gz 43.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gasp 0.6.2
File Interpreter ABI Platform
gasp-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 88.6 kB

Release files / gasp-0.6.2.tar.gz

Download URL gasp-0.6.2.tar.gz
Size 43.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a2a2f4a7691dc033e4e91cd9edb62be58a7687d6a63c75c17c9326eea50374c1
BLAKE2b-256 checksum
How to use checksums
36834fc697c6f87dee74f2130b4c1cbd5c506f539843e059b38fcd804ae955a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5

Release files / gasp-0.6.2-py3-none-any.whl

Download URL gasp-0.6.2-py3-none-any.whl
Size 45.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8751eabb399d87fa9b0064416200c3bbe41e54b3fca8cea5240c46f10eb6f82
BLAKE2b-256 checksum
How to use checksums
f552fab97f51373d04106fbbcf5213fa1ce01f91494f46b0f21d5c198705c1cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.4.5

1 release file

0.4.0

2 release files

0.3.3

2 release files

0.3.2

1 release file

0.3.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page